Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation doesn't work on Ubuntu #8

Closed
nicokaag opened this issue Jul 3, 2013 · 1 comment
Closed

Installation doesn't work on Ubuntu #8

nicokaag opened this issue Jul 3, 2013 · 1 comment

Comments

@nicokaag
Copy link

nicokaag commented Jul 3, 2013

I tried installing the newest version on ubuntu today, and got multiple errors.

I got the following error:

dtc: invalid option -- '@' || 4 times, followed by the help of DTC

Traceback (most recent call last):
File "setup.py", line 25, in
builder.copy()
File "/home/ubuntu/adafruit-beaglebone-io-python/overlays/builder.py", line 15, in copy
shutil.move("overlays/ADAFRUIT-SPI0-00-00A0.dtbo", "/lib/firmware/ADAFRUIT-SPI0-00-00A0.dtbo")
File "/usr/lib/python2.7/shutil.py", line 301, in move
copy2(src, real_dst)
File "/usr/lib/python2.7/shutil.py", line 130, in copy2
copyfile(src, dst)
File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: 'overlays/ADAFRUIT-SPI0-0000A0.dtbo'

After removing the @ option from the overlays/builder.py I got the error:

DTC: dts->dtb on file "overlays/ADAFRUIT-SPI0-00-00A0.dts"
Error: overlays/ADAFRUIT-SPI0-00-00A0.dts:2.2-8 syntax error
FATAL ERROR: Unable to parse input tree

uname -a outputs:

Linux arm 3.8.13-bone21 #1 SMP Fri Jun 14 03:10:29 UTC 2013 armv7l armv7l >armv7l GNU/Linux

Anything i'm doing wrong, or is the install just not compatible with ubnutu (yet)?

@jwcooper
Copy link
Member

jwcooper commented Jul 3, 2013

If you update, I've pushed a new version that disables the overlay compilation. Apparently dtc that comes with Ubuntu doesn't work with the -@ flag to compile dts to dtbo. For now, it can be disabled, as it's only needed for SPI, and that's not fully released yet.

0.0.8 is now live in pypi.

Thanks!

@jwcooper jwcooper closed this as completed Jul 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants