Neues Modul: 57_GCALVIEW Google Kalender Viewer (+Abfall Kalender)

Begonnen von mumpitzstuff, 04 Oktober 2017, 00:02:11

Vorheriges Thema - Nächstes Thema

Moonlightkid

Hallo zusammen,

ich hab diesen Beitrag gefunden, da ich FTUI mit einem Abfallkalender füttern möchte.
Was ich bereits gebastelt habe klappt und das sogar als Linux-Noob  ;D ;D ;D

Bei der Installation auf meinem zuvor aktualisierten Raspi3 mit laufendem FHEM habe ich wie in der Anleitung
erst die Version gecheckt (gcalcli v3.4.0 (Eric Davis, Brian Hartvigsen)
) und danach sudo -u fhem gcalcli --noauth_local_webserver list
eingegeben.
Mein Raspi antwortet mir mit
Unknown command line flag 'noauth_local_webserver'

Da es also erst einmal nicht weitergeht hoffe ich, dass sich jemand bei Euch auskennt und mir helfen kann  :-[


Grüßle!!!
Synology 220+, Hue, MAX!, Sonoff und weiteres

mumpitzstuff

sudo -u fhem gcalcli list --noauth_local_webserver

Geht vielleicht das?

Moonlightkid

Zitat von: mumpitzstuff am 01 September 2019, 21:52:40
sudo -u fhem gcalcli list --noauth_local_webserver

Geht vielleicht das?

Hallo mumpitzstuff - ganz lieben Dank für Deine Reaktion.

Eben hab ich es noch gelesen und gleich noch ausprobiert. Die Antwort vom Raspi ist:
option -n not recognized

Ich hab ganz sicher EXAKT den Code verwendet. Nur woher jetzt die Fehlermeldung kommt, dass -n nicht bekannt wäre? Ich hab kein "n" gesehen  ::)

Die Termine hab ich alle im Google-Kalender hinterlegen können. Alleine, dass ein "PC" benötigt wird, mein Raspi aber nicht als PC (an)erkannt wird - ich bin ja froh, dass ich noch so altmodisch bin  :D


Grüßle und gute Nacht für heute!
Synology 220+, Hue, MAX!, Sonoff und weiteres

mumpitzstuff

Ich bin erst in ein paar Tagen wieder aus dem Urlaub zurück, dann kann ich noch mal schauen.

Moonlightkid

Keinen Stress [emoji16] ich bin gerade dabei zu lernen wie ich meine Sonoff-Devices flashe. Einen Versuch ohne Fehlermeldung gab es sogar schon... hab aber erstmal 2 Basic gekauft die schon geflasht sind, damit ich die originalen austauschen kann, wenn die anderen funktionieren. Sonst funktioniert gar nix mehr.
Ach ja, hatte ich gestern... FHEM 100% CPU- Auslastung auf meinem Raspi. Erstmal mosquitto deinstalliert und MQTT2_Server in Fhem nach Anleitung definiert usw... ohne autocreate hätte ich es nicht geschafft [emoji41] bin froh die Chinacloud verlassen zu können

Gesendet von meinem SM-G930F mit Tapatalk

Synology 220+, Hue, MAX!, Sonoff und weiteres

mumpitzstuff

Kannst du vielleicht die Version 3.4.0 durch eine neuere Version ersetzen, bevor wir etwas anderes probieren? Dazu musst du folgendes machen:

sudo apt remove gcalcli

Danach solltest du mit pip eine neue Version installieren können, also z.b. so:

sudo pip3 install gcalcli

Wenn das klappt und alles installiert ist, versuch mal ob du die Kalender von der Linux Shell aus sehen kannst. Dazu musst du hier ebenfalls diese Authentifizierung durchführen und kannst mit gcalcli list die Kalender sehen. Wenn das geht, dann Versuch die Prozedur für fhem bitte noch einmal. Klappt das auch nicht, dann musst du kurz die Shell für den fhem User aktivieren und das über die fhem Shell machen. Das erkläre ich dann dir dann aber noch mal. Vielleicht klappt's ja schon nach dem Update.

Moonlightkid

Hallo Mumpitzstuff  :)

Die Installation hat funktioniert - ich hab auch mit "update" und "upgrade" alles aktualisiert.

Wenn ich die Version gemäß Anleitung ab Punkt 2 prüfen möchte
gcalcli --version

dann erhalte ich das Ergebnis
bash: gcalcli: Kommando nicht gefunden

Ich hab dann noch versucht weiterzumachen mit
sudo -u fhem gcalcli --noauth_local_webserver list

ob ich zumindest nach der Neuinstallation hier weiterkomme, erhalte aber leider
sudo: gcalcli: Befehl nicht gefunden

Schade, aber ich hab es versucht  ::)
Synology 220+, Hue, MAX!, Sonoff und weiteres

mumpitzstuff

Kannst du mir den Output der Installation zeigen? Irgendwas muss ja schief gelaufen sein.

mumpitzstuff

Ansonsten schau mal auf Seite 22, da sind andere Methoden beschrieben das zu installieren. Man findet dort auch einen Link zur alten Anleitung für die v3.4.0, die man mit apt installieren kann.

Moonlightkid

Zitat von: mumpitzstuff am 14 September 2019, 00:56:25
Kannst du mir den Output der Installation zeigen? Irgendwas muss ja schief gelaufen sein.

Wenn Du mir sagst wie das geht... also nachträglich? Naja, es war nach der Installation viel in roter Schrift. Das ist gut, oder schlecht?  :-\

Okay, ich probiere auch mal das auf Seite 22 - hab gelernt bei Linux VIEL Geduld zu haben  ;D ::)
Synology 220+, Hue, MAX!, Sonoff und weiteres

Moonlightkid

Au weia, jetzt habe ich das mit
sudo pip3 install gcalcli installierte gcalcli
zunächst mit
sudo apt remove gcalcli entfernen wollen - das wurde mit
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Paket »gcalcli« ist nicht installiert, wird also auch nicht entfernt.
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  gxmessage python-dateutil python-gflags python-googleapi python-httplib2
  python-oauth2client python-parsedatetime python-pyasn1-modules python-pyicu
  python-rsa python-uritemplate python-vobject
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
quittiert...
Das ich versuche schlau zu sein  ::) hab ich es mit
sudo pip3 remove gcalcli
versucht. Die Antwort war
ERROR: unknown command "remove"

Jetzt weiß ich nicht, ob das nun installiert ist, oder nicht - zumindest nicht sicher. Ich vermute aber, dass nicht und versuche mein Glück mit der Seite 22  ;)
Synology 220+, Hue, MAX!, Sonoff und weiteres

Moonlightkid

Na, es soll wohl spannend bleiben...
Ich hab mir die Seite 22 durchgelesen und zunächst das empfohlene Upgrade der Setupdateien mit
pip3 install --upgrade setuptools gemacht.

Ergebnis:
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/b2/86/095d2f7829badc207c893dd4ac767e871f6cd547145df797ea26baea4e2e/setuptools-41.2.0-py2.py3-none-any.whl (576kB)
    100% |████████████████████████████████| 583kB 444kB/s
Installing collected packages: setuptools
Successfully installed setuptools-41.2.0

Dann hab ich als nächsten Schritt
pip3 install --upgrade setuptools
git clone https://github.com/insanum/gcalcli.git
cd gcalcli
python3 setup.py install
gcalcli --version
eingegeben und mit Python hat es dann gehakt.

gcalcli --version hat dann auch gleich eine Fehlermeldung ergeben, dass das Kommando nicht gefunden wurde.

Entsprechend habe ich mit sudo python3 setup.py install dann womöglich einen Erfolg gehabt.
Warning: No long description generated.
/usr/lib/python3/dist-packages/setuptools/dist.py:333: UserWarning: Normalizing 'v4.1.1' to '4.1.1'
  normalized_version,
running install
running bdist_egg
running egg_info
creating gcalcli.egg-info
writing dependency_links to gcalcli.egg-info/dependency_links.txt
writing top-level names to gcalcli.egg-info/top_level.txt
writing entry points to gcalcli.egg-info/entry_points.txt
writing requirements to gcalcli.egg-info/requires.txt
writing gcalcli.egg-info/PKG-INFO
writing manifest file 'gcalcli.egg-info/SOURCES.txt'
reading manifest file 'gcalcli.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'gcalcli.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/gcalcli
copying gcalcli/argparsers.py -> build/lib/gcalcli
copying gcalcli/validators.py -> build/lib/gcalcli
copying gcalcli/exceptions.py -> build/lib/gcalcli
copying gcalcli/utils.py -> build/lib/gcalcli
copying gcalcli/printer.py -> build/lib/gcalcli
copying gcalcli/deprecations.py -> build/lib/gcalcli
copying gcalcli/__init__.py -> build/lib/gcalcli
copying gcalcli/cli.py -> build/lib/gcalcli
copying gcalcli/gcal.py -> build/lib/gcalcli
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/gcalcli
copying build/lib/gcalcli/argparsers.py -> build/bdist.linux-armv7l/egg/gcalcli
copying build/lib/gcalcli/validators.py -> build/bdist.linux-armv7l/egg/gcalcli
copying build/lib/gcalcli/exceptions.py -> build/bdist.linux-armv7l/egg/gcalcli
copying build/lib/gcalcli/utils.py -> build/bdist.linux-armv7l/egg/gcalcli
copying build/lib/gcalcli/printer.py -> build/bdist.linux-armv7l/egg/gcalcli
copying build/lib/gcalcli/deprecations.py -> build/bdist.linux-armv7l/egg/gcalcli
copying build/lib/gcalcli/__init__.py -> build/bdist.linux-armv7l/egg/gcalcli
copying build/lib/gcalcli/cli.py -> build/bdist.linux-armv7l/egg/gcalcli
copying build/lib/gcalcli/gcal.py -> build/bdist.linux-armv7l/egg/gcalcli
byte-compiling build/bdist.linux-armv7l/egg/gcalcli/argparsers.py to argparsers.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/gcalcli/validators.py to validators.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/gcalcli/exceptions.py to exceptions.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/gcalcli/utils.py to utils.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/gcalcli/printer.py to printer.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/gcalcli/deprecations.py to deprecations.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/gcalcli/__init__.py to __init__.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/gcalcli/cli.py to cli.cpython-35.pyc
byte-compiling build/bdist.linux-armv7l/egg/gcalcli/gcal.py to gcal.cpython-35.pyc
installing package data to build/bdist.linux-armv7l/egg
running install_data
creating build/bdist.linux-armv7l/egg/share
creating build/bdist.linux-armv7l/egg/share/man
creating build/bdist.linux-armv7l/egg/share/man/man1
copying docs/man1/gcalcli.1 -> build/bdist.linux-armv7l/egg/share/man/man1
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying gcalcli.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying gcalcli.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying gcalcli.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying gcalcli.egg-info/entry_points.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying gcalcli.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying gcalcli.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/gcalcli-4.1.1-py3.5.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing gcalcli-4.1.1-py3.5.egg
Copying gcalcli-4.1.1-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding gcalcli 4.1.1 to easy-install.pth file
Installing gcalcli script to /usr/local/bin

Installed /usr/local/lib/python3.5/dist-packages/gcalcli-4.1.1-py3.5.egg
Processing dependencies for gcalcli==4.1.1
Searching for python-dateutil
Reading https://pypi.python.org/simple/python-dateutil/
Downloading https://files.pythonhosted.org/packages/ad/99/5b2e99737edeb28c71bcbec5b5dda19d0d9ef3ca3e92e3e925e7c0bb364c/python-dateutil-2.8.0.tar.gz#sha256=c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e
Best match: python-dateutil 2.8.0
Processing python-dateutil-2.8.0.tar.gz
Writing /tmp/easy_install-pncojbl8/python-dateutil-2.8.0/setup.cfg
Running python-dateutil-2.8.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-pncojbl8/python-dateutil-2.8.0/egg-dist-tmp-selom_8p
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
Moving python_dateutil-2.8.0-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding python-dateutil 2.8.0 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/python_dateutil-2.8.0-py3.5.egg
Searching for parsedatetime
Reading https://pypi.python.org/simple/parsedatetime/
Downloading https://files.pythonhosted.org/packages/e3/b3/02385db13f1f25f04ad7895f35e9fe3960a4b9d53112775a6f7d63f264b6/parsedatetime-2.4.tar.gz#sha256=3d817c58fb9570d1eec1dd46fa9448cd644eeed4fb612684b02dfda3a79cb84b
Best match: parsedatetime 2.4
Processing parsedatetime-2.4.tar.gz
Writing /tmp/easy_install-9rcpeo21/parsedatetime-2.4/setup.cfg
Running parsedatetime-2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-9rcpeo21/parsedatetime-2.4/egg-dist-tmp-5_bwhd6d
no previously-included directories found matching '.DS_Store'
zip_safe flag not set; analyzing archive contents...
Moving parsedatetime-2.4-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding parsedatetime 2.4 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/parsedatetime-2.4-py3.5.egg
Searching for oauth2client
Reading https://pypi.python.org/simple/oauth2client/
Downloading https://files.pythonhosted.org/packages/a6/7b/17244b1083e8e604bf154cf9b716aecd6388acd656dd01893d0d244c94d9/oauth2client-4.1.3.tar.gz#sha256=d486741e451287f69568a4d26d70d9acd73a2bbfa275746c535b4209891cccc6
Best match: oauth2client 4.1.3
Processing oauth2client-4.1.3.tar.gz
Writing /tmp/easy_install-15m7smot/oauth2client-4.1.3/setup.cfg
Running oauth2client-4.1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-15m7smot/oauth2client-4.1.3/egg-dist-tmp-ymp2r2qf
zip_safe flag not set; analyzing archive contents...
Moving oauth2client-4.1.3-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding oauth2client 4.1.3 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/oauth2client-4.1.3-py3.5.egg
Searching for httplib2
Reading https://pypi.python.org/simple/httplib2/
Downloading https://files.pythonhosted.org/packages/78/23/bb9606e87a66fd8c72a2b1a75b049d3859a122bc2648915be845bc44e04f/httplib2-0.13.1.tar.gz#sha256=6901c8c0ffcf721f9ce270ad86da37bc2b4d32b8802d4a9cec38274898a64044
Best match: httplib2 0.13.1
Processing httplib2-0.13.1.tar.gz
Writing /tmp/easy_install-pt5htbxr/httplib2-0.13.1/setup.cfg
Running httplib2-0.13.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-pt5htbxr/httplib2-0.13.1/egg-dist-tmp-yr5xj0tx
zip_safe flag not set; analyzing archive contents...
httplib2.__pycache__.certs.cpython-35: module references __file__
creating /usr/local/lib/python3.5/dist-packages/httplib2-0.13.1-py3.5.egg
Extracting httplib2-0.13.1-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding httplib2 0.13.1 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/httplib2-0.13.1-py3.5.egg
Searching for google-api-python-client>=1.4
Reading https://pypi.python.org/simple/google-api-python-client/
Downloading https://files.pythonhosted.org/packages/5e/19/9fd511734c0dee8fa3d49f4109c75e7f95d3c31ed76c0e4a93fbba147807/google-api-python-client-1.7.11.tar.gz#sha256=a8a88174f66d92aed7ebbd73744c2c319b4b1ce828e565f9ec721352d2e2fb8c
Best match: google-api-python-client 1.7.11
Processing google-api-python-client-1.7.11.tar.gz
Writing /tmp/easy_install-rlxe98ut/google-api-python-client-1.7.11/setup.cfg
Running google-api-python-client-1.7.11/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rlxe98ut/google-api-python-client-1.7.11/egg-dist-tmp-nilrzw1m
warning: no files found matching '*.json' under directory 'apiclient'
warning: no files found matching 'README'
warning: no files found matching 'FAQ'
warning: no files found matching 'setpath.sh'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
zip_safe flag not set; analyzing archive contents...
Moving google_api_python_client-1.7.11-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding google-api-python-client 1.7.11 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/google_api_python_client-1.7.11-py3.5.egg
Searching for future
Reading https://pypi.python.org/simple/future/
Downloading https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz#sha256=67045236dcfd6816dc439556d009594abf643e5eb48992e36beac09c2ca659b8
Best match: future 0.17.1
Processing future-0.17.1.tar.gz
Writing /tmp/easy_install-u4dmxs86/future-0.17.1/setup.cfg
Running future-0.17.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-u4dmxs86/future-0.17.1/egg-dist-tmp-ank6w8v8
warning: no files found matching '*.au' under directory 'tests'
warning: no files found matching '*.gif' under directory 'tests'
warning: no files found matching '*.txt' under directory 'tests'
zip_safe flag not set; analyzing archive contents...
future.standard_library.__pycache__.__init__.cpython-35: module references __file__
future.standard_library.__pycache__.__init__.cpython-35: module references __path__
future.backports.test.__pycache__.support.cpython-35: module references __file__
future.backports.test.__pycache__.ssl_servers.cpython-35: module references __file__
future.utils.__pycache__.__init__.cpython-35: module MAY be using inspect.stack
past.builtins.__pycache__.misc.cpython-35: module MAY be using inspect.stack
past.translation.__pycache__.__init__.cpython-35: module references __file__
past.translation.__pycache__.__init__.cpython-35: module references __path__
creating /usr/local/lib/python3.5/dist-packages/future-0.17.1-py3.5.egg
Extracting future-0.17.1-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding future 0.17.1 to easy-install.pth file
Installing pasteurize script to /usr/local/bin
Installing futurize script to /usr/local/bin

Installed /usr/local/lib/python3.5/dist-packages/future-0.17.1-py3.5.egg
Searching for rsa>=3.1.4
Reading https://pypi.python.org/simple/rsa/
Downloading https://files.pythonhosted.org/packages/cb/d0/8f99b91432a60ca4b1cd478fd0bdf28c1901c58e3a9f14f4ba3dba86b57f/rsa-4.0.tar.gz#sha256=1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487
Best match: rsa 4.0
Processing rsa-4.0.tar.gz
Writing /tmp/easy_install-25ssjsp7/rsa-4.0/setup.cfg
Running rsa-4.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-25ssjsp7/rsa-4.0/egg-dist-tmp-jddx771c
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
zip_safe flag not set; analyzing archive contents...
Moving rsa-4.0-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding rsa 4.0 to easy-install.pth file
Installing pyrsa-decrypt script to /usr/local/bin
Installing pyrsa-keygen script to /usr/local/bin
Installing pyrsa-priv2pub script to /usr/local/bin
Installing pyrsa-verify script to /usr/local/bin
Installing pyrsa-encrypt script to /usr/local/bin
Installing pyrsa-sign script to /usr/local/bin

Installed /usr/local/lib/python3.5/dist-packages/rsa-4.0-py3.5.egg
Searching for pyasn1-modules>=0.0.5
Reading https://pypi.python.org/simple/pyasn1-modules/
Downloading https://files.pythonhosted.org/packages/0a/b6/972a1560b4adde5754169305530075f610983b367b9bc49b89551810c70f/pyasn1_modules-0.2.6-py3.5.egg#sha256=a480489471e67c579f49057a10879cc9a787b64a84af00ed2ed3f68a652b0197
Best match: pyasn1-modules 0.2.6
Processing pyasn1_modules-0.2.6-py3.5.egg
Moving pyasn1_modules-0.2.6-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding pyasn1-modules 0.2.6 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/pyasn1_modules-0.2.6-py3.5.egg
Searching for uritemplate<4dev,>=3.0.0
Reading https://pypi.python.org/simple/uritemplate/
Downloading https://files.pythonhosted.org/packages/cd/db/f7b98cdc3f81513fb25d3cbe2501d621882ee81150b745cdd1363278c10a/uritemplate-3.0.0.tar.gz#sha256=c02643cebe23fc8adb5e6becffe201185bf06c40bda5c0b4028a93f1527d011d
Best match: uritemplate 3.0.0
Processing uritemplate-3.0.0.tar.gz
Writing /tmp/easy_install-l6e_fs_e/uritemplate-3.0.0/setup.cfg
Running uritemplate-3.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-l6e_fs_e/uritemplate-3.0.0/egg-dist-tmp-tm211vqb
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*.py[cdo]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
zip_safe flag not set; analyzing archive contents...
Moving uritemplate-3.0.0-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding uritemplate 3.0.0 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/uritemplate-3.0.0-py3.5.egg
Searching for google-auth>=1.4.1
Reading https://pypi.python.org/simple/google-auth/
Downloading https://files.pythonhosted.org/packages/ef/77/eb1d3288dbe2ba6f4fe50b9bb41770bac514cd2eb91466b56d44a99e2f8d/google-auth-1.6.3.tar.gz#sha256=0f7c6a64927d34c1a474da92cfc59e552a5d3b940d3266606c6a28b72888b9e4
Best match: google-auth 1.6.3
Processing google-auth-1.6.3.tar.gz
Writing /tmp/easy_install-injphfso/google-auth-1.6.3/setup.cfg
Running google-auth-1.6.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-injphfso/google-auth-1.6.3/egg-dist-tmp-y1hktc0z
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
zip_safe flag not set; analyzing archive contents...
google.__pycache__.__init__.cpython-35: module references __path__
creating /usr/local/lib/python3.5/dist-packages/google_auth-1.6.3-py3.5.egg
Extracting google_auth-1.6.3-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding google-auth 1.6.3 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/google_auth-1.6.3-py3.5.egg
Searching for google-auth-httplib2>=0.0.3
Reading https://pypi.python.org/simple/google-auth-httplib2/
Downloading https://files.pythonhosted.org/packages/e7/32/ac7f30b742276b4911a1439c5291abab1b797ccfd30bc923c5ad67892b13/google-auth-httplib2-0.0.3.tar.gz#sha256=098fade613c25b4527b2c08fa42d11f3c2037dda8995d86de0745228e965d445
Best match: google-auth-httplib2 0.0.3
Processing google-auth-httplib2-0.0.3.tar.gz
Writing /tmp/easy_install-q_i7eqy5/google-auth-httplib2-0.0.3/setup.cfg
Running google-auth-httplib2-0.0.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-q_i7eqy5/google-auth-httplib2-0.0.3/egg-dist-tmp-w2s__reu
zip_safe flag not set; analyzing archive contents...
Moving google_auth_httplib2-0.0.3-py3.5.egg to /usr/local/lib/python3.5/dist-packages
Adding google-auth-httplib2 0.0.3 to easy-install.pth file

Installed /usr/local/lib/python3.5/dist-packages/google_auth_httplib2-0.0.3-py3.5.egg
error: pyasn1 0.1.9 is installed but pyasn1<0.5.0,>=0.4.6 is required by {'pyasn1-modules'}

Mit gcalcli --version habe ich dann folgende Infos erhalten
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/home/pi/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/pi/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyasn1 0.1.9 (/usr/lib/python3/dist-packages), Requirement.parse('pyasn1<0.5.0,>=0.4.6'), {'pyasn1-modules'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/gcalcli", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/home/pi/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 3250, in <module>
    @_call_aside
  File "/home/pi/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
    f(*args, **kwargs)
  File "/home/pi/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/pi/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/pi/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/pi/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyasn1 0.1.9 (/usr/lib/python3/dist-packages), Requirement.parse('pyasn1<0.5.0,>=0.4.6'), {'pyasn1-modules'})


Ich bitte um Entschuldigung, falls das zuviel Infos sind, aber ich kann nicht einordnen was davon wichtig ist oder nicht... jedenfalls bin ich erstmal wieder offline.
Synology 220+, Hue, MAX!, Sonoff und weiteres

D3ltorohd

Zitat von: mumpitzstuff am 04 Oktober 2017, 00:02:11

3.) Jetzt das folgende Kommando eingeben:
sudo -u fhem gcalcli --noauth_local_webserver list
Die angezeigte URL muss kopiert und mit einem Browser aufgerufen werden. Dort muss man die Verknüpfung mit dem Google Konto bestätigen und erhält dann ein OAuth Token angezeigt. Das kopiert man wieder und kopiert es in die Konsole des Users fhem und bestätigt die Eingabe. Nun kann gcalcli auf den Google Kalender zugreifen! Um das zu prüfen kann man folgendes eingeben und erhält dann eine

Ich wollte gerade mal dein Modul einrichten und bin auf folgendes Problem gestoßen, ich meine bis hierhin hat alles geklappt von der Installation her. Nun kommt aber anstatt eine URL folgender Fehler.

Zitatsudo -u fhem gcalcli --noauth_local_webserver list
Unknown command line flag 'noauth_local_webserver'

Wo liegt hier mein Fehler ?
Base : Intel NUC Debian 9, FHEM aktuell || Zigbee (Coordinator FW Z-Stack 1.2 default Koenkk) || MaxCUL (culfw V 1.67 nanoCUL868) || SIGNALduino 433MHz (V 3.3.2.1-rc8 ) || Shelly s1

mumpitzstuff

@moonlightkid: pyasn1 ist bei dir zu alt. Versuch mal bitte ein Upgrade.

sudo pip3 install pyasn1 --upgrade


mumpitzstuff

Zitat von: D3ltorohd am 15 September 2019, 14:51:26
Ich wollte gerade mal dein Modul einrichten und bin auf folgendes Problem gestoßen, ich meine bis hierhin hat alles geklappt von der Installation her. Nun kommt aber anstatt eine URL folgender Fehler.

Wo liegt hier mein Fehler ?

Welche Version von gcalcli läuft bei dir?

Dreh bitte mal das Kommando um:

sudo -u fhem gcalcli list --noauth_local_webserver