cozmo-python-sdk icon indicating copy to clipboard operation
cozmo-python-sdk copied to clipboard

cozmo-python-sdk incompatible with Ubuntu

Open hybrisan opened this issue 5 years ago • 2 comments

(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

hybrisan avatar Aug 01 '19 17:08 hybrisan

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

SRamezanH avatar Aug 22 '22 20:08 SRamezanH

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

beaucarnes avatar Sep 07 '22 14:09 beaucarnes