Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705726 - app-backup/duplicity-0.8.09: ModuleNotFoundError: No module named 'future'
Summary: app-backup/duplicity-0.8.09: ModuleNotFoundError: No module named 'future'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Freeman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-18 11:05 UTC by Ralph Seichter
Modified: 2020-01-20 14:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Seichter 2020-01-18 11:05:47 UTC
Calling duplicity has recently started reporting a Python import error:

$ /usr/bin/duplicity
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 31, in <module>
    from future import standard_library
ModuleNotFoundError: No module named 'future'

I have various Python implementations on the server in question, but Python 3.6 is the default and should be supported by duplicity:

$ eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.7
  [3]   python3.8
  [4]   python2.7 (fallback)

$ equery u duplicity
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for app-backup/duplicity-0.8.09:
 U I
 + + python_targets_python2_7 : Build with Python 2.7
 + + python_targets_python3_6 : Build with Python 3.6
 - - s3                       : Support for backing up to the Amazon S3 system
 - - test                     : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can
                                be toggled independently)
Comment 1 Richard Freeman gentoo-dev 2020-01-19 20:22:34 UTC
Can you try again after doing "emerge -1 dev-python/future"

I'm pretty sure this is just a missing dep, but I want to see if there are any others I can fix at the same time since you seem to have a fairly clean python3 install.
Comment 2 Ralph Seichter 2020-01-19 21:55:19 UTC
(In reply to Richard Freeman from comment #1)

> Can you try again after doing "emerge -1 dev-python/future"
Duplicity works again after emerging dev-python/future. Emerge printed in the following messages, just in case you're interested:

  >>> Installing (1 of 1) dev-python/future-0.18.2::gentoo
  * Messages for package dev-python/future-0.18.2:
  * DISTUTILS_USE_SETUPTOOLS value is probably incorrect
  *   value:    DISTUTILS_USE_SETUPTOOLS=bdepend (default?)
  *   expected: DISTUTILS_USE_SETUPTOOLS=rdepend
Comment 3 Richard Freeman gentoo-dev 2020-01-20 01:21:56 UTC
(In reply to Ralph Seichter from comment #2)
> (In reply to Richard Freeman from comment #1)
> 
> > Can you try again after doing "emerge -1 dev-python/future"
> Duplicity works again after emerging dev-python/future. Emerge printed in
> the following messages, just in case you're interested:
> 
>   >>> Installing (1 of 1) dev-python/future-0.18.2::gentoo
>   * Messages for package dev-python/future-0.18.2:
>   * DISTUTILS_USE_SETUPTOOLS value is probably incorrect
>   *   value:    DISTUTILS_USE_SETUPTOOLS=bdepend (default?)
>   *   expected: DISTUTILS_USE_SETUPTOOLS=rdepend

Without looking at it more closely I couldn't tell you whether it is an issue, but feel free to file a new bug for the future package.  It isn't related to duplicity.  I'll be resolving this bug shortly...
Comment 4 Larry the Git Cow gentoo-dev 2020-01-20 02:25:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6a1b2d78796849837ef8f1942bbca431bd6b58e

commit d6a1b2d78796849837ef8f1942bbca431bd6b58e
Author:     Richard Freeman <rich0@gentoo.org>
AuthorDate: 2020-01-20 02:24:18 +0000
Commit:     Richard Freeman <rich0@gentoo.org>
CommitDate: 2020-01-20 02:24:18 +0000

    app-backup/duplicity: fix missing future dep
    
    Closes: https://bugs.gentoo.org/705726
    Package-Manager: Portage-2.3.79, Repoman-2.3.16
    Signed-off-by: Richard Freeman <rich0@gentoo.org>

 app-backup/duplicity/duplicity-0.8.09-r1.ebuild    | 50 ++++++++++++++++++++++
 .../files/duplicity-0.8.09-fix-docs.patch          | 15 +++++++
 2 files changed, 65 insertions(+)
Comment 5 Ralph Seichter 2020-01-20 14:21:39 UTC
(In reply to Richard Freeman from comment #3)

> feel free to file a new bug for the future package.
Done, please see https://bugs.gentoo.org/705958 .