rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] Problem starting rdiff: No module named rdiff_backu


From: BWF
Subject: [rdiff-backup-users] Problem starting rdiff: No module named rdiff_backup.Main
Date: Sun, 20 Feb 2005 23:52:34 +0100
User-agent: Mutt/1.4.2.1i

Hi there,

when I'm trying to start rdiff-backup, it comes up with following error message:

        -bash-2.05b$ rdiff-backup 
        Traceback (most recent call last):
          File "/usr/bin/rdiff-backup", line 20, in ?
            import rdiff_backup.Main
        ImportError: No module named rdiff_backup.Main

The module is under /usr/lib/python2.3/site-packages/rdiff_backup. I've added
this path to the PYTHONPATH environment variable, but the same error appeared.
After some other efforts I've deleted in /usr/bin/rdiff-backup the rdiff_backup
before Main:

        [...]
        import sys
        import Main
        
        if __name__ == "__main__" and not globals().has_key('__no_execute__'):
                    Main.Main(sys.argv[1:])

Now rdiff is running, but this seems to be a very bad hack. Could you please
help me to find a better solution?

python: 2.3.3
rdiff-backup: 0.12.7
linux: 2.4.26

(sorry for my bad english)

Regards
Till




reply via email to

[Prev in Thread] Current Thread [Next in Thread]