ericpulvino / pyBusylight

A python library to control Busylight devices based on pyusb.
MIT License
6 stars 8 forks source link

AttributeError: module 'pybusylight' has no attribute 'busylight' #3

Closed dev-id closed 4 years ago

dev-id commented 4 years ago

Installed via PIP

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pybusylight
>>> bl=pybusylight.busylight()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pybusylight' has no attribute 'busylight'
ericpulvino commented 4 years ago

Take a look at the example.py script for usage info. Specifically this line. https://github.com/ericpulvino/pyBusylight/blob/master/example.py#L2

dev-id commented 4 years ago

Working as from ... import