Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Can't find python on linux even if I set my path #4

Open
5HT2 opened this issue Mar 19, 2020 · 7 comments
Open

Can't find python on linux even if I set my path #4

5HT2 opened this issue Mar 19, 2020 · 7 comments

Comments

@5HT2
Copy link

5HT2 commented Mar 19, 2020

I tried the default python bin (3.8.1)and tried setting my path to 2.7.17, I get the same error

java.io.IOException: Cannot run program "py": error=2, No such file or directory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
	at java.lang.Runtime.exec(Runtime.java:621)
	at java.lang.Runtime.exec(Runtime.java:451)
	at java.lang.Runtime.exec(Runtime.java:348)
	at me.grax.jbytemod.decompiler.KrakatauDecompiler.decompile(KrakatauDecompiler.java:63)
	at me.grax.jbytemod.decompiler.Decompiler.decompile(Decompiler.java:59)
	at me.grax.jbytemod.decompiler.Decompiler.run(Decompiler.java:44)
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

2020-03-19-122905_404x114_scrot
2020-03-19-122929_556x184_scrot

@foaw
Copy link

foaw commented Mar 20, 2020

This is a JByteMod bug. Try to add a space at the end of the path.

@5HT2
Copy link
Author

5HT2 commented Mar 20, 2020

A space where? My path looks like PATH='~/bin:/other/paths:$PATH

@5HT2
Copy link
Author

5HT2 commented Mar 20, 2020

Oh, I see. I'll try recompiling and see if it fixes it.

@fee1-dead
Copy link

Try setting your python_path enviornment variable

@5HT2
Copy link
Author

5HT2 commented Apr 8, 2020

It's set.

@fee1-dead
Copy link

fee1-dead commented Apr 8, 2020

is it set to py instead of python?

@5HT2
Copy link
Author

5HT2 commented Apr 8, 2020

Nope, I've tried that as well.

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

No branches or pull requests

3 participants