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

installiation problems #130

Closed
g3d12 opened this issue Nov 23, 2017 · 5 comments
Closed

installiation problems #130

g3d12 opened this issue Nov 23, 2017 · 5 comments

Comments

@g3d12
Copy link

g3d12 commented Nov 23, 2017

Hi installation proccess and installed all required componets but running from the line: mirobo --help I get on Rpi3:

  File "/usr/local/bin/mirobo", line 7, in <module>
    from miio.vacuum_cli import cli
  File "/usr/local/lib/python3.4/dist-packages/miio/__init__.py", line 2, in <module>
    from miio.protocol import Message, Utils
  File "/usr/local/lib/python3.4/dist-packages/miio/protocol.py", line 30, in <module>
    from cryptography.hazmat.primitives import padding
  File "/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/primitives/padding.py", line 13, in <module>
    from cryptography.hazmat.bindings._padding import lib
ImportError: No module named '_cffi_backend'

and on other RPI model A:

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.4/dist-packages/miio/__init__.py", line 2, in <mo                                                                                                                                                             dule>
    from miio.protocol import Message, Utils
  File "/usr/local/lib/python3.4/dist-packages/miio/protocol.py", line 18, in <m                                                                                                                                                             odule>
    from typing import Any, Dict, Tuple
ImportError: No module named 'typing'

Please help me launching it on one of those Rpi's

@rytilahti
Copy link
Owner

On Rpi3 I think you need to install python3-cffi-backend if not already installed. For that second error it is necessary to install typing with pip.

@syssi
Copy link
Collaborator

syssi commented Nov 28, 2017

At Debian Jessie installing "python3-cffi-backend" solves the "No module named '_cffi_backend'" import error for me.

@rytilahti
Copy link
Owner

Ok, @g3d12 can you confirm and close the issue if it's solved with that?

The second error is due to missing typing module (as it is in the standard library only starting from 3.5), although it should be installed automatically as a dependency.

@g3d12
Copy link
Author

g3d12 commented Nov 28, 2017

Thanks, given answers let me install and use python-miio. I had to install some of the modules manually but its OK. Apart from this I'm really missing json to operate with different programs and scripts :)

@g3d12 g3d12 closed this as completed Nov 28, 2017
@rytilahti
Copy link
Owner

Mind noting down which modules were necessary so that we can update the documentation?

The JSON support is tracked in #98, although depending on your use-case it may be easier just to create a separate script using this library which outputs the wanted information in JSON.

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