Pymakr error on VSCode
-
Hi , I am facing error with pymakr on VScode, below is the detail, I am working on Rpi4 debian OS
VS code
Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:30:36.006Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux arm 5.4.51-v7l+Pymakr version
Version:1.1.11Error:There was an error with your serialport module, Pymakr will likely not work properly. Please try to install again or report an issue on our github (see developer console for details)
I am attaching the log from VS code, please help solve the issue. As I am beginner will request if youn can provide step wise process.Error Log as Below:
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:5411 Extension 'ms-toolsai.jupyter cannot use PROPOSED API (must started out of dev or enabled via --enable-proposed-api)
updateEnableProposedApi @ /usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:5411
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:304 [Extension Host] Error while loading serialport library
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:304 [Extension Host] Error: Could not locate the bindings file. Tried: → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/Debug/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/Release/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/out/Debug/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/Debug/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/out/Release/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/Release/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/default/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/compiled/12.14.1/linux/arm/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/lib/binding/node-v80-linux-arm/bindings.node at bindings (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/bindings/bindings.js:126:9) at Object.<anonymous> (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/lib/linux.js:2:36) at Module.i._compile (/usr/share/code/resources/app/out/vs/loader.js:17:571) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1051:10) at Module.load (internal/modules/cjs/loader.js:862:32) at Module._load (internal/modules/cjs/loader.js:774:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1064:776) at Function.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1034:665) at Function.n._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1030:844) at Module.require (internal/modules/cjs/loader.js:899:19) at r (/usr/share/code/resources/app/out/vs/loader.js:17:346) at Object.<anonymous> (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/lib/index.js:14:22) at Module.i._compile (/usr/share/code/resources/app/out/vs/loader.js:17:571) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1051:10) at Module.load (internal/modules/cjs/loader.js:862:32) at Module._load (internal/modules/cjs/loader.js:774:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1064:776) at Function.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1034:665) at Function.n._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1030:844) at Module.require (internal/modules/cjs/loader.js:899:19) at r (/usr/share/code/resources/app/out/vs/loader.js:17:346) at Object.<anonymous> (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/serialport/lib/index.js:2:17) at Module.i._compile (/usr/share/code/resources/app/out/vs/loader.js:17:571) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1051:10) at Module.load (internal/modules/cjs/loader.js:862:32) at Module._load (internal/modules/cjs/loader.js:774:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1064:776) at Function.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1034:665) at Function.n._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1030:844) at Module.require (internal/modules/cjs/loader.js:899:19) at r (/usr/share/code/resources/app/out/vs/loader.js:17:346) at prepareSerialPort (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/pymakr.js:148:9) at activate (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/pymakr.js:7:5) at Function._callActivateOptional (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:933:980) at Function._callActivate (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:933:631) at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:932:126 at processTicksAndRejections (internal/process/task_queues.js:94:5) at async Promise.all (index 5) at async Promise.all (index 0)
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3129 There was an error with your serialport module, Pymakr will likely not work properly. Please try to install again or report an issue on our github (see developer console for details)
onDidChangeNotification @ /usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:3129
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:304 [Extension Host] There was an error with your serialport module, Pymakr will likely not work properly. Please try to install again or report an issue on our github (see developer console for details)
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:304 [Extension Host] Error: Could not locate the bindings file. Tried: → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/Debug/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/Release/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/out/Debug/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/Debug/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/out/Release/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/Release/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/default/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/compiled/12.14.1/linux/arm/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node → /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/lib/binding/node-v80-linux-arm/bindings.node at bindings (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/bindings/bindings.js:126:9) at Object.<anonymous> (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/lib/linux.js:2:36) at Module.i._compile (/usr/share/code/resources/app/out/vs/loader.js:17:571) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1051:10) at Module.load (internal/modules/cjs/loader.js:862:32) at Module._load (internal/modules/cjs/loader.js:774:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1064:776) at Function.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1034:665) at Function.n._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1030:844) at Module.require (internal/modules/cjs/loader.js:899:19) at r (/usr/share/code/resources/app/out/vs/loader.js:17:346) at Object.<anonymous> (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/lib/index.js:14:22) at Module.i._compile (/usr/share/code/resources/app/out/vs/loader.js:17:571) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1051:10) at Module.load (internal/modules/cjs/loader.js:862:32) at Module._load (internal/modules/cjs/loader.js:774:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1064:776) at Function.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1034:665) at Function.n._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1030:844) at Module.require (internal/modules/cjs/loader.js:899:19) at r (/usr/share/code/resources/app/out/vs/loader.js:17:346) at Object.<anonymous> (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/serialport/lib/index.js:2:17) at Module.i._compile (/usr/share/code/resources/app/out/vs/loader.js:17:571) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1051:10) at Module.load (internal/modules/cjs/loader.js:862:32) at Module._load (internal/modules/cjs/loader.js:774:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Function.t._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1064:776) at Function.i._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1034:665) at Function.n._load (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:1030:844) at Module.require (internal/modules/cjs/loader.js:899:19) at r (/usr/share/code/resources/app/out/vs/loader.js:17:346) at prepareSerialPort (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/pymakr.js:148:9) at activate (/home/pi/.vscode/extensions/pycom.pymakr-1.1.11/pymakr.js:7:5) at Function._callActivateOptional (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:933:980) at Function._callActivate (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:933:631) at /usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:932:126 at processTicksAndRejections (internal/process/task_queues.js:94:5) at async Promise.all (index 5) at async Promise.all (index 0)
/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:5407 Activating extension 'pycom.pymakr' failed: Could not locate the bindings file. Tried:
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/Debug/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/Release/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/out/Debug/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/Debug/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/out/Release/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/Release/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/build/default/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/compiled/12.14.1/linux/arm/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node
→ /home/pi/.vscode/extensions/pycom.pymakr-1.1.11/node_modules/@serialport/bindings/lib/binding/node-v80-linux-arm/bindings.node.
_logMessageInConsole @ /usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:5407 -
Are you running nodeJS on your pi? It seems from the logs it is not available. Have a look here:
Dependencies
NodeJS installed on your system (6.9.5 or higher) https://nodejs.org -
@Gijs Hi, Can u please guide me further as I am new to the things and have very less background in software and concepts. Need step by step procedure please.
-
Hi Tarun,
You can install nodejs in a terminal by writing:
sudo apt install nodejsThen try Pyamkr again.
Let me know if this works for you?
Best regards
Matthew -
@Matthew-Felgate-0 Thanks , will try this and get back to you on this. Want to see this thing working please.
-
@Matthew-Felgate-0 Hi Matthew, Have installed nodeJS ,nodeJS version is 10.23.1, still facing problem.
Please let me know further steps. -
@Tarun-Nigam
question is if the problem is the same or message is different now? -
@livius Facing same error, also I don't see Pymakr running in "Extensions Running" list in VS Code, Pls help.
-
Hi @Tarun-Nigam
Are you running this on a Raspberry Pi?
I think VS Code on Raspberry Pi is very new.
Can you do
Pymakr > Extra > List Serial Portsand tell me what is says?I think on the Raspberry Pi only 1 of the USB ports is a Serial Port.
Have you tried it plugging in to a different USB port?
Matt
-
@Matthew-Felgate-0 It does not accept the command, shows error
"Command 'Pymakr > Extra's > List serial ports' resulted in an error (command 'pymakr.extra.getSerial' not found)"
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login