ModuleNotFoundError: No module named 'duplicity'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ModuleNotFoundError: No module named 'duplicity'

duplicity-talk mailing list
Hi all,

I get an error when trying to run duplicity

root@trioxy ~/duplicity-0.8.00 # duplicity
Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 35, in <module>
    import duplicity.errors
ModuleNotFoundError: No module named 'duplicity'

Anyone any ideas ?


the install went fine
root@trioxy ~/duplicity-0.8.00 # python setup.py install
/usr/lib/python2.7/dist-packages/setuptools/dist.py:397: UserWarning: Normalizing '0.8.00' to '0.8.0'
  normalized_version,
running install
running build
running build_py
creating build/lib.linux-x86_64-2.7/testing
copying testing/test_code.py -> build/lib.linux-x86_64-2.7/testing
copying testing/conftest.py -> build/lib.linux-x86_64-2.7/testing
copying testing/fix_unadorned_strings.py -> build/lib.linux-x86_64-2.7/testing
copying testing/__init__.py -> build/lib.linux-x86_64-2.7/testing
copying testing/find_unadorned_strings.py -> build/lib.linux-x86_64-2.7/testing
creating build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/test_cleanup.py -> build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/test_selection.py -> build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/test_final.py -> build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/test_verify.py -> build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/test_log.py -> build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/test_restart.py -> build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/__init__.py -> build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/test_rdiffdir.py -> build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/test_badupload.py -> build/lib.linux-x86_64-2.7/testing/functional
copying testing/functional/test_replicate.py -> build/lib.linux-x86_64-2.7/testing/functional
creating build/lib.linux-x86_64-2.7/testing/overrides
copying testing/overrides/gettext.py -> build/lib.linux-x86_64-2.7/testing/overrides
copying testing/overrides/__init__.py -> build/lib.linux-x86_64-2.7/testing/overrides
creating build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_tempdir.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_collections.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_dup_temp.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_selection.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_path.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_backend_instance.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_lazy.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_file_naming.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_statistics.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_diffdir.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_gpginterface.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_globmatch.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_dup_time.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_tarfile.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/__init__.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_util.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_gpg.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_patchdir.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_manifest.py -> build/lib.linux-x86_64-2.7/testing/unit
copying testing/unit/test_backend.py -> build/lib.linux-x86_64-2.7/testing/unit
running build_ext
running build_scripts
running install_lib
running install_data
running install_egg_info
running egg_info
writing requirements to duplicity.egg-info/requires.txt
writing duplicity.egg-info/PKG-INFO
writing top-level names to duplicity.egg-info/top_level.txt
writing dependency_links to duplicity.egg-info/dependency_links.txt
reading manifest file 'duplicity.egg-info/SOURCES.txt'
writing manifest file 'duplicity.egg-info/SOURCES.txt'
removing '/usr/local/lib/python2.7/dist-packages/duplicity-0.8.0.egg-info' (and everything under it)
Copying duplicity.egg-info to /usr/local/lib/python2.7/dist-packages/duplicity-0.8.0.egg-info
running install_scripts
changing mode of /usr/local/bin/rdiffdir to 755
changing mode of /usr/local/bin/duplicity to 755

_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Reply | Threaded
Open this post in threaded view
|

Re: ModuleNotFoundError: No module named 'duplicity'

duplicity-talk mailing list

Hello Jaco,

 


On 2019-06-04 15:33, Jaco Waes via Duplicity-talk wrote:

Hi all,
 
I get an error when trying to run duplicity
 
root@trioxy ~/duplicity-0.8.00 # duplicity
Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 35, in <module>
    import duplicity.errors
ModuleNotFoundError: No module named 'duplicity'
 
Anyone any ideas ?
 
 
What is your objective? If it is just to run duplicity 0.8.00, have you tried the snap? Instructions are here:
snap install duplicity --classic --beta
 
Obviously the install instructions here:
should work, but if your aim is to just to get the latest version running, the snap should be your best bet.
 
Looking at the README, I wonder if you might need something like:
export PYTHONPATH='/usr/local/lib/python2.x/site-packages/'
to get things running manually.
 
Kind regards,
 
Aaron

_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Reply | Threaded
Open this post in threaded view
|

Re: ModuleNotFoundError: No module named 'duplicity'

duplicity-talk mailing list
Thanks for your reply. i just tried with the export but that doesn't work. I ll try the snap later. For now i have set up Borg. Let's see how that works.

Op di 4 jun. 2019 om 18:24 schreef Aaron <[hidden email]>:

Hello Jaco,

 


On 2019-06-04 15:33, Jaco Waes via Duplicity-talk wrote:

Hi all,
 
I get an error when trying to run duplicity
 
root@trioxy ~/duplicity-0.8.00 # duplicity
Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 35, in <module>
    import duplicity.errors
ModuleNotFoundError: No module named 'duplicity'
 
Anyone any ideas ?
 
 
What is your objective? If it is just to run duplicity 0.8.00, have you tried the snap? Instructions are here:
snap install duplicity --classic --beta
 
Obviously the install instructions here:
should work, but if your aim is to just to get the latest version running, the snap should be your best bet.
 
Looking at the README, I wonder if you might need something like:
export PYTHONPATH='/usr/local/lib/python2.x/site-packages/'
to get things running manually.
 
Kind regards,
 
Aaron

_______________________________________________
Duplicity-talk mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/duplicity-talk