Skip to content

PyPi Release not importable #56

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

Closed
FoamyGuy opened this issue May 29, 2023 · 0 comments · Fixed by #57
Closed

PyPi Release not importable #56

FoamyGuy opened this issue May 29, 2023 · 0 comments · Fixed by #57

Comments

@FoamyGuy
Copy link
Contributor

FoamyGuy commented May 29, 2023

It seems that the files being released on PyPi don't include the actual library, or are not importable for some reason.

❯ python -m pip install adafruit-circuitpython-httpserver
Collecting adafruit-circuitpython-httpserver
  Using cached adafruit_circuitpython_httpserver-4.0.1-py3-none-any.whl (3.8 kB)
Collecting Adafruit-Blinka (from adafruit-circuitpython-httpserver)
  Downloading Adafruit_Blinka-8.19.0-py3-none-any.whl (302 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 302.3/302.3 kB 6.2 MB/s eta 0:00:00
Collecting Adafruit-PlatformDetect>=3.13.0 (from Adafruit-Blinka->adafruit-circuitpython-httpserver)
  Downloading Adafruit_PlatformDetect-3.46.0-py3-none-any.whl (23 kB)
Collecting Adafruit-PureIO>=1.1.7 (from Adafruit-Blinka->adafruit-circuitpython-httpserver)
  Downloading Adafruit_PureIO-1.1.11-py3-none-any.whl (10 kB)
Collecting pyftdi>=0.40.0 (from Adafruit-Blinka->adafruit-circuitpython-httpserver)
  Using cached pyftdi-0.54.0-py3-none-any.whl (144 kB)
Collecting adafruit-circuitpython-typing (from Adafruit-Blinka->adafruit-circuitpython-httpserver)
  Downloading adafruit_circuitpython_typing-1.9.4-py3-none-any.whl (10 kB)
Collecting pyusb!=1.2.0,>=1.0.0 (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-httpserver)
  Using cached pyusb-1.2.1-py3-none-any.whl (58 kB)
Collecting pyserial>=3.0 (from pyftdi>=0.40.0->Adafruit-Blinka->adafruit-circuitpython-httpserver)
  Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting adafruit-circuitpython-busdevice (from adafruit-circuitpython-typing->Adafruit-Blinka->adafruit-circuitpython-httpserver)
  Downloading adafruit_circuitpython_busdevice-5.2.6-py3-none-any.whl (7.5 kB)
Collecting adafruit-circuitpython-requests (from adafruit-circuitpython-typing->Adafruit-Blinka->adafruit-circuitpython-httpserver)
  Downloading adafruit_circuitpython_requests-1.13.4-py3-none-any.whl (11 kB)
Collecting typing-extensions~=4.0 (from adafruit-circuitpython-typing->Adafruit-Blinka->adafruit-circuitpython-httpserver)
  Using cached typing_extensions-4.6.2-py3-none-any.whl (31 kB)
Installing collected packages: pyserial, Adafruit-PlatformDetect, typing-extensions, pyusb, Adafruit-PureIO, pyftdi, adafruit-circuitpython-requests, adafruit-circuitpython-busdevice, adafruit-circuitpython-typing, Adafruit-Blinka, adafruit-circuitpython-httpserver
Successfully installed Adafruit-Blinka-8.19.0 Adafruit-PlatformDetect-3.46.0 Adafruit-PureIO-1.1.11 adafruit-circuitpython-busdevice-5.2.6 adafruit-circuitpython-httpserver-4.0.1 adafruit-circuitpython-requests-1.13.4 adafruit-circuitpython-typing-1.9.4 pyftdi-0.54.0 pyserial-3.5 pyusb-1.2.1 typing-extensions-4.6.2

CircuitPython_RGB_LED_HTTPServer on  main [!+] is 📦 v0.0.0+auto.0 via 🐍 v3.10.6 (venv) took 2s 
❯ python
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from adafruit_httpserver import Server
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'adafruit_httpserver'

It installs successfully, but if you try to import it there is a ModuleNotFoundError raised. My environment was Ubuntu PC. I ran into this issue while trying to build the docs locally for a library that depends on this one. Perhaps it's something specific to my environment, since the docs seem to have built successfully via actions here in github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant