You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most Electron apps pack files into the ASAR archive, so there is no access to node_modules. During build it is possible to copy some resources outside of the ASAR bundle to be accessed later.
Would you accept a PR to provide a custom path to node_python_bridge.py?
I'm thinking there's probably some spec in package.json that allows us to add files as dependencies that I'm sure Electron picks up, perhaps files [0] ?
Until the PR is landed, I am using this hack to make it work with ASAR: electron/electron#9459 (comment) together with following electron-builder config:
I am getting a weird error. Does it have any relation with this issue? errno: -2, code: 'ENOENT', syscall: 'spawn python', path: 'python', spawnargs: [ 'path_to/node_python_bridge.py' ]
Activity
munro commentedon Jul 10, 2021
Ahhh, I see. Yes, send it this way!
I'm thinking there's probably some spec in
package.jsonthat allows us to add files as dependencies that I'm sure Electron picks up, perhapsfiles[0] ?[0] https://docs.npmjs.com/cli/v7/configuring-npm/package-json#files
agentcooper commentedon Jul 13, 2021
@munro I've sent a PR.
AFAIK there is nothing in Electron itself for this, however in one of the popular builders you need to specify those files manually.
agentcooper commentedon Jul 28, 2021
Until the PR is landed, I am using this hack to make it work with ASAR: electron/electron#9459 (comment) together with following
electron-builderconfig:{ "asarUnpack": ["node_modules/python-bridge"] }rkeshs commentedon Dec 26, 2021
I am getting a weird error. Does it have any relation with this issue?
errno: -2, code: 'ENOENT', syscall: 'spawn python', path: 'python', spawnargs: [ 'path_to/node_python_bridge.py' ]rkeshs commentedon Dec 26, 2021
I found what causing this error, It's just the wrong symlink in my linux system