pavelrevak / pystlink

Python tool for flashing and debugging STM32 devices using ST-LINK/V2
MIT License
218 stars 59 forks source link

Wont run #4

Open zaidshakil opened 7 years ago

zaidshakil commented 7 years ago

Traceback (most recent call last): File "pystlink.py", line 4, in import lib.stlinkusb File "/home/zaidshakil/TU Berlin/Robotics/pystlink/lib/stlinkusb.py", line 1, in import usb.core ImportError: No module named 'usb'

i keep getting this error, please suggest. I have updated the firmware

pavelrevak commented 7 years ago

Hello zadshakil, you don't have installed pyusb and libusb https://github.com/pavelrevak/pystlink/blob/master/README.md#requirements

zaidshakil commented 7 years ago

Thank you for replying. I have those 2 installed.

pavelrevak commented 7 years ago

then pyusb is probably installed for different version of python

try run: python3 and inside type import usb.core to test if is installed correctly.

jimfred commented 5 years ago

I had a similar issue, was seeing 'ImportError: No module named usb.core' when running 'pystlink_test.py' from the Windows command line. When running 'python pystlink_test.py', it ran successfully.