Bug 745535

Summary: duplicity fail because of subprocess
Product: [Fedora] Fedora EPEL Reporter: Jérôme Benoit <jerome.benoit>
Component: duplicityAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: el4CC: rdieter, redhat-bugzilla
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: duplicity-0.6.14-2.el4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-29 22:01:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to fix duplicity for RHEL 4
none
Fixlet to previous patch (the changelog entry) none

Description Jérôme Benoit 2011-10-12 15:59:40 UTC
Description of problem:


Version-Release number of selected component (if applicable):

0.6.14

How reproducible:

Always by just running duplicity 

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1311, in ?
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1304, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1180, in main
    sync_archive()
  File "/usr/bin/duplicity", line 956, in sync_archive
    remlist = globals.backend.list()
  File "/usr/lib/python2.3/site-packages/duplicity/backends/rsyncbackend.py", line 134, in list
    result, stdout = self.run_command(commandline)
  File "/usr/lib/python2.3/site-packages/duplicity/backends/rsyncbackend.py", line 105, in run_command
    result, stdout, stderr = self.subprocess_popen_persist(commandline)
  File "/usr/lib/python2.3/site-packages/duplicity/backend.py", line 463, in subprocess_popen_persist
    result, stdout, stderr = self._subprocess_popen(commandline)
  File "/usr/lib/python2.3/site-packages/duplicity/backend.py", line 424, in _subprocess_popen
    from subprocess import Popen, PIPE
ImportError: No module named subprocess



Additional info:

Python version on RHEL is too old, you should bundle subprocess inside the package.

Comment 1 Jérôme Benoit 2011-10-25 18:51:25 UTC
Created attachment 530159 [details]
Patch to fix duplicity for RHEL 4

Please commit. It's fully tested and work very well on RHEL 4,5 and 6.

Comment 2 Jérôme Benoit 2011-10-25 18:56:19 UTC
Created attachment 530161 [details]
Fixlet to previous patch (the changelog entry)

Comment 3 Fedora Update System 2011-12-13 14:58:58 UTC
duplicity-0.6.14-2.el4 has been submitted as an update for Fedora EPEL 4.
https://admin.fedoraproject.org/updates/duplicity-0.6.14-2.el4

Comment 4 Fedora Update System 2011-12-13 19:57:44 UTC
Package duplicity-0.6.14-2.el4:
* should fix your issue,
* was pushed to the Fedora EPEL 4 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing duplicity-0.6.14-2.el4'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2011-5225/duplicity-0.6.14-2.el4
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-12-29 22:01:01 UTC
duplicity-0.6.14-2.el4 has been pushed to the Fedora EPEL 4 stable repository.  If problems still persist, please make note of it in this bug report.