简体   繁体   中英

Error when running Duplicity on AWS Linux

I have installed Duplicity on some AWS EC2 instances using the folowing command

yum -y install duplicity rsync gpg python python-devel python-pip --    enablerepo=epel

This was based on an approach described here

https://rtcamp.com/tutorials/backups/duplicity-amazon-s3/

However, whenever I try to run a duplictiy command, I get the following command

Traceback (most recent call last):  File "/usr/bin/duplicity", line 42, in <module> from duplicity import log ImportError: No module named duplicity

Anyone have any ideas on how to solve this?

check that your default PYTHONPATH is set up properly. there are very good howto's out there, so i am not duplicating them. simply search the net.

if not you can add the location where duplicity modules ended up manually via PYTHONPATH env var.

..ede/duply.net

PS: in my first answer i posted a link, but some clever editor deleted that "because the link may change in the future".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM