New user, trying to setup Candle for the first time and trying to create a Candle Receiver—just keep getting an error on "Libraries" that "Downloading required libraries failed".
I think it has to do with these log errors:
2021-02-03 11:54:49.200 INFO : Candle-manager-addon: Checking for missing libraries, and installing if required.
2021-02-03 11:54:49.201 INFO : Candle-manager-addon: Downloading Arduino library: EEPROM
2021-02-03 11:54:49.203 INFO : Candle-manager-addon: library install command: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-arm/arduino-cli lib install "EEPROM"
2021-02-03 11:54:49.212 INFO : Candle-manager-addon: Run command error: /bin/sh: 1: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-arm/arduino-cli: not found
2021-02-03 11:54:49.213 INFO : Candle-manager-addon:
2021-02-03 11:54:49.214 INFO : Candle-manager-addon: Command failed
2021-02-03 11:54:49.214 INFO : Candle-manager-addon: Downloading Arduino library: MySensors
2021-02-03 11:54:49.215 INFO : Candle-manager-addon: library install command: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-arm/arduino-cli lib install "MySensors"
2021-02-03 11:54:49.222 INFO : Candle-manager-addon: Run command error: /bin/sh: 1: /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-arm/arduino-cli: not found
2021-02-03 11:54:49.223 INFO : Candle-manager-addon:
2021-02-03 11:54:49.224 INFO : Candle-manager-addon: Command failed
I notice that the repository doesn't have folders for "linux-arm" at all and on the pi, the arduino-cli/ folder is completely empty.
—
Edit: my pi is an arm7l and I'm just using the current WebThings Raspbian image. So I downloaded the linux-arm7/arduino-cli and put it in place... "Libraries" was successful and now "Compiling" is failing with:
2021-02-03 16:12:00.123 INFO : Candle-manager-addon: command = /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-arm/arduino-cli compile -v --fqbn arduino:avr:nano /home/pi/.webthings/data/Candle-manager-addon/code/Candle_receiver
2021-02-03 16:12:01.263 INFO : Candle-manager-addon: Run command error: Error during build: platform not installed
2021-02-03 16:12:01.264 INFO : Candle-manager-addon:
2021-02-03 16:12:01.265 INFO : Candle-manager-addon: Command failed
which seems significantly more challenging to work around than the last problem.
—
Or perhaps not. Ran:
arduino-cli core install arduino:avr
Now "Compiling" is successful but "Testing" fails:
2021-02-03 16:25:45.425 INFO : Candle-manager-addon: Port to test upload to:/dev/ttyUSB0
2021-02-03 16:25:45.426 INFO : Candle-manager-addon: Doing a test upload of the Candle Cleaner
2021-02-03 16:25:45.427 INFO : Candle-manager-addon: Initial bootloader value: :cpu=atmega328
2021-02-03 16:25:45.428 INFO : Candle-manager-addon: Uploading
2021-02-03 16:25:45.429 INFO : Candle-manager-addon: bootloader parameter = :cpu=atmega328
2021-02-03 16:25:45.430 INFO : Candle-manager-addon: Code name: Candle_cleaner
2021-02-03 16:25:45.431 INFO : Candle-manager-addon: path to upload from: /home/pi/.webthings/data/Candle-manager-addon/code/Candle_cleaner
2021-02-03 16:25:45.432 INFO : Candle-manager-addon: Arduino CLI upload command = /home/pi/.webthings/addons/Candle-manager-addon/arduino-cli/linux-arm/arduino-cli upload -p /dev/ttyUSB0 --fqbn arduino:avr:nano:cpu=atmega328 /home/pi/.webthings/data/Candle-manager-addon/code/Candle_cleaner
2021-02-03 16:25:46.587 INFO : Candle-manager-addon: first test result:{'success': False, 'message': 'Upload failed', 'errors': []}
2021-02-03 16:25:46.588 INFO : Candle-manager-addon: success:False
—
Manually compiled the Candle_cleaner and that seemed to let it proceed and complete.
Thank you for pointing this out. There was some code that over-enthousiastically removed binaries that weren't needed for the platform. It has been removed.
New user, trying to setup Candle for the first time and trying to create a Candle Receiver—just keep getting an error on "Libraries" that "Downloading required libraries failed".
I think it has to do with these log errors:
I notice that the repository doesn't have folders for "linux-arm" at all and on the pi, the arduino-cli/ folder is completely empty.
—
Edit: my pi is an arm7l and I'm just using the current WebThings Raspbian image. So I downloaded the linux-arm7/arduino-cli and put it in place... "Libraries" was successful and now "Compiling" is failing with:
which seems significantly more challenging to work around than the last problem.
— Or perhaps not. Ran:
arduino-cli core install arduino:avr
Now "Compiling" is successful but "Testing" fails:
—
Manually compiled the Candle_cleaner and that seemed to let it proceed and complete.