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?
no module named Adafruit_register
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- chuck_untulis
- Posts: 127
- Joined: Mon Jun 20, 2011 11:54 pm
Re: no module named Adafruit_register
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?
- jerryn
- Posts: 1868
- Joined: Sat Sep 14, 2013 9:05 am
Re: no module named Adafruit_register
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.
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.
- chuck_untulis
- Posts: 127
- Joined: Mon Jun 20, 2011 11:54 pm
Re: no module named Adafruit_register
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?
I just ran into a missing adafruit_display_text.label. Is that included in the libraries pointers you sent?
- chuck_untulis
- Posts: 127
- Joined: Mon Jun 20, 2011 11:54 pm
Re: no module named Adafruit_register
I found the information, but I did not pay enough attention when I was going through it earlier.
Thanks again.
Thanks again.
- jerryn
- Posts: 1868
- Joined: Sat Sep 14, 2013 9:05 am
Re: no module named Adafruit_register
Yes,
adafruit _display_text
Is in the “bundle” as well.
adafruit _display_text
Is in the “bundle” as well.
- chuck_untulis
- Posts: 127
- Joined: Mon Jun 20, 2011 11:54 pm
Please be positive and constructive with your questions and comments.