adafruit / Adafruit_CircuitPython_BluefruitConnect

This module helps you to communicate with the Adafruit Bluefruit Connect app or use its protocols
MIT License
17 stars 16 forks source link

Fix pypi install #22

Closed dhalbert closed 4 years ago

dhalbert commented 4 years ago

This is a multifile package, but setup.py thought it was a single-file module.

@makermelissa This is essentially the same fix you just found for blinka displayio.

FoamyGuy commented 4 years ago

I may have done something incorrectly but I am getting Error upon importing still after attempting to test this fix in the same way I did for Blinka_Displayio repo. I pulled this branch and ran pip3 install . inside the directory. It outputted what seems like successful:

Building wheels for collected packages: adafruit-circuitpython-bluefruitconnect
  Running setup.py bdist_wheel for adafruit-circuitpython-bluefruitconnect ... done
  Stored in directory: /tmp/pip-ephem-wheel-cache-dr2zn7hn/wheels/87/72/57/d21f5                                                                                                                                                             835982ca65e3306849502c5b88ffe22a9ed74d26c0447
Successfully built adafruit-circuitpython-bluefruitconnect
Installing collected packages: adafruit-circuitpython-bluefruitconnect
Successfully installed adafruit-circuitpython-bluefruitconnect-0.1.dev65+g6ae038b

But afterward attempting to import I get this error:

>>> from adafruit_bluefruit_connect.color_packet import ColorPacket
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'adafruit_bluefruit_connect'
>>> import adafruit_bluefruit_connect
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'adafruit_bluefruit_connect'
FoamyGuy commented 4 years ago

One more quick note:

Both imports do work correctly if I start the python3 shell inside of this repo's directory. Only after the pip3 install that the imports are not working.