Forum Archive

Installing Cozmo package

esanker

I'm trying to install Cozmo but I'm getting an error stating "no matches found". I did a search in the Python Package database and the package exists. Any ideas?

alt text

esanker

Looks like the pip version on StaSH does not support extras in extras_require. Reported the issue to ywangd in Github.

lschweitzer

Hi - Did anybody manage to get the cozmo sdk work on Pythonista 3? (I don’t know if the Cozmo SDK is full Python...)
I get this in the interactive console with StaSh:

/Documents]$ pip install cozmo
Querying PyPI ...
Error: Source distribution not available for cozmo: 1.2.1

Many thanks in advance - Luc

JonB

from stash:

[~/Documents]$ wget https://pypi.python.org/packages/54/32/7fb79a87914a4d50b197af81da74f1d8887fc37289218d3396d395fb15b3/cozmo-1.2.1-py3-none-any.whl
Opening: https://pypi.python.org/packages/54/32/7fb79a87914a4d50b197af81da74f1d8887fc37289218d3396d395fb15b3/cozmo-1.2.1-py3-none-any.whl
Save as: cozmo-1.2.1-py3-none-any.whl (336026 bytes)
    336026  [100.00%]
[~/Documents]$ unzip cozmo-1.2.1-py3-none-any.whl 
[~/Documents]$ cd cozmo-1.2.1-py3-none-any.whl_unzipped/
[cozmo-1.2.1-py3-none-any.whl_unzipped]$ ll
cozmo (1.1K) 2017-12-26 17:09:13
cozmo-1.2.1.dist-info (306.0B) 2017-12-26 17:09:13
[cozmo-1.2.1-py3-none-any.whl_unzipped]$ mv cozmo ~/Documents/site-packages
[cozmo-1.2.1-py3-none-any.whl_unzipped]$ wget https://pypi.python.org/packages/58/ae/35dd444d41b845d4c37dc9cef7327a230253d9073326d336a559d08cd098/cozmoclad-2.1.0-py3-none-any.whl
Opening: https://pypi.python.org/packages/58/ae/35dd444d41b845d4c37dc9cef7327a230253d9073326d336a559d08cd098/cozmoclad-2.1.0-py3-none-any.whl
Save as: cozmoclad-2.1.0-py3-none-any.whl (415355 bytes)
    415355  [100.00%]
[cozmo-1.2.1-py3-none-any.whl_unzipped]$ unzip cozmoclad-2.1.0-py3-none-any.whl 
[cozmo-1.2.1-py3-none-any.whl_unzipped]$ cd cozmoclad-2.1.0-py3-none-any.whl_unzipped/
[cozmoclad-2.1.0-py3-none-any.whl_unzipped]$  mv cozmoclad ~/Documents/site-packages

then, in console:

import cozmo

lschweitzer

Many thanks! This works just fine on my iPhone. (Got to love copying and pasting on an iPhone...)