sunfounder / SunFounder_PiCar

GNU General Public License v2.0
34 stars 75 forks source link

picar command IOError #5

Open hlaredo opened 5 years ago

hlaredo commented 5 years ago

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 commented 5 years ago

Hi dear, Thank you for your support on us,could you give us your order number and the order screenshot,so that our after-sale can help you deal with it.Thanks.

Regards, Sunfounder team

support@sunfounder.com

From: hlaredo Date: 2018-11-11 12:30 To: sunfounder/SunFounder_PiCar CC: Subscribed Subject: [sunfounder/SunFounder_PiCar] picar command IOError (#5) 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 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

hlaredo commented 5 years ago

Hi,

I purchased this PiCar-S on Amazon. Attached is the order and details.

Let me know what are the next steps.

Thanks,

Horacio

On Sun, Nov 11, 2018 at 7:33 PM SunFounder notifications@github.com wrote:

Hi dear, Thank you for your support on us,could you give us your order number and the order screenshot,so that our after-sale can help you deal with it.Thanks.

Regards, Sunfounder team

support@sunfounder.com

From: hlaredo Date: 2018-11-11 12:30 To: sunfounder/SunFounder_PiCar CC: Subscribed Subject: [sunfounder/SunFounder_PiCar] picar command IOError (#5) 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 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sunfounder/SunFounder_PiCar/issues/5#issuecomment-437742265, or mute the thread https://github.com/notifications/unsubscribe-auth/Aq2ju8679Kkc4yAqJNnz7AnkB5cXecUmks5uuOv0gaJpZM4YYUTh .

sunfounder commented 5 years ago

Hi dear, Please try to check the wiring on the expansion board and reinsert it.

support@sunfounder.com

From: hlaredo Date: 2018-11-12 13:27 To: sunfounder/SunFounder_PiCar CC: SunFounder; Comment Subject: Re: [sunfounder/SunFounder_PiCar] picar command IOError (#5) Hi,

I purchased this PiCar-S on Amazon. Attached is the order and details.

Let me know what are the next steps.

Thanks,

Horacio

On Sun, Nov 11, 2018 at 7:33 PM SunFounder notifications@github.com wrote:

Hi dear, Thank you for your support on us,could you give us your order number and the order screenshot,so that our after-sale can help you deal with it.Thanks.

Regards, Sunfounder team

support@sunfounder.com

From: hlaredo Date: 2018-11-11 12:30 To: sunfounder/SunFounder_PiCar CC: Subscribed Subject: [sunfounder/SunFounder_PiCar] picar command IOError (#5) 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 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sunfounder/SunFounder_PiCar/issues/5#issuecomment-437742265, or mute the thread https://github.com/notifications/unsubscribe-auth/Aq2ju8679Kkc4yAqJNnz7AnkB5cXecUmks5uuOv0gaJpZM4YYUTh .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

kellycampbe commented 4 years ago

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.