Hacking How do I set up drc-sim?

smileyhead

I like cute stuff.
OP
Member
Joined
Aug 31, 2015
Messages
4,832
Trophies
4
Age
24
Location
Budakeszi, Hungary
Website
sites.google.com
XP
11,008
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
2
Age
31
Location
Connecticut
XP
2,530
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
40
XP
106
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,832
Trophies
4
Age
24
Location
Budakeszi, Hungary
Website
sites.google.com
XP
11,008
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
40
XP
106
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,832
Trophies
4
Age
24
Location
Budakeszi, Hungary
Website
sites.google.com
XP
11,008
Country
Hungary

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Kirbydogs @ Kirbydogs:
    @SylverReZ "Vimeo suddenly rises in popularity after massive TikTok Ban"
  • kijetesantakalu042 @ kijetesantakalu042:
    Tiktok allowed twitch streamers to get audiences, allowed linguistic changes too
  • JollyBaker @ JollyBaker:
    I decided to dig deeper and see what's really going on, and the bill wasn't just about tiktok
    +1
  • JollyBaker @ JollyBaker:
    It was about any application by "foriegn adversaries", whatever that may mean
  • BigOnYa @ BigOnYa:
    @kijetesantakalu042, You should just buy TikTok and change it like you have done with X.
  • JollyBaker @ JollyBaker:
    Also there was other stuff about laundering and fent and shit but whatever, that's not the point
  • kijetesantakalu042 @ kijetesantakalu042:
    @BigOnYa shut up. The joke wasn't ever funny
  • JollyBaker @ JollyBaker:
    Which also means Opera GX is gonna get banned too probably
    +1
  • JollyBaker @ JollyBaker:
    Because it was acquired by a chinese company a while back
    +1
  • BigOnYa @ BigOnYa:
    I wonder about Alibaba, AliExpress, Taobao, or Temu.
  • kijetesantakalu042 @ kijetesantakalu042:
    They probs want to take them down too
  • BigOnYa @ BigOnYa:
    @kijetesantakalu042, You should have a talk with Trump and advise him to change it.
  • SylverReZ @ SylverReZ:
    Temu is linked to AliBaba, I doubt they'll be shutdown.
  • SylverReZ @ SylverReZ:
    Except for PandaBuy which handled customer data pretty badly and did a lot of fraudulent schemes.
  • JollyBaker @ JollyBaker:
    Yeah probably AliExpress and Temu too
  • BigOnYa @ BigOnYa:
    With Trumps proposed tarrifs, I would not order from them anyways. I hardly do now, other than obscure game stuff/ parts.
  • JollyBaker @ JollyBaker:
    Guys, have we ever tried referring to ourselves in the second person? It's really weird, and you love confusing people with it
  • SylverReZ @ SylverReZ:
    @BigOnYa, Trump is only in office on the 20th of Jan, I doubt he'll be able to dodge the TikTok ban.
    +1
  • BigOnYa @ BigOnYa:
    @JollyBaker BigOnYa says no.
  • JollyBaker @ JollyBaker:
    (Translation: Guys, have you ever tried referring to yourselves in the second person? It's really weird and I love confusing people with it)
  • kijetesantakalu042 @ kijetesantakalu042:
    Kijetesantakalu042 is too unable to write their username
  • SylverReZ @ SylverReZ:
    "Kijetesantakalu042 is not responding"
    +1
  • K3Nv3 @ K3Nv3:
    Bigonya gives Trump a blowie for money
    K3Nv3 @ K3Nv3: Bigonya gives Trump a blowie for money