duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] "ImportError: No module named GnuPGInterface" with


From: Nick Burch
Subject: Re: [Duplicity-talk] "ImportError: No module named GnuPGInterface" with 0.4.3.RC8
Date: Tue, 3 Jul 2007 12:50:50 +0100 (BST)

On Tue, 3 Jul 2007, Kenneth Loafman wrote:
Yes, its part of the python-gnupginterface module. I need to set that up as a requirement for the duplicity package.

Ah, right. If anyone else is searching for a srpm for this, I've found the following one:
http://www.python.org/pyvault/SRPMS/repodata/repoview/python-gnupginterface-0-0.3.2-3.html

(The sourceforge page doesn't have a srpm, just a rpm for python 2.2)


With python-gnupginterface installed, I can run 0.4.3-RC8 just fine on RHEL 4 (python 2.3.4). However, when I try it on RHEL 3 (python 2.2.3), I get a nasty exception:

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 30, in ?
    from duplicity import collections, commandline, diffdir, dup_temp, \
File "/var/tmp/duplicity-0.4.3.RC8-0.fdr.6-root-root/usr/lib/python2.2/site-packages/duplicity/commandline.py", line 22, in ? File "/var/tmp/duplicity-0.4.3.RC8-0.fdr.6-root-root/usr/lib/python2.2/site-packages/duplicity/backends.py", line 27, in ?
AttributeError: 'module' object has no attribute 'setdefaulttimeout'


That seems to correspond to:
        # TODO: move into globals?
        socket.setdefaulttimeout(10)

It looks like python 2.2 doesn't have a setdefaulttimeout on its socket. I guess we'll want something like this instead:
        # TODO: move into globals?
        if hasattr(socket,"setdefaulttimeout"):
                socket.setdefaulttimeout(10)

Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]