X-Received: by 10.200.13.2 with SMTP id q2mr1264098qti.4.1517905386754; Tue, 06 Feb 2018 00:23:06 -0800 (PST) X-Received: by 10.31.128.137 with SMTP id b131mr166273vkd.7.1517905386507; Tue, 06 Feb 2018 00:23:06 -0800 (PST) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!q21no1252746qtn.1!news-out.google.com!h12ni290qte.0!nntp.google.com!q21no1252743qtn.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: de.comp.lang.python Date: Tue, 6 Feb 2018 00:23:06 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=79.216.244.210; posting-account=5rZ7UQkAAAB_I-RHEw4EsPvRjQMcwxXg NNTP-Posting-Host: 79.216.244.210 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <98cfc895-06a7-495e-93b5-182f4cc367fd@googlegroups.com> Subject: Python3 - pathlib - python-gnupg Problem From: Maurice Kemmann Injection-Date: Tue, 06 Feb 2018 08:23:06 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 40 Xref: csiph.com de.comp.lang.python:5114 Hallo, ich nutze pathlib um OS unabh=C3=A4ngige Scripte zu schreiben. Im Moment sp= iele ich ein wenig mit python-gnupg herrum und laufe in folgendes Problem: import gnupg from pathlib import Path=20 from pprint import pprint gpg =3D gnupg.GPG(gnupghome=3DPath("/home/mucki/.gnupg/")) <\code> Das f=C3=BChrt zu folgenden Fehler unter Linux: >> python3 gpg-test.py=20 Traceback (most recent call last): File "gpg-test.py", line 5, in gpg =3D gnupg.GPG(gnupghome=3DPath("/home/mucki/.gnupg/")) File "/usr/local/lib/python3.6/site-packages/gnupg.py", line 755, in __in= it__ p =3D self._open_subprocess(["--version"]) File "/usr/local/lib/python3.6/site-packages/gnupg.py", line 832, in _ope= n_subprocess logger.debug("%s: %s", result.pid, debug_print(cmd)) File "/usr/lib64/python3.6/subprocess.py", line 461, in list2cmdline needquote =3D (" " in arg) or ("\t" in arg) or not arg TypeError: argument of type 'PosixPath' is not iterable Unter Windows 10 gibt es eine passende Fehlermeldung mit "type WindowsPath = not iterable". Es scheint ja mit dem subprocess module zusammenzuh=C3=A4ngen, aber hier h= =C3=B6rt mein Wissen leider auf. Kann mir jemand helfen? Liegt der Fehler b= ei mir? Wenn ja, warum? Danke, Maurice