ModuleNotFoundError: No module named 'odrive.enums'; 'odrive' is not a package

I’m trying to test a script I wrote but Ubuntu can’t find ODrive:

I have ODrivetool installed:
image

I’m calling the file with:

python3 odrive.py

I’ve also included the shebang at the top of the script:
image
I’ve tried using both python and python3 in the shebang

How can I fix this?

Rename your file. You can’t call it “odrive” !

3 Likes