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

Not working with python.exe. Library searches for python3.exe #151

Open
jeraldpraveen opened this issue Dec 4, 2024 · 1 comment
Open

Comments

@jeraldpraveen
Copy link

jeraldpraveen commented Dec 4, 2024

Python is installed in c:\Python\Python311. I am able to fetch python version with command 'python --version'.
But the command 'python3 --version' does not fetch python version. However, pythonia expects python3.exe
NOTE :PYTHON_BIN environment variable also not set.
I am consuming the package from node application.

python3.exe is not found.

this.proc = cp.spawn(process.env.PYTHON_BIN || 'python3', args, { stdio })

Expected : It should fall back to python
Actual :
BridgeException: Attempt to access 'fileImport' failed. Python didn't respond in time (100000ms), look above for any Python errors. If no errors, the API call hung.

image
@extremeheat
Copy link
Owner

Yes, we should probably move away from python3 to python default. But as mentioned you can currently fix this by setting the environment variable ahead of time to the correct path of your Python bin.

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

2 participants