Hacking How do I set up drc-sim?

smileyhead

I like cute stuff.
OP
Member
Joined
Aug 31, 2015
Messages
4,743
Trophies
3
Age
22
Location
Budakeszi, Hungary
Website
sites.google.com
XP
9,797
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
29
Location
Connecticut
XP
2,128
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
38
XP
86
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,743
Trophies
3
Age
22
Location
Budakeszi, Hungary
Website
sites.google.com
XP
9,797
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
38
XP
86
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,743
Trophies
3
Age
22
Location
Budakeszi, Hungary
Website
sites.google.com
XP
9,797
Country
Hungary
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Will you give me mouth to mouth oxygen if my throat closes?
  • K3N1 @ K3N1:
    Nah the air can do that
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
    A @ abraarukuk: hi guys