When we ran a sample ODrive code on visual studios, it says that the odrive module is not found, as seen in the photo attached. We ran a “pip list” function in the terminal and found that the odrive module is available in our system, despite what Visual Studio Code says.
Would appreciate some insight on this matter, thank you for taking the time to read our post.
Hello. We got the sample code from odrive · PyPI . We extracted the zip file into our main folder. The sample code is located under “odrive python package/odrive-0.6.8-py3-none-any/odrive-0.6.8.data/scripts” and we opened “odrive_demo.py”.
We have updated python to the latest ver. However we have been getting the “error: externally-managed-environment”. We bypassed this via creating a virtual environment named “myenv”. From there we installed the odrive into the virtual environment. We did not do step 5 as we are using the Raspberry Pi OS. We are still unable to invoke the odrive library.
We got an error of “ModuleNotFoundError: No module named ‘odrive’”
Ok. After some chatgpt-ing we managed to fix the problems and it is now working.