-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Failure to inject on Mac #26
Comments
use hypno,
but throw error bellows:
again, use Macbook Pro M1, it could support ? |
Hey @icoco, can you please try running again, and if it fails, run |
try
throw
and ps -fp result bellows :
should do Disable System Integrity Protection Temporarily ? |
Thanks for checking. You can try temporarily disabling SIP, that would be helpful to make sure that it is indeed the root cause. Also, how did you install python? Where did this |
it work under virtualenv, so '/py/Inject/env/bin/Python' accurate point to the inner python of xcode ` ` |
it works, cause different python was installed on the computer, thanks for your time ! |
I think I experience the same problem with my M1 Mac, can you please elaborate more what was the problem and how to overcome it? Thanks! |
I think that cause use different Python environment, assume the computer installed two version python on different location, maybe : '/Library/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python' and '/opt/homebrew/lib/python3.9/', the target python application which need be injected use first, but the while inject command 'sudo hypno {process_id} xxx' , it use another, then nothing can be injected once I make it works on the same , in fact should use ''/opt/homebrew/lib/python3.9' , then it works as expectation hope this is helpful |
You may get this when trying to inject on Mac:
pyinjector.api.MacUnknownInjectorError: injector_attach returned -1: TASK_FOR_PID error : (os/kern) failure
This should be resolved by rerunning as root. Please comment here if it doesn't solved the issue or if you need to be able to run without root. Please state how you installed pyinjector.
The text was updated successfully, but these errors were encountered: