Welcome to the Robolink Community forum!
Not able to import CoDrone
-
So I did everything like in the tutorial, but it keep showing ImportError: cannot import name 'clock' from 'time' (unknown location)
So i don't know what to do now! using python -
@robolink_leila
Thank you Leila. No errors this time. -
@bmcguinn Our Python library has been updated to match with 3.8. You can upgrade the CoDrone library by running
!pip3 install --upgrade CoDrone
in a Jupyter cell. Let me know if you have errors so that I can walk through them with you. -
@robolink_leila
I am having the same problem when trying to import CoDrone. I initially had a problem installing Jupyter Notebook. Jupyter is now linked to Python 3.8. If I uninstall 3.8 Jupyter will not run. Is there a way to get it to import CoDrone from Python 3.7 without uninstalling 3.8? -
@jeff Unfortunately in the newer versions of Python they no longer support the 'clock' function. We will work on the library to match the updated Python version, but for now, I recommend downgrading your Python release to 3.7 instead of the newest 3.8. Hope this helps!