Hi Toni,

On 2013-02-02 22:33:46, Toni Mueller wrote:
> >>> import GnuPGInterface
> >>> gnupg = GnuPGInterface.GnuPG()
> >>> gnupg.options.meta_interactive = 0
> >>> gnupg.options.armor = 1
> >>> gnupg.options.extra_args.append('--no-secmem-warning')
> >>> p1 = gnupg.run(['--verify'], create_fhs=['stdin', 'stdout', 'passphrase'])
> Traceback (most recent call last):
>   File "<input>", line 1, in <module>
>   File "/usr/lib/pymodules/python2.7/GnuPGInterface.py", line 357, in run
>     create_fhs, attach_fhs)
>   File "/usr/lib/pymodules/python2.7/GnuPGInterface.py", line 397, in 
> _attach_fork_exec
>     process._pipes[fh_name] = Pipe(fh.fileno(), fh.fileno(), 1)
> AttributeError: 'CLIRepl' object has no attribute 'fileno'

The error looks like you're trying to run the example in bpython. So you are
probably experiencing [1] or a variant of it. The examples works in an
interactive python shell.

Regards

[1] 
https://bitbucket.org/bobf/bpython/issue/232/bpythonclifakestdin-dont-have-fileno
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: Digital signature

Reply via email to