-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
/bin/sh command not found after building MacOS #7887
Comments
Aren't node system commands supposed to be called from the main process? |
Sorry, typo on my end. I did mean main process (src/main.ts file) |
I am having this exact same problem. |
Yeah trying to find a workaround for this and will post here, let me know if you find anything @betterbrand |
Try logging what electron-builder/packages/electron-updater/src/RpmUpdater.ts Lines 30 to 64 in 6b84010
|
Thank you! Trying this now |
@mmaietta @codergautam before building I get two different responses to the path.
Note: |
I meant to check the difference in |
@mmaietta @codergautam @paulrosania These are the two different log files. I'm new to this – I really appreciate your patience and guidance. |
FWIW and Just to be complete, I have tried this with forge as well. process_env_forge_packaged.log Checking for differences now |
PATH in runtime (npm run start) And PATH when packaged (npm run build) |
When running A packaged application doesn't have access to your user-profile |
Is it possible to load these from code? |
Anything that is loaded from the user's machine may or may not have their user profiles set up in the same way, so I would suggest against trying to load those files from code. There's a package that might be useful in this context: https://www.npmjs.com/package/python-shell That all being said, I don't know of a reliable way to load pip from within the app without it already being in the PATH. |
No it is in Path, just doesnt work when opening the app normally. When right clicking the app, pressing view package contents, navigating to the Terminal iconed app and opening that works perfectly fine. (It shows a log of the app while its running) @mmaietta Anyways will be investigating this, will post an update if I find anything. |
@codergautam i am having the same problem. Have you found any solution to make the command recognizable in the packed app? |
@elianbraja No not atm, will be investigating more this week and will post if I find any fix |
@codergautam I ended up |
Interesting will try it out, my issue is I need to call pip to check some current packages. Maybe I can try rewriting that in Python and calling that executed program. |
Seems to be related to #6726 in some way.
I'm trying to run some pip commands from my electron app using exec
(but same/similar issue with spawn and execa module as well)
Steps to reproduce:
Image:
I think for some reason it's trying to run the python 2.7 stuff which was removed. This is a major blocker, any way to fix?
The text was updated successfully, but these errors were encountered: