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
Jetson Nano resulting in AttributeError: module 'adafruit_platformdetect.constants.chips' has no attribute 'JH71x0' #798
Comments
Hi. Do you have any line numbers/files in your error message? Like you mentioned, it appears to be a case sensitivity thing, but knowing where to look makes it easier. :) |
Hi Melissa! Thank you for the quick response. This is the error message it its entirety: Traceback (most recent call last): Also I'm still a bit new to this kind of stuff! |
Ok cool. Looks like the issue is in Blinka. I'm going to move the issue there. |
Thank you! |
Please make sure your version of Blinka has been updated. This was fixed on September 8, 2023 in 1530cf9#diff-9fca1fe7549121157e443209ee47d75044bc44e6c0297a9596f4eb147f089b07. You can upgrade by running |
Just updated my adafruit blinka (used pip3 is that okay?) and I'm still receiving the same error message. D: I installed the library adafruit-circuitpython-neopixel-spi and adafruit-circuitpython-neopixel. Could there be a conflict here that messes it up? |
pip3 is fine. It doesn't sound like a conflict. Just out of curiosity, do you know which version of Python you're running? I suspect it is 3.6. If so, please try updating to 3.7 using this guide and the try upgrading again: https://learn.adafruit.com/circuitpython-libraries-on-linux-and-the-nvidia-jetson-nano/initial-setup#install-python-3-dot-7-and-make-default-3114929 |
Ohhhh, yeah I'm using 3.6.9. I'll update my python when I get off of work today and I'll let you know!!!! Thank you so much for the fast responses Melissa, do you have any social media by chance? I appreciate your help so much !! 😭 |
You're welcome. Social links are in my GitHub profile. |
Closing for now. We can always re-open. |
It looks like 3.8 was available, so I updated the guide for that. |
Hi! Just wanted to make sure, does adafruit-blinka come with its own board library/module or would I have to install it on my own? I updated my python to 3.8 and now my VSCode isn't reading getting some modules. |
Okay ^ ignore this one, I fixed it (I believe.) I got it running, and now I am getting this 😭😭 😭 if you could please help me I'd appreciate it very much 😭 Traceback (most recent call last): |
It sounds like you got a bit further. I'll try it out. I have the StarFive board as well and was the one who added it. |
Oh, I'm using a Jetson Nano! I'm not sure if it's the same problem? |
Hmm, ok. I have that too and am working on it. Mine is not having the same issue. |
What is the code you are trying to run? |
Actually, I wonder if you are running an old version of PlatformDetect. Try running |
I tried updating Platform Detect to my 3.8 Python environment using
And I'm running into the same error code. (im unsure if the pip install that you said works on applying it to 3.8 even though i thinkkk i made it my default environment (checked python version and it said it was 3.8) so i did that just to make sure.) This is my code that I am trying to run. import RPi.GPIO def lightshow(): lightshow() |
Try updating to |
Also, why are you importing RPi.GPIO? That's for the Raspberry Pi. |
3.62.0 or 3.6.2? And I'm importing RPi.GPIO because apparently it can be used for Jetson Nano as well? I'm unsure I have no lines in my code for that right now, I'm just using serial for motor control in my other functions (I've tried those and they worked before I implimented the stuff for neopixel) |
And just to confirm, this would be okay with python 3.8 right? Yeah, sorry I thought you meant python version! |
Also I just updated my PlatformDetect to 3.62.0 and checked the version with pip3list and its the version you told me, unfortunately its still giving the same error :(( |
It should be fine with 3.8. I just tested it. :) I'll try running your code and see if I run into the same thing. |
Based on the line numbers in your error message, I think you're still running an old version of Blinka. Please try running |
Okay, that made some progress I think!
I'm gonna look at the |
Actually I just realized even though I enabled the spi1 through the script, nothing comes up with I'm gonna try and redo those changes, maybe I didn't reboot properly so it didn't write the file that the guide talks about. |
Hi, I'm still having an issue with this. I currently have HDMI connected to the jetson nano, do you think that this is causing the problem? |
Hello all! I am working with this library with a Jetson Nano, and I was wondering how to fix:
AttributeError: module 'adafruit_platformdetect.constants.chips' has no attribute 'JH71x0'
I looked at the chips.py file and saw that there is an attribute there but the 'x' in that file is capitalized
Is that the reason why it is not reading properly? Thank you so much for any help, it is much appreciated.
-Ony
The text was updated successfully, but these errors were encountered: