lmacken / pyrasite

Inject code into running Python processes
http://pyrasite.com
GNU General Public License v3.0
2.8k stars 220 forks source link

pyrasite-shell error: socket.gaierror: [Errno -2] Name or service not known #77

Open 0mza987 opened 6 years ago

0mza987 commented 6 years ago

OS: ubuntu 16.04 Python: 2.7.15

pyrasite-memory-viewer PID works fine pyrasite PID helloworld.py works fine

But when executing pyrasite-shell PID I got this error:

Traceback (most recent call last):
  File "/home/ubuntu/anaconda3/envs/workenv/bin/pyrasite-shell", line 11, in <module>
    sys.exit(shell())
  File "/home/ubuntu/anaconda3/envs/workenv/lib/python2.7/site-packages/pyrasite/tools/shell.py", line 30, in shell
    ipc.connect()
  File "/home/ubuntu/anaconda3/envs/workenv/lib/python2.7/site-packages/pyrasite/ipc.py", line 93, in connect
    self.listen()
  File "/home/ubuntu/anaconda3/envs/workenv/lib/python2.7/site-packages/pyrasite/ipc.py", line 100, in listen
    socket.SOCK_STREAM, 0, 0):
socket.gaierror: [Errno -2] Name or service not known

Thanks in advance.