Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running pyrasite on windows #81

Open
costidragnea opened this issue Oct 9, 2019 · 0 comments
Open

Error running pyrasite on windows #81

costidragnea opened this issue Oct 9, 2019 · 0 comments

Comments

@costidragnea
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant