Skip to content

Python-Bridge not working after app is built #41

@evlquaker

Description

@evlquaker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions