0

RE: sudo pip install --upgrade Adafruit_BBIO
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Tue Feb 13, 2018 11:45 pm

Hello Sir,

I changed the file system over again and over again. It is not that my file system is corrupt. Thank heavens for that...I do not know how Python got so confused w/ the 4.9.78-ti-r94 image.

The software basically works out of the box w/ other images.

Seth

P.S. cat /etc/dogtag BeagleBoard.org Debian Image 2018-01-28. I could grab a different image. I might have to do it. Let me know if you figure something out. Thank you again.

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by drewfustini on Wed Feb 14, 2018 1:26 am

silver2row wrote:I changed the file system over again and over again. It is not that my file system is corrupt. Thank heavens for that...I do not know how Python got so confused w/ the 4.9.78-ti-r94 image.


Sorry, I do not understand what you mean.

Please paste exactly what errors you are receiving.

I would also suggest that you create an issue on the Seeed Studio's GitHub repo for the Motor Bridge Cape:
https://github.com/Seeed-Studio/MotorBr ... forBBG_BBB

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Wed Feb 14, 2018 1:40 am

Hello,

Sir...the error states that Adafruit_I2C has been deprecated. I should use Adafruit_GPIO.I2C instead. I try this Adafruit_GPIO.I2C instead in the MotorBridge.py file. My MotorBridge.py file now reads:

Code: Select all | TOGGLE FULL SIZE
from Adafruit_GPIO.I2C import Adafruit_GPIO.I2C
import Adafruit_BBIO.GPIO as GPIO
import time
Reset = "P9_23"
MotorBridge = Adafruit_GPIO.I2C(0x4b)
GPIO.setup(Reset, GPIO.OUT)


instead of...

Code: Select all | TOGGLE FULL SIZE
from Adafruit_I2C import Adafruit_I2C
import Adafruit_BBIO.GPIO as GPIO
import time
Reset = "P9_23"
MotorBridge = Adafruit_I2C(0x4b)
GPIO.setup(Reset, GPIO.OUT)


This is all...

Seth

P.S. I am going to try a new image b/c of the version of Adafruit_BBIO. I think the new version w/ my image makes a break in connection w/ software at some point. I really do not know. I will keep testing to see if I can find anything that works. I have used the Adafruit_BBIO software before and I still use it w/ older images, e.g. 4.4.x and 4.9.x. I just could not use this specific image to make it work for some reason.

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by drewfustini on Wed Feb 14, 2018 1:45 am

silver2row wrote:Hello,

Sir...the error states that Adafruit_I2C has been deprecated. I should use Adafruit_GPIO.I2C instead. I try this Adafruit_GPIO.I2C instead in the MotorBridge.py file. My MotorBridge.py file now reads:

Code: Select all | TOGGLE FULL SIZE
from Adafruit_GPIO.I2C import Adafruit_GPIO.I2C
import Adafruit_BBIO.GPIO as GPIO
import time
Reset = "P9_23"
MotorBridge = Adafruit_GPIO.I2C(0x4b)
GPIO.setup(Reset, GPIO.OUT)



Does this run OK for you? Are there errors?

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Wed Feb 14, 2018 1:56 am

No Sir,

It does not run okay. I get an error. It says syntax error and then the "^" points to the period in Adafruit_GPIO.I2C, e.g. b/t the GPIO and I2C (that period). I tried to duplicate the error message earlier on this site but the "^" moved away from where it was supposed to be located.

Seth

P.S. Let me know what you think.

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Wed Feb 14, 2018 10:37 pm

Hello Again,

Do not worry about it. I have tried different images and kernels that work fine. I will use other BBB/BBG machines to use the Motor Bridge Cape. I appreciate your help.

Seth

P.S. If you get bored or know of anyone who is having a similar issue, please let me know or post. BBB!

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by drewfustini on Thu Feb 15, 2018 1:57 am

silver2row wrote:Sir...the error states that Adafruit_I2C has been deprecated. I should use Adafruit_GPIO.I2C instead. I try this Adafruit_GPIO.I2C instead in the MotorBridge.py file. My MotorBridge.py file now reads:


Where did you see that error?

Please take a screenshot if you are able to.

The original unmodified BBG_MotorBridgeCape/MotorBridge.py runs without an error on my BeagleBone Black running Debian 9.3 (Stretch) with 4.9.81-bone9 kernel.

Also, I'd suggest you create a issue in the GitHub repo for MotorBridge.py

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Thu Feb 15, 2018 12:04 pm

Hello Sir,

Seth here. I left the attachment photo in this transmission. I added some other info like uname -a, too.

Seth

P.S. Here it is!
Attachments
Fut.JPG
Photo of my screenshot from PuTTY on Win.
Fut.JPG (71.54 KiB) Viewed 618 times

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by drewfustini on Thu Feb 15, 2018 2:37 pm

silver2row wrote:Seth here. I left the attachment photo in this transmission. I added some other info like uname -a, too.


That seems to be different than the line 33 in MotorBridge.py:
Code: Select all | TOGGLE FULL SIZE
from Adafruit_I2C import Adafruit_I2C

I'd like to see what changes have been made to that file on your system.

Please run these git commands to show the differences and take a screenshot:
Code: Select all | TOGGLE FULL SIZE
git status

git diff


I've attached a screenshot of my results.
Attachments
Screenshot from 2018-02-15 13-08-57.png
Screenshot from 2018-02-15 13-08-57.png (184.07 KiB) Viewed 608 times

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Thu Feb 15, 2018 8:32 pm

Hello,

I did change it. I have changed it many times to suit the error codes. Here goes it!

Seth
Attachments
NewFut.JPG
These are from the commands you told me to attempt...
NewFut.JPG (74.13 KiB) Viewed 602 times

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Fri Feb 16, 2018 12:03 am

Hello,

I am updating my kernel. I will let you know if this changes anything.

Seth

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Fri Feb 16, 2018 12:11 am

Hello Sir,

Seth here. I updated the kernel and reverted my MotorBridge.py library back to its original form, i.e. from Adafruit_I2C import Adafruit_I2C and so on. See the photo. I gave a print out of my error code, too.

Seth
Attachments
UpdateFuT.JPG
Updating and Retrieval...
UpdateFuT.JPG (76.23 KiB) Viewed 593 times

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Fri Feb 16, 2018 12:59 am

Hello Sir,

I think I figured out what happened. I had an eMMC image and SD Card image on the same machine. Who knows. I will keep testing.

Seth

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by drewfustini on Fri Feb 16, 2018 5:09 am

What is MBC.py?

That file does not appear in Seeed's MotorBridgeCapeforBBG_BBB repo.

Also, it appears you have a version of MotorBridge.py that differs from GitHub as well.

MotorBridge.py should have this on line 33:
Code: Select all | TOGGLE FULL SIZE
from Adafruit_I2C import Adafruit_I2C


I would suggest that you start over by cloning Seeed's MotorBridgeCapeforBBG_BBB repo.

drewfustini
 
Posts: 944
Joined: Sat Dec 26, 2015 1:19 pm

Re: RE: sudo pip install --upgrade Adafruit_BBIO

by silver2row on Fri Feb 16, 2018 9:07 am

Hello,

I started over w/ a new image. I used git clone to get the MotorBridge.py library software and added the MBC.py software to work w/ my Cape. I received the exact same errors.

Seth

P.S. I will keep trying.

silver2row
 
Posts: 180
Joined: Sat Jan 30, 2016 3:42 pm

Please be positive and constructive with your questions and comments.