-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Open
Labels
Description
This seems to be a repeat of an older bug like: #4110
java.io.IOException: Cannot run program "{runtime.tools.avrdude.path}/bin/avrdude": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:207)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.SketchController.upload(SketchController.java:796)
at processing.app.SketchController.exportApplet(SketchController.java:767)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2241)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 10 more
An error occurred while uploading the sketch
Laptop used: Fedora 27, 64bit Intel.
Workaround change Downloads/arduino-PR-beta1.9-BUILD-31/hardware/arduino/avr/platform.txt
from:
tools.avrdude.path={runtime.tools.avrdude.path}
to:
tools.avrdude.path=/home/YourUser/Downloads/arduino-PR-beta1.9-BUILD-31/hardware/tools/avr/
and uploads now work.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
facchinm commentedon Jan 8, 2018
Hi @jeffbuhrt , it is indeed the revamp of that old bug, but this time the fix is there so it could be a bit more complicated. Could you launch the IDE from the commandline with
--get-pref
flag and paste here the results?jeffbuhrt commentedon Jan 8, 2018
@facchinm I put arduino-PR-beta1.9-BUILD-31/hardware/arduino/avr/platform.txt back to the original tools.avrdude.path before running this:
ghost commentedon Jan 26, 2018
Same problem on Windows 7, Arduino 1.6.5 installed in the regular location, beta version dropped into c:\programs (are there instructions for using the beta? they are not near the download link)
I was asked to put version of avr core reported by library manager into the PR, but loading library manager, looking at installed packages, and searching for both "avr" and "core" did not turn up anything like an avr core in either version, so I don't know what that was supposed to mean.
facchinm commentedon Jan 29, 2018
Hi @drinkypoo ,
I need you to check the AVR core version on "Board Manager", not "Library manager" (you can find it at the top of "Tools/Board" submenu. Thanks!
matthijskooijman commentedon Sep 19, 2019
I was also running into this error when installing a git version of the AVR core directly into my sketchbook and deleting the bundled AVR core, see #9237. I do suspect that @jeffbuhrt was not doing any such things, so this is probably a different issue, but I wanted to link it just in case it is helpful.