NEWS
[Frage] Xiaomi Vacuum cleaner
-
Leider auch Fehlermeldung bei Python 3:
! ````
Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 100% 389 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 389kB downloaded
Downloading/unpacking cffi>=1.4.1 (from cryptography->python-mirobo)
Downloading cffi-1.9.1.tar.gz (407kB): 407kB downloaded
Running setup.py (path:/tmp/pip-build-vmqvaiw6/cffi/setup.py) egg_info for package cffi
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found```` `
Die ffi headers installieren:
apt-get install libffi-dev
-
Habe ich installiert. Danach erneut mirobo mit folgendem Fehlerprotokoll:
! Downloading/unpacking cffi>=1.4.1 (from cryptography->python-mirobo)
! Downloading cffi-1.9.1.tar.gz (407kB): 407kB downloaded
! Running setup.py (path:/tmp/pip-build-52nwxyku/cffi/setup.py) egg_info for package cffi
! Downloading/unpacking appdirs>=1.4.0 (from setuptools>=11.3->cryptography->python-mirobo)
! Downloading appdirs-1.4.2-py2.py3-none-any.whl
! Downloading/unpacking packaging>=16.8 (from setuptools>=11.3->cryptography->python-mirobo)
! Downloading packaging-16.8-py2.py3-none-any.whl
! Downloading/unpacking pycparser (from cffi>=1.4.1->cryptography->python-mirobo)
! Downloading pycparser-2.17.tar.gz (231kB): 231kB downloaded
! Running setup.py (path:/tmp/pip-build-52nwxyku/pycparser/setup.py) egg_info for package pycparser
! warning: no previously-included files matching 'yacctab.' found under directory 'tests'
! warning: no previously-included files matching 'lextab.' found under directory 'tests'
! warning: no previously-included files matching 'yacctab.' found under directory 'examples'
! warning: no previously-included files matching 'lextab.' found under directory 'examples'
! Downloading/unpacking pyparsing (from packaging>=16.8->setuptools>=11.3->cryptography->python-mirobo)
! Downloading pyparsing-2.1.10-py2.py3-none-any.whl (56kB): 56kB downloaded
! Installing collected packages: python-mirobo, cryptography, idna, pyasn1, setuptools, cffi, appdirs, packaging, pycparser, pyparsing
! Running setup.py install for cryptography
! Installed /tmp/pip-build-52nwxyku/cryptography/cffi-1.9.1-py3.4-linux-armv7l.egg
! Searching for pycparser
! Reading https://pypi.python.org/simple/pycparser/
! Best match: pycparser 2.17
! Downloading https://pypi.python.org/packages/be/64/ … f6af5a40c7
! Processing pycparser-2.17.tar.gz
! Writing /tmp/easy_install-uxbzzer1/pycparser-2.17/setup.cfg
! Running pycparser-2.17/setup.py -q bdist_egg --dist-dir /tmp/easy_install-uxbzzer1/pycparser-2.17/egg-dist-tmp-05lk5pnb
! warning: no previously-included files matching 'yacctab.' found under directory 'tests'
! warning: no previously-included files matching 'lextab.' found under directory 'tests'
! warning: no previously-included files matching 'yacctab.' found under directory 'examples'
! warning: no previously-included files matching 'lextab.' found under directory 'examples'
! zip_safe flag not set; analyzing archive contents...
! pycparser.ply.pycache.yacc.cpython-34: module references file
! pycparser.ply.pycache.yacc.cpython-34: module MAY be using inspect.getsourcefile
! pycparser.ply.pycache.yacc.cpython-34: module MAY be using inspect.stack
! pycparser.ply.pycache.lex.cpython-34: module references file
! pycparser.ply.pycache.lex.cpython-34: module MAY be using inspect.getsourcefile
! pycparser.ply.pycache.ygen.cpython-34: module references file
! Installed /tmp/pip-build-52nwxyku/cryptography/pycparser-2.17-py3.4.egg
! no previously-included directories found matching 'docs/_build'
! warning: no previously-included files matching '' found under directory 'vectors'
! generating cffi module 'build/temp.linux-armv7l-3.4/_padding.c'
! generating cffi module 'build/temp.linux-armv7l-3.4/_constant_time.c'
! generating cffi module 'build/temp.linux-armv7l-3.4/_openssl.c'
! building '_openssl' extension
! arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-armv7l-3.4/_openssl.c -o build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4/_openssl.o
! build/temp.linux-armv7l-3.4/_openssl.c:434:30: fatal error: openssl/opensslv.h: Datei oder Verzeichnis nicht gefunden
! #include <openssl opensslv.h="">^
! compilation terminated.
! error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
! Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;file='/tmp/pip-build-52nwxyku/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-extnf5u5-record/install-record.txt --single-version-externally-managed --compile:
! Installed /tmp/pip-build-52nwxyku/cryptography/cffi-1.9.1-py3.4-linux-armv7l.egg
! Searching for pycparser
! Reading https://pypi.python.org/simple/pycparser/
! Best match: pycparser 2.17
! Downloading https://pypi.python.org/packages/be/64/ ... f6af5a40c7
! Processing pycparser-2.17.tar.gz
! Writing /tmp/easy_install-uxbzzer1/pycparser-2.17/setup.cfg
! Running pycparser-2.17/setup.py -q bdist_egg --dist-dir /tmp/easy_install-uxbzzer1/pycparser-2.17/egg-dist-tmp-05lk5pnb
! warning: no previously-included files matching 'yacctab.' found under directory 'tests'
! warning: no previously-included files matching 'lextab.' found under directory 'tests'
! warning: no previously-included files matching 'yacctab.' found under directory 'examples'
! warning: no previously-included files matching 'lextab.' found under directory 'examples'
! zip_safe flag not set; analyzing archive contents...
! pycparser.ply.pycache.yacc.cpython-34: module references file
! pycparser.ply.pycache.yacc.cpython-34: module MAY be using inspect.getsourcefile
! pycparser.ply.pycache.yacc.cpython-34: module MAY be using inspect.stack
! pycparser.ply.pycache.lex.cpython-34: module references file
! pycparser.ply.pycache.lex.cpython-34: module MAY be using inspect.getsourcefile
! pycparser.ply.pycache.ygen.cpython-34: module references file
! Installed /tmp/pip-build-52nwxyku/cryptography/pycparser-2.17-py3.4.egg
! running install
! running build
! running build_py
! creating build
! creating build/lib.linux-armv7l-3.4
! creating build/lib.linux-armv7l-3.4/cryptography
! copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-3.4/cryptography
! copying src/cryptography/about.py -> build/lib.linux-armv7l-3.4/cryptography
! copying src/cryptography/fernet.py -> build/lib.linux-armv7l-3.4/cryptography
! copying src/cryptography/utils.py -> build/lib.linux-armv7l-3.4/cryptography
! copying src/cryptography/init.py -> build/lib.linux-armv7l-3.4/cryptography
! creating build/lib.linux-armv7l-3.4/cryptography/x509
! copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-3.4/cryptography/x509
! copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-3.4/cryptography/x509
! copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-3.4/cryptography/x509
! copying src/cryptography/x509/init.py -> build/lib.linux-armv7l-3.4/cryptography/x509
! copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-3.4/cryptography/x509
! copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-3.4/cryptography/x509
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat
! copying src/cryptography/hazmat/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives
! copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives
! copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives
! copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives
! copying src/cryptography/hazmat/primitives/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives
! copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives
! copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives
! copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives
! copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings
! copying src/cryptography/hazmat/bindings/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/backends
! copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends
! copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends
! copying src/cryptography/hazmat/backends/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/ciphers
! copying src/cryptography/hazmat/primitives/ciphers/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/ciphers
! copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/ciphers
! copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/ciphers
! copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/ciphers
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/interfaces
! copying src/cryptography/hazmat/primitives/interfaces/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/interfaces
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/twofactor
! copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/twofactor
! copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/twofactor
! copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/twofactor
! copying src/cryptography/hazmat/primitives/twofactor/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/twofactor
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/asymmetric
! copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/asymmetric
! copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/asymmetric
! copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/asymmetric
! copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/asymmetric
! copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/asymmetric
! copying src/cryptography/hazmat/primitives/asymmetric/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/asymmetric
! copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/asymmetric
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/kdf
! copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/kdf
! copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/kdf
! copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/kdf
! copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/kdf
! copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/kdf
! copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/kdf
! copying src/cryptography/hazmat/primitives/kdf/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/primitives/kdf
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/commoncrypto
! copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/commoncrypto
! copying src/cryptography/hazmat/bindings/commoncrypto/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/commoncrypto
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/openssl
! copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/openssl
! copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/openssl
! copying src/cryptography/hazmat/bindings/openssl/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/openssl
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/commoncrypto
! copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/commoncrypto
! copying src/cryptography/hazmat/backends/commoncrypto/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/commoncrypto
! copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/commoncrypto
! copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/commoncrypto
! copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/commoncrypto
! creating build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/init.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-3.4/cryptography/hazmat/backends/openssl
! running egg_info
! writing dependency_links to src/cryptography.egg-info/dependency_links.txt
! writing top-level names to src/cryptography.egg-info/top_level.txt
! writing src/cryptography.egg-info/PKG-INFO
! writing entry points to src/cryptography.egg-info/entry_points.txt
! writing requirements to src/cryptography.egg-info/requires.txt
! warning: manifest_maker: standard file '-c' not found
! reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
! reading manifest template 'MANIFEST.in'
! no previously-included directories found matching 'docs/_build'
! warning: no previously-included files matching '' found under directory 'vectors'
! writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
! running build_ext
! generating cffi module 'build/temp.linux-armv7l-3.4/_padding.c'
! creating build/temp.linux-armv7l-3.4
! generating cffi module 'build/temp.linux-armv7l-3.4/_constant_time.c'
! generating cffi module 'build/temp.linux-armv7l-3.4/_openssl.c'
! building '_openssl' extension
! creating build/temp.linux-armv7l-3.4/build
! creating build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4
! arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-armv7l-3.4/_openssl.c -o build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4/_openssl.o
! build/temp.linux-armv7l-3.4/_openssl.c:434:30: fatal error: openssl/opensslv.h: Datei oder Verzeichnis nicht gefunden
! #include <openssl opensslv.h="">^
! compilation terminated.
! error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
! ----------------------------------------
! Cleaning up...
! Command /usr/bin/python3 -c "import setuptools, tokenize;file='/tmp/pip-build-52nwxyku/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-extnf5u5-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-52nwxyku/cryptography
! Storing debug log for failure in /root/.pip/pip.log</openssl></openssl> -
! build/temp.linux-armv7l-3.4/_openssl.c:434:30: fatal error: openssl/opensslv.h: Datei oder Verzeichnis nicht gefunden
! #include <openssl opensslv.h="">^
! compilation terminated.</openssl> `
Jetzt fehlt noch libssl-dev. -
Steht ja in github. Ich bin zu doof zum Lesen. Dennoch habe ich jetzt wieder eine Fehlermeldung:
! root@raspberrypi:~# apt-get install libssl-dev
! Paketlisten werden gelesen… Fertig
! Abhängigkeitsbaum wird aufgebaut.
! Statusinformationen werden eingelesen.... Fertig
! Die folgenden zusätzlichen Pakete werden installiert:
! libssl-doc
! Die folgenden NEUEN Pakete werden installiert:
! libssl-dev libssl-doc
! 0 aktualisiert, 2 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
! Es müssen 2.263 kB an Archiven heruntergeladen werden.
! Nach dieser Operation werden 6.480 kB Plattenplatz zusätzlich benutzt.
! Möchten Sie fortfahren? [J/n] j
! Holen: 1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libssl-dev armhf 1.0.1t-1+deb8u6 [1.095 kB]
! Holen: 2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libssl-doc all 1.0.1t-1+deb8u6 [1.168 kB]
! Es wurden 2.263 kB in 2 s geholt (1.081 kB/s).
! Vormals nicht ausgewähltes Paket libssl-dev:armhf wird gewählt.
! (Lese Datenbank … 118246 Dateien und Verzeichnisse sind derzeit installiert.)
! Vorbereitung zum Entpacken von .../libssl-dev_1.0.1t-1+deb8u6_armhf.deb ...
! Entpacken von libssl-dev:armhf (1.0.1t-1+deb8u6) ...
! Vormals nicht ausgewähltes Paket libssl-doc wird gewählt.
! Vorbereitung zum Entpacken von .../libssl-doc_1.0.1t-1+deb8u6_all.deb ...
! Entpacken von libssl-doc (1.0.1t-1+deb8u6) ...
! Trigger für man-db (2.7.0.2-5) werden verarbeitet ...
! libssl-dev:armhf (1.0.1t-1+deb8u6) wird eingerichtet ...
! libssl-doc (1.0.1t-1+deb8u6) wird eingerichtet ...
! root@raspberrypi:~# pip3 install python-mirobo
! Downloading/unpacking python-mirobo
! Downloading python_mirobo-0.0.3-py3-none-any.whl
! Requirement already satisfied (use --upgrade to upgrade): construct in /usr/local/lib/python3.4/dist-packages (from python-mirobo)
! Downloading/unpacking cryptography (from python-mirobo)
! Downloading cryptography-1.7.2.tar.gz (420kB): 420kB downloaded
! Running setup.py (path:/tmp/pip-build-0ccwl8vj/cryptography/setup.py) egg_info for package cryptography
! no previously-included directories found matching 'docs/_build'
! warning: no previously-included files matching '' found under directory 'vectors'
! Requirement already satisfied (use --upgrade to upgrade): pretty-cron in /usr/local/lib/python3.4/dist-packages (from python-mirobo)
! Requirement already satisfied (use --upgrade to upgrade): click in /usr/local/lib/python3.4/dist-packages (from python-mirobo)
! Downloading/unpacking idna>=2.0 (from cryptography->python-mirobo)
! Downloading idna-2.4-py2.py3-none-any.whl (55kB): 55kB downloaded
! Downloading/unpacking pyasn1>=0.1.8 (from cryptography->python-mirobo)
! Downloading pyasn1-0.2.3-py2.py3-none-any.whl (53kB): 53kB downloadedRequirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python3/dist-packages (from cryptography->python-mirobo)
! Downloading/unpacking setuptools>=11.3 (from cryptography->python-mirobo)
! Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 1% 4.1 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 2% 8.2 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 3% 12k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 4% 16k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 5% 20k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 6% 24k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 7% 28k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 8% 32k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 9% 36k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 10% 40k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 11% 45k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 12% 49k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 13% 53k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 14% 57k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 15% 61k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 16% 65k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 17% 69k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 18% 73k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 19% 77k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 21% 81k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 22% 86k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 23% 90k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 24% 94k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 25% 98k Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 26% 102 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 27% 106 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 28% 110 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 29% 114 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 30% 118 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 31% 122 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 32% 126 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 33% 131 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 34% 135 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 35% 139 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 36% 143 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 37% 147 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 38% 151 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 39% 155 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 41% 159 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 42% 163 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 43% 167 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 44% 172 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 45% 176 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 46% 180 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 47% 184 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 48% 188 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 49% 192 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 50% 196 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 51% 200 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 52% 204 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 53% 208 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 54% 212 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 55% 217 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 56% 221 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 57% 225 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 58% 229 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 59% 233 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 61% 237 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 62% 241 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 63% 245 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 64% 249 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 65% 253 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 66% 258 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 67% 262 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 68% 266 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 69% 270 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 70% 274 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 71% 278 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 72% 282 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 73% 286 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 74% 290 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 75% 294 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 76% 299 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 77% 303 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 78% 307 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 79% 311 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 80% 315 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 82% 319 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 83% 323 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 84% 327 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 85% 331 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 86% 335 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 87% 339 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 88% 344 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 89% 348 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 90% 352 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 91% 356 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 92% 360 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 93% 364 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 94% 368 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 95% 372 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 96% 376 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 97% 380 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 98% 385 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 99% 389 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 100% 389 Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): Downloading setuptools-34.3.1-py2.py3-none-any.whl (389kB): 389kB downloaded
! Downloading/unpacking cffi>=1.4.1 (from cryptography->python-mirobo)
! Downloading cffi-1.9.1.tar.gz (407kB): 407kB downloaded
! Running setup.py (path:/tmp/pip-build-0ccwl8vj/cffi/setup.py) egg_info for package cffi
! Downloading/unpacking appdirs>=1.4.0 (from setuptools>=11.3->cryptography->python-mirobo)
! Downloading appdirs-1.4.2-py2.py3-none-any.whl
! Downloading/unpacking packaging>=16.8 (from setuptools>=11.3->cryptography->python-mirobo)
! Downloading packaging-16.8-py2.py3-none-any.whl
! Downloading/unpacking pycparser (from cffi>=1.4.1->cryptography->python-mirobo)
! Downloading pycparser-2.17.tar.gz (231kB): 231kB downloaded
! Running setup.py (path:/tmp/pip-build-0ccwl8vj/pycparser/setup.py) egg_info for package pycparser
! warning: no previously-included files matching 'yacctab.' found under directory 'tests'
! warning: no previously-included files matching 'lextab.' found under directory 'tests'
! warning: no previously-included files matching 'yacctab.' found under directory 'examples'
! warning: no previously-included files matching 'lextab.' found under directory 'examples'
! Downloading/unpacking pyparsing (from packaging>=16.8->setuptools>=11.3->cryptography->python-mirobo)
! Downloading pyparsing-2.1.10-py2.py3-none-any.whl (56kB): 56kB downloaded
! Installing collected packages: python-mirobo, cryptography, idna, pyasn1, setuptools, cffi, appdirs, packaging, pycparser, pyparsing
! Running setup.py install for cryptography
! Installed /tmp/pip-build-0ccwl8vj/cryptography/cffi-1.9.1-py3.4-linux-armv7l.egg
! Searching for pycparser
! Reading https://pypi.python.org/simple/pycparser/
! Best match: pycparser 2.17
! Downloading https://pypi.python.org/packages/be/64/ ... f6af5a40c7
! Processing pycparser-2.17.tar.gz
! Writing /tmp/easy_install-p_x9avyu/pycparser-2.17/setup.cfg
! Running pycparser-2.17/setup.py -q bdist_egg --dist-dir /tmp/easy_install-p_x9avyu/pycparser-2.17/egg-dist-tmp-ketmxj32
! warning: no previously-included files matching 'yacctab.' found under directory 'tests'
! warning: no previously-included files matching 'lextab.' found under directory 'tests'
! warning: no previously-included files matching 'yacctab.' found under directory 'examples'
! warning: no previously-included files matching 'lextab.' found under directory 'examples'
! zip_safe flag not set; analyzing archive contents...
! pycparser.ply.pycache.yacc.cpython-34: module references file
! pycparser.ply.pycache.yacc.cpython-34: module MAY be using inspect.getsourcefile
! pycparser.ply.pycache.yacc.cpython-34: module MAY be using inspect.stack
! pycparser.ply.pycache.lex.cpython-34: module references file
! pycparser.ply.pycache.lex.cpython-34: module MAY be using inspect.getsourcefile
! pycparser.ply.pycache.ygen.cpython-34: module references file
! Installed /tmp/pip-build-0ccwl8vj/cryptography/pycparser-2.17-py3.4.egg
! no previously-included directories found matching 'docs/_build'
! warning: no previously-included files matching '' found under directory 'vectors'
! generating cffi module 'build/temp.linux-armv7l-3.4/_padding.c'
! generating cffi module 'build/temp.linux-armv7l-3.4/_constant_time.c'
! generating cffi module 'build/temp.linux-armv7l-3.4/_openssl.c'
! building '_openssl' extension
! arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-armv7l-3.4/_openssl.c -o build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4/_openssl.o
! arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4/_openssl.o -lssl -lcrypto -o build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/_openssl.cpython-34m.so
! building '_constant_time' extension
! arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-armv7l-3.4/_constant_time.c -o build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4/_constant_time.o
! arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4/_constant_time.o -o build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/_constant_time.cpython-34m.so
! building '_padding' extension
! arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c build/temp.linux-armv7l-3.4/_padding.c -o build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4/_padding.o
! arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/build/temp.linux-armv7l-3.4/_padding.o -o build/lib.linux-armv7l-3.4/cryptography/hazmat/bindings/_padding.cpython-34m.so
! Found existing installation: setuptools 5.5.1
! Not uninstalling setuptools at /usr/lib/python3/dist-packages, owned by OS
! Running setup.py install for cffi
! Traceback (most recent call last):
! File "<string>", line 1, in <module>File "/usr/local/lib/python3.4/dist-packages/setuptools/init.py", line 12, in <module>import setuptools.version
! File "/usr/local/lib/python3.4/dist-packages/setuptools/version.py", line 1, in <module>import pkg_resources
! File "/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py", line 70, in <module>import packaging.version
! ImportError: No module named 'packaging'
! Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;file='/tmp/pip-build-0ccwl8vj/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-uoxfec1w-record/install-record.txt --single-version-externally-managed --compile:
! Traceback (most recent call last):
! File "<string>", line 1, in <module>File "/usr/local/lib/python3.4/dist-packages/setuptools/init.py", line 12, in <module>import setuptools.version
! File "/usr/local/lib/python3.4/dist-packages/setuptools/version.py", line 1, in <module>import pkg_resources
! File "/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py", line 70, in <module>import packaging.version
! ImportError: No module named 'packaging'
! ----------------------------------------
! Cleaning up...
! Command /usr/bin/python3 -c "import setuptools, tokenize;file='/tmp/pip-build-0ccwl8vj/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-uoxfec1w-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-0ccwl8vj/cffi
! Storing debug log for failure in /r</module></module></module></module></string></module></module></module></module></string> -
Steht ja in github. Ich bin zu doof zum Lesen. `
Bist du nicht, ich habe es nur schnell aktualisiert> ImportError: No module named 'packaging'
Dies ist komplizierter, anscheinbar ist mein eigenes System irgendwie anders eingerichtet, sodass es funktioniert. Ich könnte dieses Problem auch jetzt bei mir wiedergeben, eine Lösung habe ich noch nicht gefunden. -
> ImportError: No module named 'packaging'
Das Problem habe ich gefunden, es geht um zu alten Versionen von pip & setuptools, ich habe die README.md aktualisiert.$ virtualenv -p python3 miroboenv .. $ source miroboenv/bin/activate .. $ pip3 install -U pip setuptools .. $ pip install python-mirobo .. $ mirobo State: Charging Battery: 100 Fanspeed: 30 Cleaning since: 0:00:00 Cleaned area: 1.6925 m²
Danke für das Testen
-
My pleasure! Aber testen kann ich erst morgen wieder. Ich werde berichten.
-
Tpr,
So, weiter getestet wie versprochen. Ich bekomme noch immer Fehler.
1. starte ich````
pip3 install -U pip setuptools>! Traceback (most recent call last): >! File "/usr/bin/pip3", line 5, in <module>from pkg_resources import load_entry_point >! File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>import packaging.version >! ImportError: No module named 'packaging'</module></module> 2\. starte ich```` pip3 install python-mirobo
kommt
! root@raspberrypi:~# pip3 install python-mirobo
! Traceback (most recent call last):
! File "/usr/bin/pip3", line 5, in <module>from pkg_resources import load_entry_point
! File "/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py", line 70, in <module>import packaging.version
! ImportError: No module named 'packaging'</module></module>Irgendwo ist noch der Hund drin
-
Ohh, hmh. Nun, einzelne was ich nachdenken kann wäre das ganze pip manuell erneut installieren wie hier: https://raspberrypi.stackexchange.com/q … 2413#62413 (ohne paramiko zeile)
-
Hat schon jemand erfolg mit der Umsetzung in Javascript ?
-
Die eigentliche Routine habe ich bereits nach Javascript umgeschrieben und scheint zu funktionieren. Jetzt muss ich das Ganze in einen Adapter umschreiben. Da ich hiermit noch keinerlei Erfahrungen habe, wird das etwas dauern. Mal sehen, was das nächste Wochenende bringt.
-
Kannst du die Umsetzung in Javascript schon mal hier bereit stellen?
-
Kannst du die Umsetzung in Javascript schon mal hier bereit stellen?
`
Ja, das wäre toll.
Dann können wir ja schon einmal testen.
mfg
-
tpr,
Es will nicht! Nachdem ich
sudo pip install cryptography
eingegeben habe, erhalte ich folgende Fehlermeldung:
! File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 70, in <module>import packaging.version
! ImportError: No module named packaging.version
! –--------------------------------------
! Cleaning up...
! Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-otSuJz/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-2vd4e4-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-otSuJz/cffi
! Storing debug log for failure in /root/.pip/pip.log</module>Was tun? Hast Du eine Idee? Alle anderen Befehle aus
https://raspberrypi.stackexchange.com/q … 2413#62413
liefen anstandslos durch. Und dann bei cryptography war Schluss
-
tpr.
Ergänzung: nachdem sich cryptography nicht installieren ließ habe ich einfach mal die beiden weiteren Befehle
ausgeführt. Danach lief die Installation von cryptography durch. Ich dachte schon, das sei es. Wenn ich dann aber mirobo ausführe, bekomme ich wieder die packaging Fehlermeldung
! root@raspberrypi:~# pip3 install python-mirobo
! Traceback (most recent call last):
! File "/usr/bin/pip3", line 5, in <module>from pkg_resources import load_entry_point
! File "/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py", line 70, in <module>import packaging.version
! ImportError: No module named 'packaging'</module></module>Habe alles so gemacht, wie Du es im Github beschreibst. Außer: "Using virtualenv is recommended." Das habe ich nicht durchgeführt. Auch, weil ich nicht kapiere, was das ist. Könnte da der Hund begraben sein?
-
tpr.
Ergänzung: nachdem sich cryptography nicht installieren ließ habe ich einfach mal die beiden weiteren Befehle
ausgeführt. Danach lief die Installation von cryptography durch. Ich dachte schon, das sei es. Wenn ich dann aber mirobo ausführe, bekomme ich wieder die packaging Fehlermeldung
! root@raspberrypi:~# pip3 install python-mirobo
! Traceback (most recent call last):
! File "/usr/bin/pip3", line 5, in <module>from pkg_resources import load_entry_point
! File "/usr/local/lib/python3.4/dist-packages/pkg_resources/init.py", line 70, in <module>import packaging.version
! ImportError: No module named 'packaging'</module></module> `Hallo skorpil,
leider ist der Grund für diese Fehlermeldung zu alte pip oder setuptools, deswegen weigert er da.
virtualenv (virtual environment) ist ein tool, womit man ohne root/sudo neue Entwicklungsumgebungen einrichten kann. D.h. damit könntest Du die Python-Pakete in ein Verzeichnis installieren lassen, und wenn etwas schief ginge, dieses Verzeichnis wieder löschen und neustarten.
Du könntest noch das ausprobieren, so geht die Einrichtung eines virtualenvs (alles von unten wird ohne root, d.h. mit deinem normalen Benutzer ausgeführt):
virtualenv -p python3 <name des/ordners="">source <name des/ordners="">/bin/activate</name></name>
Dann wird alle Pakete in diesen eigenständigen Ordner wie üblich mit pip installiert (nach aktualisierung von pip & setuptools).
pip install -U pip pip install -U setuptools pip install python-mirobo
Hoffentlich das hilft, wenn nicht, ich habe wirklich keine andere Ideen gerade.
-
tpr,
erstmal wieder ein DD (=dickes Dankeschön )
Wenn das wohl an "zu alten" pip und setuptool liegt, dann müssen diese sich doch irgendwie auf den neuesten Stand bringen lassen können. Ich habe den Raspi im übrigen erst vor ca. 3 Wochen neu aufgesetzt. Und er läuft mit Jessie, ist geupdated und geupgraded. So richtig kapieren tue ich das nicht.
Liebe Grüße
Bernd
-
tpr,
erstmal wieder ein DD (=dickes Dankeschön )
Wenn das wohl an "zu alten" pip und setuptool liegt, dann müssen diese sich doch irgendwie auf den neuesten Stand bringen lassen können. Ich habe den Raspi im übrigen erst vor ca. 3 Wochen neu aufgesetzt. Und er läuft mit Jessie, ist geupdated und geupgraded. So richtig kapieren tue ich das nicht. `
Kein Problem. In "pip install -U pip" -U steht für upgrade -> das sollte es aktualisieren. Ebenso für setuptools. -
Jetzt! Erfolgsmeldung! Hier
! root@raspberrypi:~# pip install -U pip
! Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
! root@raspberrypi:~# pip install -U setuptools
! Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages
! Requirement already up-to-date: six>=1.6.0 in /usr/local/lib/python2.7/dist-packages (from setuptools)
! Requirement already up-to-date: packaging>=16.8 in /usr/local/lib/python2.7/dist-packages (from setuptools)
! Requirement already up-to-date: appdirs>=1.4.0 in /usr/local/lib/python2.7/dist-packages (from setuptools)
! Requirement already up-to-date: pyparsing in /usr/local/lib/python2.7/dist-packages (from packaging>=16.8->setuptools)
! root@raspberrypi:~# pip install python-mirobo
! Collecting python-mirobo
! Downloading python-mirobo-0.0.3.tar.gz
! Requirement already satisfied: construct in /usr/local/lib/python2.7/dist-packages (from python-mirobo)
! Requirement already satisfied: click in /usr/local/lib/python2.7/dist-packages (from python-mirobo)
! Requirement already satisfied: cryptography in /usr/local/lib/python2.7/dist-packages (from python-mirobo)
! Collecting pretty_cron (from python-mirobo)
! Downloading pretty_cron-1.0.2-py2.py3-none-any.whl
! Requirement already satisfied: idna>=2.0 in /usr/local/lib/python2.7/dist-packages (from cryptography->python-mirobo)
! Requirement already satisfied: pyasn1>=0.1.8 in /usr/local/lib/python2.7/dist-packages (from cryptography->python-mirobo)
! Requirement already satisfied: six>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from cryptography->python-mirobo)
! Requirement already satisfied: setuptools>=11.3 in /usr/local/lib/python2.7/dist-packages (from cryptography->python-mirobo)
! Requirement already satisfied: enum34 in /usr/local/lib/python2.7/dist-packages (from cryptography->python-mirobo)
! Requirement already satisfied: ipaddress in /usr/local/lib/python2.7/dist-packages (from cryptography->python-mirobo)
! Requirement already satisfied: cffi>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from cryptography->python-mirobo)
! Requirement already satisfied: packaging>=16.8 in /usr/local/lib/python2.7/dist-packages (from setuptools>=11.3->cryptography->python-mirobo)
! Requirement already satisfied: appdirs>=1.4.0 in /usr/local/lib/python2.7/dist-packages (from setuptools>=11.3->cryptography->python-mirobo)
! Requirement already satisfied: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=1.4.1->cryptography->python-mirobo)
! Requirement already satisfied: pyparsing in /usr/local/lib/python2.7/dist-packages (from packaging>=16.8->setuptools>=11.3->cryptography->python-mirobo)
! Building wheels for collected packages: python-mirobo
! Running setup.py bdist_wheel for python-mirobo … done
! Stored in directory: /root/.cache/pip/wheels/37/86/43/172c8c98b369bb0f4ef439ea412e014626a3ce9e6a0210c1bd
! Successfully built python-mirobo
! Installing collected packages: pretty-cron, python-mirobo
! Successfully installed pretty-cron-1.0.2 python-mirobo-0.0.3
! root@raspberrypi:~#Danke! Bis hierhin. Und morgen teste ich dann weiter…
-
So, doch schon getestet. Leider erfolglos:
> After that verify that the connection is working by running the command withour parameters, you should be presented a status report from the vacuum.
Die Eingabe von mirobo bringt folgendes
! root@raspberrypi:~# mirobo
! Traceback (most recent call last):
! File "/usr/local/bin/mirobo", line 11, in <module>sys.exit(cli())
! File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in call
! return self.main(*args, **kwargs)
! File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
! rv = self.invoke(ctx)
! File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1043, in invoke
! return Command.invoke(self, ctx)
! File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
! return ctx.invoke(self.callback, **ctx.params)
! File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
! return callback(*args, **kwargs)
! File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 17, in new_func
! return f(get_current_context(), *args, **kwargs)
! File "/usr/local/lib/python2.7/dist-packages/mirobo/cli.py", line 29, in cli
! vac = mirobo.Vacuum(ip, token)
! File "/usr/local/lib/python2.7/dist-packages/mirobo/vacuum.py", line 14, in init
! self.token = bytes.fromhex(token)
! AttributeError: type object 'str' has no attribute 'fromhex'</module>Was will uns das sagen?