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


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

Re: Python3 - pathlib - python-gnupg Problem

Newsgroups de.comp.lang.python
Date 2018-02-06 04:00 -0800
References <98cfc895-06a7-495e-93b5-182f4cc367fd@googlegroups.com>
Message-ID <d65ba20c-5a43-4682-8d40-f1e4c93141ea@googlegroups.com> (permalink)
Subject Re: Python3 - pathlib - python-gnupg Problem
From Maurice Kemmann <muckisg@googlemail.com>

Show all headers | 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