Error installing package (node-red-contrib-tfjs-coco-ssd)

Hi nodered experts,

I wonder is someone already use this package? and successfully use this library?
I got this error while installing it.

Here is my environment:
OS: Windows 10
Nodered version 2.x
NodeJS version 18.19.0

I

Your version of NodeRED is a little old, the current version is 3.1.9 and version 4 in in beta testing.

That said I just ran a test on my Mac mini using NR v4.0.0-beta.3 and it ran fine. Here is the flow I used:

[{"id":"90c1b8a65b4765ec","type":"tab","label":"Flow 4","disabled":false,"info":"","env":[]},{"id":"3e623d1a.c9fd42","type":"tensorflowCoco","z":"90c1b8a65b4765ec","name":"","modelUrl":"http://localhost:1880/coco/model.json","scoreThreshold":0.5,"passthru":"bbox","lineColour":"magenta","x":170,"y":140,"wires":[["14fa8ce2.fc7043","4ec7b21f.c2d45c"]]},{"id":"14fa8ce2.fc7043","type":"debug","z":"90c1b8a65b4765ec","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"classes","targetType":"msg","x":450,"y":140,"wires":[]},{"id":"4ec7b21f.c2d45c","type":"image","z":"90c1b8a65b4765ec","name":"","width":"250","data":"image","dataType":"msg","thumbnail":false,"active":true,"outputs":0,"x":320,"y":200,"wires":[]},{"id":"96668799.c4d6d8","type":"jimp-image","z":"90c1b8a65b4765ec","name":"people from wikimedia.org","data":"http://upload.wikimedia.org/wikipedia/commons/b/b3/Team_Queerala.jpg","dataType":"str","ret":"buf","parameter1":"","parameter1Type":"msg","parameter2":"","parameter2Type":"msg","parameter3":"","parameter3Type":"msg","parameter4":"","parameter4Type":"msg","parameter5":"","parameter5Type":"msg","parameter6":"","parameter6Type":"msg","parameter7":"","parameter7Type":"msg","parameter8":"","parameter8Type":"msg","sendProperty":"payload","parameterCount":0,"jimpFunction":"none","selectedJimpFunction":{"name":"none","fn":"none","description":"Just loads the image.","parameters":[]},"x":220,"y":100,"wires":[["5b4a2790f05904e1","3e623d1a.c9fd42"]]},{"id":"16bbdba9.a15f64","type":"inject","z":"90c1b8a65b4765ec","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":145,"y":60,"wires":[["96668799.c4d6d8"]],"l":false},{"id":"5b4a2790f05904e1","type":"debug","z":"90c1b8a65b4765ec","name":"debug 3445","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":450,"y":100,"wires":[]},{"id":"18b5ba6a46a7850b","type":"jimp-image","z":"90c1b8a65b4765ec","name":"Kitten from placekitten.com","data":"http://placekitten.com/300/300","dataType":"str","ret":"buf","parameter1":"","parameter1Type":"msg","parameter2":"","parameter2Type":"msg","parameter3":"","parameter3Type":"msg","parameter4":"","parameter4Type":"msg","parameter5":"","parameter5Type":"msg","parameter6":"","parameter6Type":"msg","parameter7":"","parameter7Type":"msg","parameter8":"","parameter8Type":"msg","sendProperty":"payload","parameterCount":0,"jimpFunction":"none","selectedJimpFunction":{"name":"none","fn":"none","description":"Just loads the image.","parameters":[]},"x":740,"y":100,"wires":[["b78c1cb3682991fb","5684bbd480bbfbfc"]]},{"id":"4792c067ede834f6","type":"inject","z":"90c1b8a65b4765ec","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":665,"y":60,"wires":[["18b5ba6a46a7850b"]],"l":false},{"id":"b78c1cb3682991fb","type":"debug","z":"90c1b8a65b4765ec","name":"debug 3446","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":990,"y":100,"wires":[]},{"id":"5684bbd480bbfbfc","type":"tensorflowCoco","z":"90c1b8a65b4765ec","name":"","modelUrl":"http://localhost:1880/coco/model.json","scoreThreshold":0.5,"passthru":"bbox","lineColour":"magenta","x":690,"y":140,"wires":[["f28e273c2cef6094","d538fe1fe36d3e18"]]},{"id":"f28e273c2cef6094","type":"debug","z":"90c1b8a65b4765ec","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"classes","targetType":"msg","x":990,"y":140,"wires":[]},{"id":"d538fe1fe36d3e18","type":"image","z":"90c1b8a65b4765ec","name":"","width":"250","data":"image","dataType":"msg","thumbnail":true,"active":true,"pass":false,"outputs":0,"x":800,"y":200,"wires":[]}]

and a visual of the results:

I would start off by updating your version of NR

@Henjoe of the messages shown in the screenshot, none is an error. They are only warnings - none of which will have caused the install to fail.

The warnings are due to the package using older modules that have been deprecated - resolving them would require the module to be updated (where possible) to use newer versions of those dependencies.

If you believe the install has actually failed, please share the full output of the install command - ideally as text (formatted using the </> button in the toolbar) and not a screenshot.

Hello thanks for pointing that out!
Here are some of the errors:

Any idea how to solve this?


I think the issue is my python version is 3.11 which is not yet supported.
I will try to update my python.

Still having issue:
Upgraded to latest version of nodered

Hi, I already upgraded it. But still having issue:

What version of Node-RED did you update to? If you stop and start NR you will see the version of node-red and node.js

Hi, I am using 3.1.9 NR version.
image

I wonder if you need to install python in order to work on this? It is not stated in the pre-requisites that python is needed right?
Thanks mate!

No, but there are signs. For example it says

On a Pi - you will also need to run this command after the main install.

cd ~/.node-red
npm rebuild @tensorflow/tfjs-node --build-from-source

which implies there is a build step in this module, which ultimately means (in the world of node) you need the build-essentials tools which (in the world of windows) means you should have ticked the box when you installed node-js

image

Thanks for this! I might need to re-install my nodejs. I will try this one.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.