Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Pymakr error on VSCode

    Scheduled Pinned Locked Moved Issues & Bugs
    10 Posts 4 Posters 68 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      Tarun Nigam
      last edited by Tarun Nigam

      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.11

      Error: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

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        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

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Tarun Nigam @Gijs
          last edited by

          @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.

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            Matthew Felgate 0 Global Moderator @Tarun Nigam
            last edited by

            @Tarun-Nigam

            Hi Tarun,

            You can install nodejs in a terminal by writing: sudo apt install nodejs

            Then try Pyamkr again.

            Let me know if this works for you?

            Best regards
            Matthew

            T 2 Replies Last reply Reply Quote 0
            • T Offline
              Tarun Nigam @Matthew Felgate 0
              last edited by

              @Matthew-Felgate-0 Thanks , will try this and get back to you on this. Want to see this thing working please.

              1 Reply Last reply Reply Quote 0
              • T Offline
                Tarun Nigam @Matthew Felgate 0
                last edited by

                @Matthew-Felgate-0 Hi Matthew, Have installed nodeJS ,nodeJS version is 10.23.1, still facing problem.
                Please let me know further steps.

                L 1 Reply Last reply Reply Quote 0
                • L Offline
                  livius @Tarun Nigam
                  last edited by

                  @Tarun-Nigam
                  question is if the problem is the same or message is different now?

                  think about people first, then computers

                  T 1 Reply Last reply Reply Quote 0
                  • T Offline
                    Tarun Nigam @livius
                    last edited by

                    @livius Facing same error, also I don't see Pymakr running in "Extensions Running" list in VS Code, Pls help.

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Matthew Felgate 0 Global Moderator
                      last edited by

                      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 Ports and 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

                      T 1 Reply Last reply Reply Quote 0
                      • T Offline
                        Tarun Nigam @Matthew Felgate 0
                        last edited by

                        @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)"

                        1 Reply Last reply Reply Quote 0

                        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
                        • 1 / 1
                        • First post
                          Last post

                        Pycom on Twitter

                        Pycom