I have the raspberry pi and I play around with the raspberrypi tank from adeept.
Here is the official github link
https://github.com/adeept/adeept_raspta ... ts-program
When I want to start the server with
sudo python3 adeept_rasptank/server/webServer.py
I get this error
File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/I2C.py", line 55, in get_default_bus
raise RuntimeError('Could not determine default I2C bus for platform.')
RuntimeError: Could not determine default I2C bus for platform.
I have enabled i2c interface
with i2cdetect -l i get this
pi@raspberrypi:~/adeept_rasptank/server $ i2cdetect -l
i2c-1 i2c bcm2835 (i2c@7e804000) I2C adapter
RuntimeError: Could not determine default I2C bus for platfo
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- strammerJunge
- Posts: 4
- Joined: Fri Jan 07, 2022 7:00 am
- strammerJunge
- Posts: 4
- Joined: Fri Jan 07, 2022 7:00 am
Re: RuntimeError: Could not determine default I2C bus for pl
does anyone have a fix for that?
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: RuntimeError: Could not determine default I2C bus for pl
The project appears to be using a deprecated library:
https://github.com/adafruit/Adafruit_Python_GPIO
https://github.com/adafruit/Adafruit_Python_GPIO
- strammerJunge
- Posts: 4
- Joined: Fri Jan 07, 2022 7:00 am
Re: RuntimeError: Could not determine default I2C bus for pl
ok well, what do I need to do to fix it?
is there an updated library out there yet?
is there an updated library out there yet?
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: RuntimeError: Could not determine default I2C bus for pl
The project would need to be updated to use Blinka:
https://learn.adafruit.com/circuitpytho ... spberry-pi
That would provide basic GPIO functionality. For any external devices (like I2C or SPI sensors), the associated CircuitPython library would be used.
https://learn.adafruit.com/circuitpytho ... spberry-pi
That would provide basic GPIO functionality. For any external devices (like I2C or SPI sensors), the associated CircuitPython library would be used.
- CCM
- Posts: 3
- Joined: Mon Jan 10, 2022 9:45 pm
Re: RuntimeError: Could not determine default I2C bus for pl
Hi. So, I updated my CircuitPython using the shared link. I did the I2C test, and this was the result I got:
pi@pi:~ $ ls /dev/i2c* /dev/spi*
/dev/i2c-0 /dev/i2c-10 /dev/i2c-21 /dev/spidev0.0
/dev/i2c-1 /dev/i2c-20 /dev/i2c-22 /dev/spidev0.1
Does this mean I have 6 available and need to specify the default?
pi@pi:~ $ ls /dev/i2c* /dev/spi*
/dev/i2c-0 /dev/i2c-10 /dev/i2c-21 /dev/spidev0.0
/dev/i2c-1 /dev/i2c-20 /dev/i2c-22 /dev/spidev0.1
Does this mean I have 6 available and need to specify the default?
- OSP123
- Posts: 2
- Joined: Tue Jan 18, 2022 4:37 am
Re: RuntimeError: Could not determine default I2C bus for pl
Hi there,
I'm also interested in resolving this issue. I purchased the Adeept PiCar Pro a few days back and the software seems really out of date. I had to go to forums to get the latest information to update everything. I'm using Blinka now and I have 6 I2C as the poster above mentioned, but I'm still getting the error mentioned as well. Is there an update for this to resolve the issue? I'm currently trying to run in order to make the PiCar Pro activate.
I'm also interested in resolving this issue. I purchased the Adeept PiCar Pro a few days back and the software seems really out of date. I had to go to forums to get the latest information to update everything. I'm using Blinka now and I have 6 I2C as the poster above mentioned, but I'm still getting the error mentioned as well. Is there an update for this to resolve the issue? I'm currently trying to run
Code: Select all
sudo python3 adeept_picarpro/server/webServer.py
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: RuntimeError: Could not determine default I2C bus for pl
Please contact the maintainers of the Adeept PiCar Pro project.
- strammerJunge
- Posts: 4
- Joined: Fri Jan 07, 2022 7:00 am
Re: RuntimeError: Could not determine default I2C bus for pl
who are they?adafruit_support_carter wrote:Please contact the maintainers of the Adeept PiCar Pro project.
do you have a lik or something?
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
- OSP123
- Posts: 2
- Joined: Tue Jan 18, 2022 4:37 am
Re: RuntimeError: Could not determine default I2C bus for pl
Oh yeah, that was very stupid of me. For some reason, I thought the software was being maintained by you guys. Sorry about that! Yeah, it's from Adeept. Sigh, I should know better.
Please be positive and constructive with your questions and comments.