circup: Missing dependency

  • Platform/operating system (i.e. Raspberry Pi with Raspbian operating system, Windows 32-bit, Windows 64-bit, Mac OSX 64-bit, etc.): windows 10 64-bit

  • Python version (run python -version or python3 -version): Python 3.9.0

  • Error message you are receiving, including any Python exception traces:

code.py output:
Traceback (most recent call last):
  File "code.py", line 4, in <module>
  File "adafruit_emc2101.py", line 30, in <module>
ImportError: no module named 'adafruit_register'
  • List the steps to reproduce the problem below (if possible attach code or commands to run):

On a pretty clean install of circuitpython, run circup install adafruit_emc2101

It says there are no dependencies, but when you run it, it complains of missing adafruit_register.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (12 by maintainers)

Most upvoted comments

@askpatrickw

Just an FYI, as of the 16 March 2021 Bundle release this is now fixed.

Hi Patrick. I am still facing exactly this issue after installing adafruit_mcp9808. I check circuitpythonbuildtools and it’s at version 1.8.5. Any idea what I can do?

python3 mcp9808.py Traceback (most recent call last): File "mcp9808.py", line 3, in <module> import adafruit_mcp9808 File "/usr/local/lib/python3.7/dist-packages/adafruit_mcp9808.py", line 41, in <module> from adafruit_register.i2c_bits import RWBits ModuleNotFoundError: No module named 'adafruit_register'

There is a pending PR for the adafruit_mcp9808 library that will fix this. It will hopefully get merged and release in the next 24-48 hours. https://github.com/adafruit/Adafruit_CircuitPython_MCP9808/issues/30

For now, if you run the following it should fix your problem: circup install adafruit-circuitpython-register