Skip to content
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

Wont run #4

Open
zaidshakil opened this issue Jun 20, 2017 · 4 comments
Open

Wont run #4

zaidshakil opened this issue Jun 20, 2017 · 4 comments

Comments

@zaidshakil
Copy link

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
Copy link
Owner

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

@zaidshakil
Copy link
Author

Thank you for replying.
I have those 2 installed.

@pavelrevak
Copy link
Owner

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
Copy link

jimfred commented Jun 28, 2019

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.

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

No branches or pull requests

3 participants