Navigation

    Robolink logo
    • Register
    • Login
    • Search
    • [[global:header.categories]]
    • [[global:header.recent]]
    • [[global:header.tags]]
    • [[global:header.popular]]
    • [[global:header.users]]
    • [[global:header.groups]]
    As of September 2021, we have moved technical support to Robolink Help

    Welcome to the Robolink Community forum!

    You can post here to interact with others in the Robolink community. We're checking it weekly, and we'll respond to some messages. If you're looking for technical support, head over to Robolink Help.

    Not able to import CoDrone

    CoDrone Troubleshooting
    3
    5
    2666
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jeff last edited by Jeff

      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 1 Reply Last reply Reply Quote 0
      • B
        bmcguinn @robolink_leila last edited by

        @robolink_leila
        Thank you Leila. No errors this time.

        1 Reply Last reply Reply Quote 1
        • robolink_leila
          robolink_leila @bmcguinn last edited by

          @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.

          B 1 Reply Last reply Reply Quote 0
          • B
            bmcguinn @robolink_leila last edited by

            @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?

            robolink_leila 1 Reply Last reply Reply Quote 0
            • robolink_leila
              robolink_leila @Jeff last edited by

              @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!

              B 1 Reply Last reply Reply Quote 0
              • First post
                Last post