no module named Adafruit_register

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
chuck_untulis
 
Posts: 127
Joined: Mon Jun 20, 2011 11:54 pm

no module named Adafruit_register

Post by chuck_untulis »

I am not sure this is the right Forum for PyPortal problems.
I had a running ...currentprice/USD code.py on the PyPortal.
I unzipped PyPortal_Smart_Thermometer onto CIRCUITPY (E:)
I copied the code.py from the PyPortal_Smart_Thermometer directory and over wrote the code.py under E:
The PyPortal restarted and reported "ImportError: no module named 'adafruit_register'" at line 50 of adafruit_adt7410.py

What do I need to do to get this code working?

Is there a way to copy the Traceback on the PyPortal so it can be included in posts?

User avatar
chuck_untulis
 
Posts: 127
Joined: Mon Jun 20, 2011 11:54 pm

Re: no module named Adafruit_register

Post by chuck_untulis »

circuitpy (E:) contains a lib folder which contains a adafruit_adt7410.mpy file. I assume that the "import adafruit_adt7410" statement in the PyPortal Smart Thermometer code refers to that file, but when I run the code, I get a error at line 50 in that file stating that it can't import adafruit_register. The unzip did not install a adafruit_register file of any flavor. I do not know where else to look? How does one decipher and mpy file?

User avatar
jerryn
 
Posts: 1868
Joined: Sat Sep 14, 2013 9:05 am

Re: no module named Adafruit_register

Post by jerryn »

You will need the adafruit_register folder to also be in your lib folder. It is available as part of the library “bundle”.
See https://learn.adafruit.com/adafruit-pyp ... -libraries for information on installing libraries.
You will likely also need the adafruit_bus_device folder as well.

I hope that helps.

User avatar
chuck_untulis
 
Posts: 127
Joined: Mon Jun 20, 2011 11:54 pm

Re: no module named Adafruit_register

Post by chuck_untulis »

Thanks. I will work on this tomorrow. Did I miss the directions to install them or are there plans to add notes to that effect in the directions? It would have saved me time and some confusion.

I just ran into a missing adafruit_display_text.label. Is that included in the libraries pointers you sent?

User avatar
chuck_untulis
 
Posts: 127
Joined: Mon Jun 20, 2011 11:54 pm

Re: no module named Adafruit_register

Post by chuck_untulis »

I found the information, but I did not pay enough attention when I was going through it earlier.

Thanks again.

User avatar
jerryn
 
Posts: 1868
Joined: Sat Sep 14, 2013 9:05 am

Re: no module named Adafruit_register

Post by jerryn »

Yes,
adafruit _display_text
Is in the “bundle” as well.

User avatar
chuck_untulis
 
Posts: 127
Joined: Mon Jun 20, 2011 11:54 pm

Re: no module named Adafruit_register

Post by chuck_untulis »

Thanks.

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”