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

Python-Bridge not working after app is built #41

Open
evlquaker opened this issue Apr 5, 2023 · 0 comments
Open

Python-Bridge not working after app is built #41

evlquaker opened this issue Apr 5, 2023 · 0 comments

Comments

@evlquaker
Copy link

Python-bridge works fine in the dev environment, but once I package the app using electron-builder it breaks. This seems to be related to ASAR. Node.js is able to properly read ASAR paths, but python is not. Note the app.asar in the path. It would be much appreciated if someone knows how to fix this. Until then I will try to exclude the file from ASAR.

This is the output when I run my packaged app on the command line:

C:\Program Files\binpro\resources\assets\WinPython\python.exe: can't open file 'C:\\Program Files\\binpro\\resources\\app.asar\\node_modules\\python-bridge\\node_python_bridge.py': [Errno 2] No such file or directory

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

1 participant