Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5114
| 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> (permalink) |
| Subject | Python3 - pathlib - python-gnupg Problem |
| From | Maurice Kemmann <muckisg@googlemail.com> |
| 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 |
Show key headers only | View raw
Hallo,
ich nutze pathlib um OS unabhängige Scripte zu schreiben. Im Moment spiele ich ein wenig mit python-gnupg herrum und laufe in folgendes Problem:
<code>
import gnupg
from pathlib import Path
from pprint import pprint
gpg = gnupg.GPG(gnupghome=Path("/home/mucki/.gnupg/"))
<\code>
Das führt zu folgenden Fehler unter Linux:
>> python3 gpg-test.py
Traceback (most recent call last):
File "gpg-test.py", line 5, in <module>
gpg = gnupg.GPG(gnupghome=Path("/home/mucki/.gnupg/"))
File "/usr/local/lib/python3.6/site-packages/gnupg.py", line 755, in __init__
p = self._open_subprocess(["--version"])
File "/usr/local/lib/python3.6/site-packages/gnupg.py", line 832, in _open_subprocess
logger.debug("%s: %s", result.pid, debug_print(cmd))
File "/usr/lib64/python3.6/subprocess.py", line 461, in list2cmdline
needquote = (" " 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ängen, aber hier hört mein Wissen leider auf. Kann mir jemand helfen? Liegt der Fehler bei mir? Wenn ja, warum?
Danke,
Maurice
Back to de.comp.lang.python | Previous | Next — Next in thread | Find similar
Python3 - pathlib - python-gnupg Problem Maurice Kemmann <muckisg@googlemail.com> - 2018-02-06 00:23 -0800
Re: Python3 - pathlib - python-gnupg Problem Maurice Kemmann <muckisg@googlemail.com> - 2018-02-06 04:00 -0800
Re: [Python-de] Python3 - pathlib - python-gnupg Problem Reimar Bauer <rb.proj@gmail.com> - 2018-02-06 13:08 +0100
Re: [Python-de] Python3 - pathlib - python-gnupg Problem Maurice Kemmann <muckisg@googlemail.com> - 2018-02-06 20:25 +0100
Re: [Python-de] Python3 - pathlib - python-gnupg Problem Stefan Schwarzer <sschwarzer@sschwarzer.net> - 2018-02-07 06:36 +0100
csiph-web