dhhagan / py-opc

Python wrapper for the Alphasense OPC-N2 built around py-spidev
MIT License
30 stars 26 forks source link

test-device.py only works with python2 #69

Closed tshu closed 6 years ago

tshu commented 6 years ago

After installing usbiss according to the instructions using $ pip install git+https://github.com/DancingQuanta/pyusbiss.git, I am unable to run $ python3 test-device.py from the main folder.

pi@raspberrypi:~/py-opc $ python3 test-device.py 
Traceback (most recent call last):
  File "test-device.py", line 5, in <module>
    import usbiss
ImportError: No module named 'usbiss'

Interestingly, $ python test-device.py works fine.

DancingQuanta commented 6 years ago

Please see my comments on #70

tshu commented 6 years ago

$ pip3 install pyusbiss was required for compatibility with python3. @DancingQuanta thanks for the help. Last time I worked with python was when everyone still seemed to use python2 even though python3 had been out for ages.

@dhhagan If you could update the readme with updated instructions for python3 compatibility, I can check off a couple boxes from the review.