Board description file (boards.txt) not found. #71

Open
xiujunma opened this Issue Mar 12, 2013 · 19 comments

Comments

Projects
None yet
Searching for Board description file (boards.txt) ... FAILED
Board description file (boards.txt) not found. Searched in following places: 
  - /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino
  - /usr/local/share/arduino/hardware/arduino
  - /usr/share/arduino/hardware/arduino

I'm using Arduino 1.5.2 beta, boards.txt is placed in /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/boards.txt.

@xiujunma -- I had that problem as well. The fork from rogue-hack-lab worked for me.

xiujunma commented Apr 6, 2013

Thank you for sharing, I will try it later.

I have this same problem and the fork from rogue-hack-lab did not solve the problem for me.

The issue for me was that my arduino files are in my home directory, and ino is not programmed to look for arduino files there. This solved the issue for me:

sudo cp -r ~/arduino-1.0.5 /usr/local/share/arduino

lgruen commented Aug 27, 2013

If you're using Ubuntu or similar, "sudo apt-get install arduino" might do the trick alternatively.

@igruen, The arduino package in the standard repo is ancient. I don't recommend using that unless it's absolutely necessary.

@insanity54 Note this won't work for the new arduino 1.5+ release. The folder structure is different, which ino apparently does not support. e.g. hardware/arduino/boards.txt is now at hardware/arduino/avr/boards.txt.

Is there a way to get ino to work with 1.5.8 BETA? I'm looking to use this with a Due board. Is 1.5.8 required for ino, or just the IDE?

tonyc commented Jan 30, 2015

I'm running into this as well, on OSX. Anyone have some ideas?

+1 on OS X

$ ino build
Searching for Board description file (boards.txt) ... FAILED
Board description file (boards.txt) not found. Searched in following places: 
  - /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino
  - /usr/local/share/arduino/hardware/arduino
  - /usr/share/arduino/hardware/arduino

searching for boards.txt:

$ find /Applications/Arduino.app -iname boards.txt
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/boards.txt
/Applications/Arduino.app/Contents/Java/hardware/arduino/sam/boards.txt

It look like this code indicates it should find boards.txt under the avr/ directory but my install is not.

marcu commented Mar 20, 2015

Install the Arduino IDE version 1.0.x and the problem is resolved.

letterj commented Apr 18, 2015

Using the latest arduino version 1.6.3. on Mac System Version: OS X 10.10.3 (14D136)
Searching for Board description file (boards.txt) ... FAILED
Board description file (boards.txt) not found. Searched in following places:

  • /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino
  • /usr/local/share/arduino/hardware/arduino
  • /usr/share/arduino/hardware/arduino

The file is actually located at /Application/Arduino.app/Contents/Java/hardware/arduino/avr/boards.txt

I just ran into this error again on a fresh install. Is inotools a dead project? I tried submitting a patch and it's been ignored. That's really frustrating, because inotools is infinitely easier to use than the horrible Arduino Gui.

rsrini7 commented Jun 13, 2015

Hi chrisspen ,
I have replaced your environment.py and i am getting below error. Any suggestion ?
make: execvp: /bin/sh: Argument list too long
.build/uno/Makefile.deps:14: recipe for target '.build/uno/src/sketch.d' failed
make: *** [.build/uno/src/sketch.d] Error 127
Make failed with code 2

I am getting below error for the actual environment.py:

Searching for Board description file (boards.txt) ... /usr/local/share/arduino/hardware/arduino/boards.txt
Traceback (most recent call last):
File "/usr/local/bin/ino", line 6, in
main()
File "/usr/local/lib/python2.7/dist-packages/ino/runner.py", line 64, in main
e.process_args(args)
File "/usr/local/lib/python2.7/dist-packages/ino/environment.py", line 263, in process_args
all_models = self.board_models()
File "/usr/local/lib/python2.7/dist-packages/ino/environment.py", line 204, in board_models
subdict[key] = {}
TypeError: 'str' object does not support item assignment
ino build returned 256
127.0.0.1 - - [13/Jun/2015 06:49:56] "POST / HTTP/1.1" 400 -

@lgruen - your trick worked for me thx

Having to install an old package when you've already got the latest install in your system isn't ideal tho...

Any workarounds for this? I am also facing the same issue. I don't want to go back to previous version (1.0.6) when 1.6.x is available.

letterj commented Jul 8, 2015

I put together this pull request a while back to that fixed my issues with 1.6.3

#246

from the menu: Window/Preferences set the Arduino IDE path to your install of the Arduino IDE nomrally C:\Program Files\Arduino

i have also this issue... and i think, i should download a regular Arduino App to my Mac to have those Board Libs, am i right? or can i just download this files from internet separatly?

trevery commented Jun 5, 2017

Searching for Board description file (boards.txt) ... FAILED
Board description file (boards.txt) not found. Searched in following places:

  • /Applications/Arduino.app/Contents/Java/hardware/arduino
  • /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino
  • /usr/local/share/arduino/hardware/arduino
  • /usr/share/arduino/hardware/arduino

I add the true dir, but the bug still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment