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

usb-flash still depends on Python2 #20

Open
chadmiller opened this issue Oct 4, 2019 · 3 comments · May be fixed by #21
Open

usb-flash still depends on Python2 #20

chadmiller opened this issue Oct 4, 2019 · 3 comments · May be fixed by #21

Comments

@chadmiller
Copy link

Python 2 is almost dead. Python3 has been around forever and should be the default.

@chadmiller chadmiller linked a pull request Oct 4, 2019 that will close this issue
@Decapitater
Copy link

hi can you help me solve
No Module named usb

./prog/usb-flasher/logitech-usb-flash.py bin/dongle.formatted.bin bin/dongle.formatted.ihx Traceback (most recent call last): File "./prog/usb-flasher/logitech-usb-flash.py", line 3, in <module> from unifying import * File "/home/zodiac/Downloads/nrf-research-firmware/prog/usb-flasher/unifying.py", line 19, in <module> import usb, logging, time, sys, struct, os ImportError: No module named usb make: *** [Makefile:33: logitech_install] Error 1

@TheRealMephisto
Copy link

@Decapitater Did you use the code adjustments from @chadmiller ?

Try changing "python3" to "python" in the first line of usb-flash.py, seems to be a wrong reference to the usb module when using python3

@TheRealMephisto
Copy link

Nevermind, there was still a reference to pyusb from a python2 library on my machine - got confused.
I am still running in the same issue as @Decapitater , will continue looking for a fix.

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

Successfully merging a pull request may close this issue.

3 participants