-
-
Notifications
You must be signed in to change notification settings - Fork 26
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 PyCript on Macbook Air M1 | command not found #8
Comments
Hi @gchib297 why did you close this? having the same issue |
@impozzible The issue is not related to PyCript. The documentation mentioned that binaries/language should be accessible from anywhere in the system. The system env should have the path of the langauge binaries to allow using from anywhere in the system terminal. Make sure the Java/Python/node is in system environment variables and should be accessible from anywhere in terminal. |
I did a bit of debugging, and in macOS, the |
For anyone else who has this problem, you can try my patch here https://github.com/YSaxon/PyCript/tree/PATCH |
@YSaxon the issue has been fixed with different methods. The new commit 46b8b8c allows you to select the executable like python.exe node etc instead of taking langauge binary from system environment. The additional features which allow you to remove the limit of using just 3 langauge like Python Java and NodeJS. You can keep empty langauge path and use to run encrpytion decryption script as executable, which allows you to write encrpytion decryption script in compiled language like C C++ Rust or Go etc. |
Have you gone through the Documentation or Video Tutorial
Describe the bug
Documenting it here for reference if someone faces same issue in future. Thank you for the awesome work!
PyCript could not correctly determine path of installed python and node and logged following error on Log tab:
/bin/sh: python: command not found
Workaround for me was to use absolute paths in file ./pycript/execution.py at L8 and L10 as suggested in python doc here
@Anof-cyber maybe determining path at runtime using shutil.which() would help here?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Pycript should be able to determine installation path of python and node correctly
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: