Error running pyrasite on windows
costidragnea opened this issue · comments
On Windows7x64 with python 3.6, I installed pyrasite 2.0, gdb, and set gdb as environment variable.
- Command
c:\Python36\Scripts\pyrasite.exe --verbose 1772 helloworld.py
returns:
b'' b'Excess command line arguments ignored. (PyRun_SimpleString(import sys; sys.pat h.insert(0, "C:\\Python36\\lib\\site-packages\\pyrasite\\payloads"); sys.path.in sert(0, "C:\\Python36\\lib\\site-packages"); exec(open("C:\\Python36\\lib\\site- packages\\pyrasite\\payloads\\helloworld.py").read()))\' ...)\r\nPyGILState_Ensu re()\': No such file or directory.\r\nCan\'t attach to process.\r\nUndefined com mand: "". Try "help".\r\nUndefined command: "". Try "help".\r\nUndefined comma nd: "". Try "help".\r\n'
- The same thing happens in a python script:
import pyrasite; pyrasite.inject(pid=1772, filename="c:\\Test\\helloworld.py", verbose=True)
generates:
b'' b'Excess command line arguments ignored. (PyRun_SimpleString(import sys; sys.path.insert(0, "c:\\Test"); sys.path.insert(0, "C:\\Python36\\lib\\site-packages"); exec(open("c:\\Test\\helloworld.py").read()))\' ...)\r\nPyGILState_Ensure()\': No such file or directory.\r\nCan\'t attach to process.\r\nUndefined command: "". Try "help".\r\nUndefined command: "". Try "help".\r\nUndefined command: "". Try "help".\r\n'