am 24.04.2021 19:55
Hi! Die Antworten dazu stehen im Github-Repo/Readme 🙂 :
Das Skript läuft auf jedem Betriebssystem, wenn die notwendigen Python-Bibliotheken installiert sind.
Die Zugangsdaten werden lokal in einer einfachen Konfigurationsdatei gespeichert. Diese sollte deshalb natürlich sicher verwahrt werden. Ich empfehle das User-Verzeichnis, so dass nur dein Account darauf zugreifen kann. Wenn jemand anderes Adminrechte auf dem Rechner hat, rate ich von der Nutzung des Skriptes bzw der dauerhaften Speicherung der Zugangsdaten ab.
am 24.04.2021 20:23
Dank @Senshi für deine Antwort.
Ja, in der readme habe ich gelesen, dass dass Passwort in der Variable "pwd" gespeichert wird. Aber ich konnte nicht entnehmen, ob diese Daten auch einem anderen Server als dem für das Comdirect zuständige Bankkonto geschickt wird.
Danke für den Hinweis. Wird nur auf meinem privaten Computer auf dem einzigen Nutzeraccount ausgeführt.
am 29.04.2021 11:55
Hallo,
Habe ein Problem, dass trotz aller Installationen die Fehlermeldung kommt:
ImportError: No module named requests
Jemand eine Idee?
am 29.04.2021 12:46
Die Fehlermeldung sagt es dir doch schon 🙂 . Dir fehlt das requests-Modul. D.h. die Installation der nötigen Python-Bibliotheken fehlt. Wie in der Readme beschrieben, den Schritt ausführen:
pip install -r requirements.txt
Dafür muss natürlich auch pip installiert sein.
29.04.2021 13:00 - bearbeitet 29.04.2021 13:04
29.04.2021 13:00 - bearbeitet 29.04.2021 13:04
Danke, @Senshi ,
ich habe alles wie in der Anleitung befolgt. Selbstständig Python3 installiert. Ebenfalls PIP. Auch die von dir genannten Installation von "pip install -r requirements.txt" habe ich ausgeführt. Dennoch scheint er das Modul nicht zu finden.
Woran könnte es liegen?
$ pip --version pip 21.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
$ pip install -r requirements.txt WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local/lib/python3.9/site-packages sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local/lib/python3.9/site-packages sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local/include/python3.9/UNKNOWN sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local/bin sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9 WARNING: Additional context: user = False home = None root = None prefix = None Requirement already satisfied: certifi>=2020.6.20 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (2020.12.5) Requirement already satisfied: chardet==3.0.4 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 2)) (3.0.4) Requirement already satisfied: idna==2.10 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 3)) (2.10) Requirement already satisfied: pathvalidate==2.3.0 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 4)) (2.3.0) Requirement already satisfied: Pillow==8.2.0 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 5)) (8.2.0) Requirement already satisfied: requests==2.24.0 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 6)) (2.24.0) Requirement already satisfied: urllib3==1.25.9 in /usr/local/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (1.25.9) WARNING: Value for scheme.platlib does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local/lib/python3.9/site-packages sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages WARNING: Value for scheme.purelib does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local/lib/python3.9/site-packages sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local/include/python3.9/UNKNOWN sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 WARNING: Value for scheme.scripts does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local/bin sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/bin WARNING: Value for scheme.data does not match. Please report this to <https://github.com/pypa/pip/issues/9617> distutils: /usr/local sysconfig: /usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9 WARNING: Additional context: user = False home = None root = None prefix = None
$ python main.py
Traceback (most recent call last):
File "main.py", line 1, in <module>
from ComdirectConnection import Connection
File "/Users/X/Desktop/ComdirectPostboxDownloader-master/ComdirectConnection.py", line 1, in <module>
import requests
ImportError: No module named requests
am 29.04.2021 15:49
Ich habe mir selbst geholfen.
Auf Stackoverflow habe ich nachgelesen, wie ich Python Module installieren kann. Damit habe ich manuell jedes einzelne Module nachinstalliert mit einem der dort aufgeführten Befehle.
Jetzt läuft das Skript.
Ich muss sagen: Das Skript ist genial und gefällt mir richtig gut. Wusste gar nicht, dass diese REST Schnittstelle existiert. Hoffe, meine neue Bank DKB hat so etwas auch.
am 10.06.2021 19:21
Hi Senshi,
ich hatte mich auch an deiner Donwload-Lösung versucht, bin aber nun hängen geblieben und weiß nicht mehr weiter (kein Programmierer). Ich habe die .exe verwendet und die Settings-Datei angepasst. Ich kann mich auch sogar über Photo-Tan anmelden. Dateien werden erkannt, simulierter Download ok. Bei dem tatsächlichen Download kriege ich aber einen Permission denied Fehler (PermissionError (errno 13) Permission denied).
Kannst du mir helfen?
Vielen Dank und Grüße!
am 10.06.2021 23:45
am 11.06.2021 07:57
Hi Necoro,
vielen Dank! Du hattest recht: der Ordner hatte für nicht-Admin-User keine Schreibrechte. Nachdem ich das angepasst habe hat jetzt alles geklappt. 🙂
Vielen Dank nochmal dir und auch Senshi! 🙂
am 11.06.2021 08:02
In dem Fall gilt aller Dank Necoro, auf diese Idee wäre ich so einfach gar nicht gekommen :D. Schön, dass es jetzt klappt!