createcandle / Candle-manager-addon

An add-on for the Candle Controller / WebThings Gateway. It allows you to upload code to Arduino's with the click of a button.
MIT License
5 stars 5 forks source link

Compiling failed #21

Closed PiPietje closed 4 years ago

PiPietje commented 4 years ago

Nice project!

Iam trying to load some Nanoś but the proces fails during the c'ompiling'. The internal logfiles says:

2020-08-13 20:57:34.896 INFO : Candle-manager-addon: Error running Arduino CLI command: Command '/home/pi/.mozilla-iot/addons/Candle-manager-addon/arduino-cli/linux-arm/arduino-cli compile -v --fqbn arduino:avr:nano /home/pi/.mozilla-iot/addons/Candle-manager-addon/code/Temperature_and_more' timed out after 60 seconds 2020-08-13 20:57:34.920 INFO : Candle-manager-addon: Error during compiling: 'NoneType' object has no attribute 'splitlines'

Search for all splitlines: 2020-08-13 19:22:48.233 INFO : Candle-manager-addon: Error sending Arduino CLI update AVR command: 'NoneType' object has no attribute 'splitlines'

2020-08-13 18:53:45.216 INFO : Candle-manager-addon: Error running Arduino CLI command: Command '/home/pi/.mozilla-iot/addons/Candle-manager-addon/arduino-cli/linux-arm/arduino-cli core update-index' timed out after 60 seconds 2020-08-13 18:53:45.232 INFO : Candle-manager-addon: Error sending Arduino CLI update index command: 'NoneType' object has no attribute 'splitlines'

Tried several times with a fresh installed SD-CARD but no succes, the same results with the Candle-reciever and the Signal-hub

King regards Harry

createcandle commented 4 years ago

Thanks, I'll look into it!

createcandle commented 4 years ago

Could you share more about your situation?

I just did a quick test. I installed the addon on a Raspberry Pi 3B that was running a fresh test image (0.12), and everything worked perfectly. I installed two of the options, including the Temperature_and_more sensor that you tried.

I also tried running your exact command (/home/pi/.mozilla-iot/addons/Candle-manager-addon/arduino-cli/linux-arm/arduino-cli compile -v --fqbn arduino:avr:nano /home/pi/.mozilla-iot/addons/Candle-manager-addon/code/Temperature_and_more) on my device, and that also worked fine.

You could try installing the seashell addon and then running that command in there. Then it won't have the 60 second time limit. If a very slow internet connecting is the cause, that should solve it.

PiPietje commented 4 years ago

Oops, I was running Candle on a PiB+, I changed to a Pi3B and no issues at all :-)

createcandle commented 4 years ago

Great :-)