There is an issue, if you haven’t already discovered it, in the MacPort installation for Duplicity 0.4.4, which is the current port version as of today, December 3, 2007.
I know, I know .. the current official release is 0.4.6, released November 28, 2007, according to the official site, but I’m only the messenger. Please direct your complaints to the maintainers (port info duplicity | grep Maintainers).
Anyway, very likely if you ended up here, you’re running into the following error no matter what duplicity command you run:
ImportError: No module named _md5
Apparently, the maintainers forgot to note a further port dependency, so you’re not getting all the source you need to properly run the program. Thankfully, the fix is quite easy. All you need to do is install the py25-hashlib port, and all will be swell:
sudo port install py25-hashlib
Now you know, and knowing is half the battle.
The internet is awash with the useless suggestion “just recompile from source.” This is the only place I found this simple (if not obvious) but certainly underdocumented solution.
Thanks!
Great hint! Thank you,
you saved my day