You are not logged in.
Hi, I've recently updated my arduino from 1.5 to 1.6.4, when I run arduino, I'm getting the below error
java.io.FileNotFoundException: /usr/share/arduino/hardware/arduino/bootloaders/platform.txt (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at processing.app.helpers.PreferencesMap.load(PreferencesMap.java:72)
at processing.app.helpers.PreferencesMap.<init>(PreferencesMap.java:55)
at cc.arduino.contributions.packages.ContributionsIndexer.syncBuiltInPackageWithFilesystem(ContributionsIndexer.java:212)
at cc.arduino.contributions.packages.ContributionsIndexer.syncBuiltInHardwareFolder(ContributionsIndexer.java:190)
at cc.arduino.contributions.packages.ContributionsIndexer.syncWithFilesystem(ContributionsIndexer.java:178)
at processing.app.BaseNoGui.initPackages(BaseNoGui.java:610)
at processing.app.Base.<init>(Base.java:271)
at processing.app.Base.guardedMain(Base.java:215)
at processing.app.Base.main(Base.java:128)Indeed /usr/share/arduino/hardware/arduino/bootloaders/platform.txt is not there, but there's one in /usr/share/arduino/hardware/arduino/avr/platform.txt. I've tried installing using pacaur and also manually. When I downloaded the package manually from arduino (same URL in PKGBUILD), extract and run arduino, no issue at all. Not sure if the installation from AUR changed any config, or something from 1.5 was left in my system that cause this. Googling for this error don't turn up any result, my guess is it's specific to my setup. Any tips to further diagnose this would be helpful.
Thanks
Last edited by faultylee (2015-07-08 02:21:43)
Offline
What is your exact version?
Both the newest version from AUR3 (1.6.4-2) as well as from AUR4 (1.6.4-3) work fine for me.
But I have to say, the former version has been downloaded some time ago, so maybe it has changed for some reason?
/usr/share/arduino/hardware/arduino/bootloaders is not existing here as well but .../avr/<desired-content>.
If the version from arduino.cc works, have you checked whether the folder .../bootloaders exists?
Edit: Do you get this error on startup or on any specific action like compiling?
Last edited by respiranto (2015-06-14 09:37:27)
Offline
Hi respiranto, thanks for the reply. I was on 1.6.4-2. The files from arduino.cc is the same as the one installed from AUR, just that when running arduino from arduino.cc doesn't look for platform.txt inside bootloaders/ but on the one from AUR does. The message was from startup right after the splash screen.
I only see 1.6.4-2 when I goto https://aur.archlinux.org/packages/arduino/, how did you get 1.6.4-3?
Offline
You can download the tarball (now called snapshot) from the AUR4 (https://aur4.archlinux.org/packages/arduino).
You should have seen the note/warning in red (unless you use a browser like lynx), that all packages are moved to AUR4, on the AUR homepage.
Btw, if the files were exactly the same, the executables would also work in the same way.
However I am still not able to reproduce this problem - the only explanation I have is that the version 1.6.4-2 has been modified since its first upload (or your download was corrupted twice in the same way).
What about the relevant directories in <your-unpacked-arduino-dir>/pkg/... ?
Edit: in italic
Last edited by respiranto (2015-06-15 16:06:01)
Offline
Hmm, weird I don't see the anything red other than the package being marked outdate. I checked again today and it's updated to 1.6.5-1
Btw, the actual tarball is actually downloaded from Arduino's site. I did ran it from the src folder downloaded by makepkg and it works. I'm still guessing it's some leftover config from my existing install. I'll try out the latest update before digging further.
http://www.awesomescreenshot.com/upload … 56a4ed.png
Mod note: changed oversized image into a link. Please read the forum etiquette regarding image sizes -- WorMzy
Last edited by WorMzy (2015-06-17 08:38:37)
Offline
Hmm, weird I don't see the anything red other than the package being marked outdate.
I'm still guessing it's some leftover config from my existing install
You could search for files left over after removing the package.
Btw, did you change any configuration files?
Offline
Lol, this is the first time I actually see the AUR homepage. I normally goes straight to the package page.
I don't remember changing any other configuration, other than adding a few noxtal board setting. I'll probably try remove everything and start fresh.
Offline
Found the culprit, I've added /usr/share/arduino/hardware/arduino/bootloaders/atmega8_noxtal/ last time for a custom 'duino board I made and that location of the "bootloaders" is causing Arduino to look for the platform.txt on the wrong path. I'll adopt this over to the new 1.6 scheme when I'm free.
Thanks again @respiranto for the help. Cheers!!!
Offline