-
Notifications
You must be signed in to change notification settings - Fork 4
Canvas Install Errors #4
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
Comments
Hmm, interesting. I haven't played with this repo in a while. Maybe canvas has updated. What platform are you using for this. A raspberry pi? |
Yes, on a Pi. |
I have also tried a direct install of canvas and with the --build-from-source option as well. I am using sudo but still getting permission errors. |
This sounds like a canvas issue then, not so much this repo. I just popped over to the canvas GitHub page, and I can't see any open issues regards a pi install. I don't usually built with the pi for these reasons, its just annoying to debug. It certainly seems though from your description that's it's just permission errors so maybe googling around on how to build the canvas package could bring up some more results? When I get some spare time I want to install this on a pi so I can use it as a remote server. Until then I'm afraid I'm not going to be much help. |
Just having a look around, did you follow this at all? |
Yes. I have tried everything that I am able to find via searching. It is definitely Canvas itself. |
Ah annoying, Any chance you can post a log of the install, see if there is any relevant info in that? |
I read somewhere that you need to be root to install canvas. I tried that and it worked. Everything in the log was simple permission errors to create sub directories. Even though I was using Sudo. |
Also, in your README.md you might want to mention the additional nodes that need to get installed for your flow to work. Took me a little bit to find the Image one. |
Apologies for this, I thought I had for this repo, but ust have been thinking of another. Ill fix that up now.
Good news. Does this allow you to run the node correctly now? |
yes |
Awesome, glad its working then. I will close and pin this for others. Thanks for the info. |
please, where is the readme.md file? |
trying to install on pi4, not working! |
Have a look at the other issues for canvas install errors. |
thank you so much for your answer, |
I have been meaning to look into this as I have migrated all of my operations to embedded recently (mostly pi 4). If it works on linux but not the Pi, my guess is its the ARM architecture that's the issue. Seems there are a few issues related to ARM over on the canvas repo which might suggest this is the error as well: When I first built this node, I really tried to get rid of canvas to make it more portable, but unfortunately Face-API.js uses its functionality with no way around it. In the mean time if you manage to find a solution feel free to post it back here, or make a pull :) |
Hello, me again :) Thought I'd take a look at this.
I'm running the latest node-red docker image (official) and just being root isn't enough. There is no canvas (or issues building it) on alpine (the distro the node-red container runs on). To fix issues open a terminal into the node-red container and run:
You can then install node-red-contrib-face-recognition into node-red:
Hurray! Yet to confirm the nodes actually work of course..but...baby steps! Edit: Terrifying! |
I am getting canvas install errors when the install tries to create some sub directories under node_modules. I am getting permission errors.
I ran the install with sudo. I also tried creating all of the canvas directories ahead of time but still failing.
Joe
The text was updated successfully, but these errors were encountered: