[go: up one dir, main page]

Skip to content

ModuleNotFoundError when running duplicity 3.0.5 from PPA on Ubuntu 22.04

I have:

Summary

Installed duplicity 3.0.5-ppa202506191602~ubuntu22.04.1 on Ubuntu 22.04. Execution fails due to ModuleNotFoundError exception.

Steps to reproduce

# docker doesnt matter here. just take any fresh ubuntu 22.04
$ docker run -it ubuntu:22.04 bash 

# install everything from scratch
# apt update
# apt install software-properties-common
# add-apt-repository ppa:duplicity-team/duplicity-release-git
# apt install duplicity

# make sure we installed the correct version
# root@bb657a398c0e:/# apt policy duplicity
duplicity:
  Installed: 3.0.5-ppa202506191602~ubuntu22.04.1
  Candidate: 3.0.5-ppa202506191602~ubuntu22.04.1
  Version table:
 *** 3.0.5-ppa202506191602~ubuntu22.04.1 500
        500 https://ppa.launchpadcontent.net/duplicity-team/duplicity-release-git/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     0.8.21-1build1 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages

What is the current bug behaviour?

`# duplicity       
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 5, in <module>
    from duplicity.__main__ import dup_run
ModuleNotFoundError: No module named 'duplicity.__main__'

Workaround

Downgrading to version 3.0.4 solved it for me. Although the PPA website no longer lists the package (at least I couldn't find it), I was able to download it from here:

https://launchpad.net/~duplicity-team/+archive/ubuntu/duplicity-release-git/+files/duplicity_3.0.4-ppa202502081832~ubuntu22.04.1_amd64.deb

Edited by Maik Franke