sg-wireless / pymakr-vsc

GNU General Public License v3.0
99 stars 25 forks source link

Pymakr on Raspberry Pi, Dietpi, arm64 #198

Open LeVraiRoiDHyrule opened 2 years ago

LeVraiRoiDHyrule commented 2 years ago

What are the steps to reproduce this issue?

  1. Install Dietpi arm64 on Raspberry Pi 3
  2. Log in remotely from SSH remote in VScode
  3. Install Pymakr in the remote host
  4. See the error

What happens?

Error at Pymakr extension launch : No prebuilt binaries found (target=14.16.0 runtime=electron arch=arm64 libc= platform=linux)

What were you expecting to happen?

I expect Pymakr to run on the remote Raspberry, so I can control it from VScode on my Windows PC, and executing code on the Lopy4 connected via USB to the Raspberry. (and getting the bottom Pymakr bar to upload from the Raspberry to the Lopy instead of from the PC)

Any logs, error output, etc?

Error when VScode launches : No prebuilt binaries found (target=14.16.0 runtime=electron arch=arm64 libc= platform=linux)

Any other comments?

What versions of software are you using?

Operating system: Dietpi

VSCode version: 1.64.0

Pymakr version: 1.1.17

LeVraiRoiDHyrule commented 2 years ago

EDIT : Just tried the beta0 for 1.1.18. I get a different error with it: The "path" argument must be of type string or an instance of Buffer or URL. Received an instance of Object

Josverl commented 2 years ago

While I earlier said that this would not work, after a few hours or learning about DietPI (thanks for the hint) and testing I find that this works today with the versions listed below.. As this did not work before with a 'prebuilt binary error' , to me this is an clear example of the benefits of SerialPort v10 with the N-API interface.

Setup:

image

I needed to add a number of manufacturers to the global configuration (not actually global , but per host) to allow Pymakr to recognize the different serialport drivers:

...
    "autoconnect_comport_manufacturers": [
        "Pycom",
        "Pycom Ltd.",
        "FTDI",
        "Microsoft",
        "Microchip Technology, Inc.",
        "1a86",
        "add the below manufacturers depending on your boards",
        "MicroPython",
        "Silicon Labs",
        "QinHeng Electronics"
    ]

image