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

node-red from snap #5

Open
ezesolares opened this issue Apr 16, 2024 · 1 comment
Open

node-red from snap #5

ezesolares opened this issue Apr 16, 2024 · 1 comment

Comments

@ezesolares
Copy link

First, thanks for all the work

If i try to use node-red from snap
node-red 3.1.0 883 latest/stable noderedteam✓ -

when i try to install it, i get it
024-04-16T18:06:14.072Z Install : @background404/node-red-contrib-python-venv 0.0.2

2024-04-16T18:06:14.075Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict @background404/[email protected]
2024-04-16T18:06:14.285Z [err] npm
2024-04-16T18:06:14.285Z [err] WARN
2024-04-16T18:06:14.285Z [err] config production Use --omit=dev instead.
2024-04-16T18:06:14.487Z [err] npm
2024-04-16T18:06:14.487Z [err] ERR! code 127
2024-04-16T18:06:14.487Z [err] npm ERR! path /var/snap/node-red/883/node_modules/@background404/node-red-contrib-python-venv
2024-04-16T18:06:14.488Z [err] npm
2024-04-16T18:06:14.488Z [err] ERR!
2024-04-16T18:06:14.488Z [err] command failed
2024-04-16T18:06:14.488Z [err] npm
2024-04-16T18:06:14.488Z [err] ERR! command
2024-04-16T18:06:14.488Z [err] sh -c python setup.py
2024-04-16T18:06:14.488Z [err] npm
2024-04-16T18:06:14.488Z [err] ERR! sh: 1: python: not found
2024-04-16T18:06:14.490Z [err]
2024-04-16T18:06:14.490Z [err] npm ERR! A complete log of this run can be found in: /root/snap/node-red/883/.npm/_logs/2024-04-16T18_06_14_255Z-debug-0.log

in the snap, you can find python3

@404background
Copy link
Owner

@ezesolares
Thank you for your report to the issue!
I have never used node-red with snap, so I will try to build an environment and try it out.

Reading the error text, it is saying that the python program failed to execute.
This node runs setup.py when installing to create a virtual environment.

On the page about installing with snap, it says;

When installed as a Snap package, it will run in a secure container that does not have access to some extra facilities that may be needed for you to use

It also says the following at the end;

If you need access to system hardware or to add nodes that require compilation then we recommend using a full install of Node-RED and not using the snap.

This may be the reason why you cannot run the program.
Could you please check it out?

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