Besten Dank rookie, jetzt läuft es!
Beiträge von semmelbroesel
-
-
Es hat mir jetzt doch keine Ruhe gelassen und ich habe die Lib requests installiert.
Leider gehts immer noch nicht (siehe unten).
rpi@raspberrypi:~ $ python -m pip install requests
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/…process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Collecting requests
Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
|████████████████████████████████| 63 kB 156 kB/s
Collecting chardet<5,>=3.0.2; python_version < "3"
Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
|████████████████████████████████| 178 kB 1.1 MB/s
Collecting idna<3,>=2.5; python_version < "3"
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 292 kB/s
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
|████████████████████████████████| 138 kB 1.4 MB/s
Collecting certifi>=2017.4.17
Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
|████████████████████████████████| 149 kB 1.4 MB/s
Installing collected packages: chardet, idna, urllib3, certifi, requests
WARNING: The script chardetect is installed in '/home/rpi/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed certifi-2021.10.8 chardet-4.0.0 idna-2.10 requests-2.27.1 urllib3-1.26.9
rpi@raspberrypi:~ $ cd /usr/local/bin
rpi@raspberrypi:/usr/local/bin $ sudo ./doorpi_cli --trace
Traceback (most recent call last):
File "./doorpi_cli", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3251, in <module>
@_call_aside
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3235, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'requests>=2.7.0' distribution was not found and is required by DoorPi
-
Danke für den Hinweis. Werde ich morgen gleich mal testen. Ich habe erst mal die alte SD Karte wieder im Betrieb.
Ja, ich habe nicht "pi" als user angelegt. Allerdings ist mir beim durchlauf des Scriptes nichts aufgefallen. Nach dem Fehler habe ich dann alle Schritte im Script noch mal per Hand gestartet. Leider ohne Erfolg.
Das Script und die grafische doorpi-config sind super einfach zu verwenden nur wenn es Fehler gibt kommt man schlecht an die Ausgaben ran.
In der doorpi-config sind die Ausgaben nur zehntel Sekunden zu sehen. Vielleicht kann man da was machen?
-
Ich habe DoorPi seit mehreren Jahren erfolgreich im Einsatz. Besten Dank an dieser Stelle an alle die dazu beigetragen haben. Leider musste ich (wegen FHEM) auf das neue PI OS bullseye wechseln.
Meine Installation (auf leerer SD mit frischen Pi OS Lite bullseye) war leider nicht erfolgreich. Es gab zwar keine Fehlermeldungen und die neue doorpi-config läuft auch, doch ich kann doorpi nicht starten.
Der Aufruf von doorpi_cli --trace liefert
Python
Alles anzeigenrpi@raspberrypi:~ $ sudo /usr/local/bin/doorpi_cli --trace Traceback (most recent call last): File "/usr/local/bin/doorpi_cli", line 6, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3251, in <module> @_call_aside File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3235, in _call_aside f(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 583, in _build_master ws.require(__requires__) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'requests>=2.7.0' distribution was not found and is required by DoorPi
Ich vermute ja einen Python Fehler. Python2.7 ist aber installiert.
Coderpi@raspberrypi:~ $ python2 Python 2.7.18 (default, Jul 14 2021, 08:11:37) [GCC 10.2.1 20210110] on linux2 Type "help", "copyright", "credits" or "license" for more information.
Nun bin ich ratlos.
Kann mir da jemand weiterhelfen?