-
Notifications
You must be signed in to change notification settings - Fork 594
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
Arduino firmata don't work under windows 10 #977
Comments
Please complete the full template (you can edit the opening comment) you were shown when opening the issue. It gathers all the information we need to be able to help. e.g. without showing us the error you mention we have no way of guessing what the problem might be. |
I'm going to guess that it is down to the fact that the underlying firmata library pins itself to a very old version of the serialport npm (v8 vs v10 today) and that is failing to build on latest build tools. (also assuming they have been installed). IF this is the case then we would need firmata project to update themselves which they haven't done for 2 years... Workaround is to create yourself a sketch for the Arduino that reads/writes whatever ports you require and sends the data direct over standard serial connection. |
Hi dceejay I am a new beginner in node-red so can you mabe tell whit it wil install unde my raspberry PI and also on my Linux (ubuntue) PC whit any problem/error ???? is it windows-10 there is the error ???? :-) Ben |
I don't know - I'm only guessing based on the (lack of) information you have provided - we would need to see th error log when you install to confirm. |
I have upload the error log...but here it is agn: 2023-02-15T15:19:34.621Z Install : node-red-node-arduino 0.3.1 2023-02-15T15:19:34.976Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected] |
Yep, as DCJ suggested it looks to be failing building the serialport bindings. Looking at the error I would guess it's failing because it's not been updated to use Python3. We can only guess at why it's working on the Linux machine, but most likely it still has python2 installed (even though it is completely out of date/support). |
Yep, just tested, that python one liner doesn't work on python3 but does with python2 |
HI Ben
So there is no chance to get it to work on windows :-( ???
B
Den ons. 15. feb. 2023 kl. 17.06 skrev Ben Hardill ***@***.***
…:
Yep, just tested, that python one liner doesn't work on python3 but does
with python2
—
Reply to this email directly, view it on GitHub
<#977 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGM6LRF5ZRGLDA5TFGDDGVDWXT5KDANCNFSM6AAAAAAU4OJ22E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Until the upstream Firmata library updates it's serialport dependency I would say it's unlikely. If you know what you are doing, you could try patching the build to get it to use the newer serialport and then open a PR against Firmata, but as DCJ mentioned it doesn't look like that project has been touched in a while (August 2021, but most even older) |
In fact I notice I already opened an issue back in 2020 - firmata/firmata.js#229 |
Hi all...
I can see my problem will not be cured...so I just have to stay on a RPI or
my Linux (Ubuntu) PC and don't update the system...i was just hoping that I
could share my little windows pc running NR at my summerhouse to controll
my ham-radio setup.
Thanks for all you info....
Ben
Send from my mobile office.
ons. 15. feb. 2023 18.34 skrev Dave Conway-Jones ***@***.***>:
… In fact I notice I already opened an issue back n 2020 -
firmata/firmata.js#229 <firmata/firmata.js#229>
with no response...
—
Reply to this email directly, view it on GitHub
<#977 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGM6LRCJLDFB37LUSDT6BM3WXUHSVANCNFSM6AAAAAAU4OJ22E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
As I said this is just this node - the best way round it is to write your own arduino application that just sends data via the serial port. The normal serialport node is updated and does work on windows. |
Thanks Dave...
Sorry but I can't make that kind of programming....For the Arduino Mega.
Thanks for your help/info
I have to try to find a another solution!
Regards Ben
Send from my mobile office.
fre. 17. feb. 2023 09.34 skrev Dave Conway-Jones ***@***.***>:
… As I said this is just this node - the best way round it is to write your
own arduino application that just sends data via the serial port. The
normal serialport node is updated and does work on windows.
—
Reply to this email directly, view it on GitHub
<#977 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGM6LRGZSUUMK7GRCYMIILTWX4Z27ANCNFSM6AAAAAAU4OJ22E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
you managed to install the firmata firmware into the arduino so you are a good part of the way there! There is plenty of help out there on arduino fora to help you, as long as you know what exactly you are trying to read, how often, etc. |
Hi Dave
I am a newbie in programming and my skill is not to build a sketch from
scratch...i can make Node-red get info from the Arduino-firmata...so now I
have to use Linux on one pc an win on another one to controll my ham-radio
setup at my summerhouse running it remote via VPN.
Thanks for your help
Ben
Send from my mobile office.
søn. 19. feb. 2023 19.32 skrev Dave Conway-Jones ***@***.***>:
… you managed to install the firmata firmware into the arduino so you are a
good part of the way there! There is plenty of help out there on arduino
fora to help you, as long as you know what exactly you are trying to read,
how often, etc.
—
Reply to this email directly, view it on GitHub
<#977 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGM6LRC4DTERLG2QZXCNAI3WYJRNBANCNFSM6AAAAAAU4OJ22E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have try to install the Arduino node (firmata) but I get error when I try to install it on my windows-10 pc...on a RPI or Linux (Ubuntu) there is no problem.
Is there a way to fixing this ????
Ben
Which node are you reporting an issue on? Arduino Firmata
What are the steps to reproduce?
What happens? get a erro vhen try to install on my win-10... but it will do it on RPI an Linux(ubuntue)
I get this error from the system when I try to install:
2023-02-15T15:19:34.621Z Install : node-red-node-arduino 0.3.1
2023-02-15T15:19:34.976Z npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2023-02-15T15:19:44.453Z [err] npm
2023-02-15T15:19:44.453Z [err] ERR! code 1
2023-02-15T15:19:44.453Z [err] npm ERR!
2023-02-15T15:19:44.453Z [err] path C:\Users\Bent.node-red\node_modules@serialport\bindings
2023-02-15T15:19:44.454Z [err] npm ERR!
2023-02-15T15:19:44.454Z [err] command failed
2023-02-15T15:19:44.454Z [err] npm ERR! command
2023-02-15T15:19:44.454Z [err] C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2023-02-15T15:19:44.454Z [err] npm
2023-02-15T15:19:44.454Z [err] ERR! gyp info it worked if it ends with ok
2023-02-15T15:19:44.454Z [err] npm ERR! gyp info using [email protected]
2023-02-15T15:19:44.454Z [err] npm ERR! gyp info using [email protected] | win32 | x64
2023-02-15T15:19:44.454Z [err] npm ERR! gyp ERR! configure error
2023-02-15T15:19:44.454Z [err] npm
2023-02-15T15:19:44.454Z [err] ERR! gyp ERR! stack Error: Command failed: C:\Python310\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
2023-02-15T15:19:44.454Z [err] npm
2023-02-15T15:19:44.455Z [err] ERR! gyp ERR! stack File "", line 1
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! stack
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:397:12)
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
2023-02-15T15:19:44.455Z [err] npm ERR!
2023-02-15T15:19:44.455Z [err] gyp ERR! System Windows_NT 10.0.19044
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Bent\.node-red\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! cwd C:\Users\Bent.node-red\node_modules@serialport\bindings
2023-02-15T15:19:44.455Z [err] npm
2023-02-15T15:19:44.455Z [err] ERR! gyp ERR! node -v v16.13.2
2023-02-15T15:19:44.455Z [err] npm ERR! gyp ERR! node-gyp -v v3.8.0
2023-02-15T15:19:44.455Z [err] npm
2023-02-15T15:19:44.455Z [err] ERR! gyp ERR! not ok
2023-02-15T15:19:44.455Z [err]
2023-02-15T15:19:44.455Z [err] npm ERR!
2023-02-15T15:19:44.455Z [err] A complete log of this run can be found in:
2023-02-15T15:19:44.455Z [err] npm ERR! C:\Users\Bent\AppData\Local\npm-cache_logs\2023-02-15T15_19_35_674Z-debug-0.log
2023-02-15T15:19:44.474Z rc=1
What do you expect to happen?
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: