Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5115

Re: Python3 - pathlib - python-gnupg Problem

X-Received by 10.200.39.34 with SMTP id g31mr1554037qtg.1.1517918433927; Tue, 06 Feb 2018 04:00:33 -0800 (PST)
X-Received by 10.31.128.137 with SMTP id b131mr221370vkd.7.1517918433683; Tue, 06 Feb 2018 04:00:33 -0800 (PST)
Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!t22no956046qtb.0!news-out.google.com!h12ni316qte.0!nntp.google.com!t22no956042qtb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups de.comp.lang.python
Date Tue, 6 Feb 2018 04:00:33 -0800 (PST)
In-Reply-To <98cfc895-06a7-495e-93b5-182f4cc367fd@googlegroups.com>
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
References <98cfc895-06a7-495e-93b5-182f4cc367fd@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <d65ba20c-5a43-4682-8d40-f1e4c93141ea@googlegroups.com> (permalink)
Subject Re: Python3 - pathlib - python-gnupg Problem
From Maurice Kemmann <muckisg@googlemail.com>
Injection-Date Tue, 06 Feb 2018 12:00:33 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 27
Xref csiph.com de.comp.lang.python:5115

Show key headers only | View raw


Hi Zusammen,

Am Dienstag, 6. Februar 2018 09:23:07 UTC+1 schrieb Maurice Kemmann:
> 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:
> 

Problem gelöst. 

gpg = gnupg.GPG(gnupghome=str(Path("/home/mucki/.gnupg/")))

Path liefert in diesem Fall wohl keinen String zuück, da habe ich wohl die Doku nicht richtig gelesen. Danke an Uwe!

Maurice

Back to de.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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