The Wayback Machine - https://web.archive.org/web/20201231050238/https://github.com/GraxCode/JByteMod-Beta/issues/52
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

java.io.IOException: Cannot run program ""/usr/bin/python3"" #52

Open
Daswf852 opened this issue Jun 5, 2018 · 4 comments
Open

java.io.IOException: Cannot run program ""/usr/bin/python3"" #52

Daswf852 opened this issue Jun 5, 2018 · 4 comments

Comments

@Daswf852
Copy link
Contributor

@Daswf852 Daswf852 commented Jun 5, 2018

This error is produced when trying to use krakatau for bytecode editing with the provided python directory: /usr/bin/python3

The provided directory has no quotes in it and there is a file called python3 in /usr/bin/.

java.io.IOException: Cannot run program ""/usr/bin/python3"": error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at java.lang.Runtime.exec(Runtime.java:620)
	at java.lang.Runtime.exec(Runtime.java:450)
	at java.lang.Runtime.exec(Runtime.java:347)
	at me.grax.jbytemod.decompiler.KrakatauDecompiler.decompile(KrakatauDecompiler.java:45)
	at me.grax.jbytemod.decompiler.Decompiler.decompile(Decompiler.java:53)
	at me.grax.jbytemod.decompiler.Decompiler.run(Decompiler.java:41)
Caused by: java.io.IOException: error=2, No such file or directory
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
	at java.lang.ProcessImpl.start(ProcessImpl.java:134)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 6 more


Please try setting the python path  
@GraxCode
Copy link
Owner

@GraxCode GraxCode commented Jun 7, 2018

Please try without /usr/bin (only "python3") as the path

@Daswf852
Copy link
Contributor Author

@Daswf852 Daswf852 commented Jun 9, 2018

Now I'm getting the following:

	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at java.lang.Runtime.exec(Runtime.java:620)
	at java.lang.Runtime.exec(Runtime.java:450)
	at java.lang.Runtime.exec(Runtime.java:347)
	at me.grax.jbytemod.decompiler.KrakatauDecompiler.decompile(KrakatauDecompiler.java:45)
	at me.grax.jbytemod.decompiler.Decompiler.decompile(Decompiler.java:53)
	at me.grax.jbytemod.decompiler.Decompiler.run(Decompiler.java:41)
Caused by: java.io.IOException: error=2, No such file or directory
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
	at java.lang.ProcessImpl.start(ProcessImpl.java:134)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
	... 6 more


Please try setting the python path
@tegid77
Copy link

@tegid77 tegid77 commented Jun 6, 2019

@Daswf852 where you ever able to correct this issue? I am experiencing this same issue now and I am not finding much documentation as to fixing it.

@deanvanwyk
Copy link

@deanvanwyk deanvanwyk commented Sep 10, 2020

@tegid77 I ran into this problem now and found that my specific issue was that I had python 2.7 configured as my Python SDK in my project. It was resolved when I upgraded to python3.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.