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

picar command IOError #5

Open
hlaredo opened this issue Nov 11, 2018 · 4 comments
Open

picar command IOError #5

hlaredo opened this issue Nov 11, 2018 · 4 comments

Comments

@hlaredo
Copy link

hlaredo commented Nov 11, 2018

I am having a problem when running picar command ...

pi@PiCarS ~ $ picar
Traceback (most recent call last):
File "/usr/local/bin/picar", line 8, in
load_entry_point('SunFounder-PiCar==1.0.1', 'console_scripts', 'picar')()
File "/usr/local/lib/python2.7/dist-packages/SunFounder_PiCar-1.0.1-py2.7.egg/picar/init.py", line 43, in main
setup()
File "/usr/local/lib/python2.7/dist-packages/SunFounder_PiCar-1.0.1-py2.7.egg/picar/init.py", line 80, in setup
pwm=PCA9685.PWM(bus_number=1)
File "/usr/local/lib/python2.7/dist-packages/SunFounder_PiCar-1.0.1-py2.7.egg/picar/SunFounder_PCA9685/PCA9685.py", line 116, in init
self.bus = smbus.SMBus(self.bus_number)
IOError: [Errno 2] No such file or directory

@sunfounder
Copy link
Collaborator

sunfounder commented Nov 12, 2018 via email

@hlaredo
Copy link
Author

hlaredo commented Nov 12, 2018 via email

@sunfounder
Copy link
Collaborator

sunfounder commented Nov 13, 2018 via email

@kellycampbe
Copy link

I ran into this same error when setting my picar-s up tonight. After looking through the php files, I discovered that I needed to enable IC2. I ran sudo raspi-config and chose to enable IC2 and then the picar command works.

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