Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirobo does not start on raspberry pi #442

Closed
thorschtn opened this issue Dec 27, 2018 · 5 comments
Closed

Mirobo does not start on raspberry pi #442

thorschtn opened this issue Dec 27, 2018 · 5 comments

Comments

@thorschtn
Copy link

thorschtn commented Dec 27, 2018

Do not get mirobo running on raspberry pi.

I have already updated Python and Pip and all dependencies, installation of python-miio ran without error, but at startup I always get the following error message, what's missing?

pi@raspberrypi ~ $ mirobo --ip 192.168.178.38 --token 39xxxxxxxxxxxxxxxxxxxxxxa74 Traceback (most recent call last): File "/usr/local/bin/mirobo", line 7, in <module> from miio.vacuum_cli import cli File "/usr/local/lib/python3.5/site-packages/miio/__init__.py", line 2, in <module> from miio.airconditioningcompanion import AirConditioningCompanion File "/usr/local/lib/python3.5/site-packages/miio/airconditioningcompanion.py", line 7, in <module> from .click_common import command, format_output, EnumType File "/usr/local/lib/python3.5/site-packages/miio/click_common.py", line 251, in <module> result_msg_fmt: Union[str, callable]="{result}"): File "/usr/local/lib/python3.5/typing.py", line 534, in __getitem__ dict(self.__dict__), parameters, _root=True) File "/usr/local/lib/python3.5/typing.py", line 467, in __new__ params.append(_type_check(p, msg)) File "/usr/local/lib/python3.5/typing.py", line 299, in _type_check raise TypeError(msg + " Got %.100r." % (arg,)) TypeError: Union[arg, ...]: each arg must be a type. Got <built-in function callable>.

@rytilahti
Copy link
Owner

The type hint should probably be Union[str, Callable], but I'm curious why this has not been a problem earlier, maybe something was changed in the typing module at some point. Which python version are you using?

@thorschtn
Copy link
Author

3.5.0

@syssi
Copy link
Collaborator

syssi commented Dec 31, 2018

I cannot reproduce the issue:

$ cd /tmp
$ python3 -m venv test-mirobo
$ cd test-mirobo
$ source bin/activate
$ pip3 install python-miio
Collecting python-miio
  Downloading https://files.pythonhosted.org/packages/22/2b/2496f53ea46ee5a30424b900e77ce6de4892ec5e2b8cf7300a1c20e5e0b2/python_miio-0.4.4-py3-none-any.whl (117kB)
    100% |████████████████████████████████| 122kB 1.3MB/s 
Collecting android-backup (from python-miio)
[...]
Successfully installed android-backup-0.2.0 appdirs-1.4.3 asn1crypto-0.24.0 attrs-18.2.0 cffi-1.11.5 click-7.0 construct-2.9.45 cryptography-2.4.2 idna-2.8 ifaddr-0.1.6 netifaces-0.10.7 pretty-cron-1.2.0 pycparser-2.19 python-miio-0.4.4 pytz-2018.7 six-1.12.0 tqdm-4.28.1 zeroconf-0.21.3
$
$ ./bin/mirobo --ip 192.168.130.57 --token b051cd86f85996283d82ccf9d27bd2db info
chuangmi.plug.m1 v1.2.4_17 (28:6C:07:F5:39:6E) @ 192.168.130.57 - token: b051cd86f85996283d82ccf9d27bd2db

$ pip3 list --local
android-backup (0.2.0)
appdirs (1.4.3)
asn1crypto (0.24.0)
attrs (18.2.0)
cffi (1.11.5)
Click (7.0)
construct (2.9.45)
cryptography (2.4.2)
idna (2.8)
ifaddr (0.1.6)
netifaces (0.10.7)
pip (9.0.1)
pkg-resources (0.0.0)
pretty-cron (1.2.0)
pycparser (2.19)
python-miio (0.4.4)
pytz (2018.7)
setuptools (32.3.1)
six (1.12.0)
tqdm (4.28.1)
zeroconf (0.21.3)
$ dpkg -l | grep python3.5
ii  libpython3.5:amd64                                          3.5.3-1+deb9u1
ii  libpython3.5-dev:amd64                                      3.5.3-1+deb9u1
ii  libpython3.5-minimal:amd64                                  3.5.3-1+deb9u1
ii  libpython3.5-stdlib:amd64                                   3.5.3-1+deb9u1
ii  python3.5                                                   3.5.3-1+deb9u1
ii  python3.5-dev                                               3.5.3-1+deb9u1
ii  python3.5-minimal                                           3.5.3-1+deb9u1
ii  python3.5-venv                                              3.5.3-1+deb9u1

@thorschtn
Copy link
Author

Thanks syssi,

I still have the issue, even in venv.

The differences in my environment are

Pip 18.1 vs. 9.0.1
Setuptools 18.2 vs. 32.3.1.

I need to check this once I'm back home.

@thorschtn
Copy link
Author

thorschtn commented Dec 31, 2018

Now I made an update to python 3.5.2 which brought Setuptools 40.6.3 - this made it working! Thanks a lot, the list of Software Versions helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants