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

ModuleNotFoundError: No module named 'usb' #42

Open
ItzzInfinity opened this issue Apr 8, 2024 · 2 comments
Open

ModuleNotFoundError: No module named 'usb' #42

ItzzInfinity opened this issue Apr 8, 2024 · 2 comments

Comments

@ItzzInfinity
Copy link

After Running sudo python3 run_5503.py I am getting this error

Traceback (most recent call last):
File "/home/itzzinfinity/goodix-fp-dump/run_5110.py", line 1, in
import driver_51x0
File "/home/itzzinfinity/goodix-fp-dump/driver_51x0.py", line 7, in
import crcmod
ModuleNotFoundError: No module named 'crcmod'

Tried to install crcmod independently by sudo pip3 install crcmod now I am getting

Traceback (most recent call last):
File "/home/itzzinfinity/goodix-fp-dump/run_5503.py", line 1, in
import driver_5503
File "/home/itzzinfinity/goodix-fp-dump/driver_5503.py", line 12, in
import goodix
File "/home/itzzinfinity/goodix-fp-dump/goodix.py", line 3, in
import usb
ModuleNotFoundError: No module named 'usb'

Although sudo pip3 install usb did not work for me

@benyaminl
Copy link

you need to run the activate as root, then after that you need to install the requirement, make sure the gcc build is working as it should be and show no error. Then you can run the package...

It also needs some other things like git submodule init then git submodule update, before you run it.

@LagrangeH
Copy link

LagrangeH commented Apr 21, 2024

I had this problem also with periphery and spidev

This helped me:

sudo apt install python3-usb python3-crcmod python3-periphery python3-spidev

And it finally ran!

.venv ❯ sudo python3 run_55b4.py        
#######################################################
This program might break your device.
Consider that it may flash the device firmware.
Continue at your own risk.
But don't hold us responsible if your device is broken!
Don't run this program as part of a regular process.
#######################################################
Type 9122 to continue and confirm that you are not a bot

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