Hacking How do I set up drc-sim?

smileyhead

I like cute stuff.
OP
Member
Joined
Aug 31, 2015
Messages
4,803
Trophies
3
Age
23
Location
Budakeszi, Hungary
Website
sites.google.com
XP
10,584
Country
Hungary
After fetching the required modules for days, I finally got it to open a window... then it immediately closed with the following output in the Terminal:
Code:
Traceback (most recent call last):
  File "drc-sim.py", line 38, in <module>
    MSG_S = udp_service(LOCAL_IP, PORT_MSG)
  File "drc-sim.py", line 26, in udp_service
    sock.bind((ip, port + service_addend(ip)))
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address
What do I do to get it working? :unsure:
 

purechaos996

Well-Known Member
Member
Joined
Nov 5, 2008
Messages
797
Trophies
1
Age
30
Location
Connecticut
XP
2,311
Country
United States
I've actually been interested in getting this working on a Pi for awhile now, I tried it out awhile ago and didnt get that far. Best of luck mate, hopefully you can document your process so others can mess around with it.
 

rbsk

Well-Known Member
Newcomer
Joined
May 10, 2016
Messages
64
Trophies
0
Age
39
XP
96
Country
United States
What do I do with this? I don't understand most of it. :(

"When you bind(), you are associating the socket with a local IP address and a port. So, as long as the address is local, 127.0.0.1 (localhost address) included, bind would work. But, trying to bind to a address that is not local would lead to the above error."

So it would seem the IP address you are giving it is not on your local network (is invalid) - be it 10.0.0.xxx or 192.168.1.xxx or whatever your device ip is on your network.
 

smileyhead

I like cute stuff.
OP
Member
Joined
Aug 31, 2015
Messages
4,803
Trophies
3
Age
23
Location
Budakeszi, Hungary
Website
sites.google.com
XP
10,584
Country
Hungary
"When you bind(), you are associating the socket with a local IP address and a port. So, as long as the address is local, 127.0.0.1 (localhost address) included, bind would work. But, trying to bind to a address that is not local would lead to the above error."

So it would seem the IP address you are giving it is not on your local network (is invalid) - be it 10.0.0.xxx or 192.168.1.xxx or whatever your device ip is on your network.
Thanks, but now I ave a new error. :(
Code:
__pycache__/_cffi__xc79f4b7bx23aff9e7.c:209:44: fatal error: libavcodec/avcodec.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
  File "drc-sim.py", line 373, in <module>
    VID_S : ServiceVSTRM(),
  File "drc-sim.py", line 165, in __init__
    pygame.display.get_surface().get_size())
  File "/home/levente/Desktop/memahaxx-drc-sim-7392698efa29/H264Decoder.py", line 86, in __init__
    s.__init_ffi()
  File "/home/levente/Desktop/memahaxx-drc-sim-7392698efa29/H264Decoder.py", line 62, in __init_ffi
    ''', libraries=['avcodec', 'swscale'])
  File "/usr/lib/python2.7/dist-packages/cffi/api.py", line 433, in verify
    lib = self.verifier.load_library()
  File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 113, in load_library
    self._compile_module()
  File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 210, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 29, in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose)
  File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 62, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
 

rbsk

Well-Known Member
Newcomer
Joined
May 10, 2016
Messages
64
Trophies
0
Age
39
XP
96
Country
United States
Thanks, but now I ave a new error. :(
Code:
__pycache__/_cffi__xc79f4b7bx23aff9e7.c:209:44: fatal error: libavcodec/avcodec.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
  File "drc-sim.py", line 373, in <module>
    VID_S : ServiceVSTRM(),
  File "drc-sim.py", line 165, in __init__
    pygame.display.get_surface().get_size())
  File "/home/levente/Desktop/memahaxx-drc-sim-7392698efa29/H264Decoder.py", line 86, in __init__
    s.__init_ffi()
  File "/home/levente/Desktop/memahaxx-drc-sim-7392698efa29/H264Decoder.py", line 62, in __init_ffi
    ''', libraries=['avcodec', 'swscale'])
  File "/usr/lib/python2.7/dist-packages/cffi/api.py", line 433, in verify
    lib = self.verifier.load_library()
  File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 113, in load_library
    self._compile_module()
  File "/usr/lib/python2.7/dist-packages/cffi/verifier.py", line 210, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 29, in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose)
  File "/usr/lib/python2.7/dist-packages/cffi/ffiplatform.py", line 62, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Well now you are missing header file for the build process "libavcodec/avcodec.h: No such file or directory".

Have you read this thread?
https://gbatemp.net/threads/how-to-use-drc-sim.390217/
 

smileyhead

I like cute stuff.
OP
Member
Joined
Aug 31, 2015
Messages
4,803
Trophies
3
Age
23
Location
Budakeszi, Hungary
Website
sites.google.com
XP
10,584
Country
Hungary

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=W6ckbBpSKhw