anki / cozmo-python-sdk

Anki Cozmo Python SDK
Other
661 stars 427 forks source link

cozmo-python-sdk incompatible with Ubuntu #215

Open hybrisan opened 4 years ago

hybrisan commented 4 years ago

(The following message has also been posted to the Cozmo dev forum https://forums.anki.com/t/device-not-found/2211/43)

I've finally got into the root cause of the issue after spending 3 days banging my head. I even got into the source code on GitHub to try to debug. Here is the conclusion:

  1. the current cozmo module [Release 1.4.10] doesn't work with Ubuntu16.04 any more. The reason is the port that ithe code listens to "#: The TCP port number we expect the Cozmo app to be listening on. COZMO_PORT = 5106" is no longer valid in the latest version of ADB. Also the latest version of ADB doesn't seem to support the port forwarding like the way it used to anymore.
    https://github.com/anki/cozmo-python-sdk/blob/master/src/cozmo/run.py

  2. Then I reluctantly put back my Windows OS on an old laptop (not a big Windows fan). Then followed the Cozmo online beginner steps. Within 30 minutes, voila, lo and behold, I finally got my baby Cozmo to say hello world to me!

The Cozmo service/ support team may want to either update the GitHub code to make it compatible or take out the document that claims it's compatible with Ubuntu to save users time and effort.

Thanks, Justin

SRamezanH commented 1 year ago

remove loop=loop, in line 364 of run.py and , loop=self._loop in line 488 of event.py. It wil fix everything.

beaucarnes commented 1 year ago

Thank you so much @SRamezanH ! That fixed it for me.