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

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

Re: [rdiff-backup-users] ImportError: No module named rdiff_backup.Main


From: Tamashii
Subject: Re: [rdiff-backup-users] ImportError: No module named rdiff_backup.Main
Date: Fri, 29 Jul 2011 10:58:40 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0

Reinstallation of the package with dpkg did not yield any favorable results. I've also tried to remove it all and install it again with apt-get.
This gave the same result:

address@hidden:/usr/lib/pymodules/python2.6# apt-get install rdiff-backup
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  rdiff-backup
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0 B/202 kB of archives.
After this operation, 823 kB of additional disk space will be used.
Selecting previously deselected package rdiff-backup.
(Reading database ... 30265 files and directories currently installed.)
Unpacking rdiff-backup (from .../rdiff-backup_1.2.8-6_amd64.deb) ...
Setting up rdiff-backup (1.2.8-6) ...

address@hidden:/usr/lib/pymodules/python2.6# rdiff-backup -V
Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 20, in <module>
    import rdiff_backup.Main
ImportError: No module named rdiff_backup.Main


I can try to purge it again and re-install it from sources, but if possible I'd like to have it in packages for updates.


Thanks again,
Alexander

Am 29.07.2011 06:57, schrieb address@hidden:
I would try to reinstall, also do a dpkg -L rdiff-backup and make sure
all the files are where they should be.  I am using Debina Squeeze on a
box with rdiff-backup with no problems.

Hope this helps.

Tamashii<address@hidden>  wrote:

Hello Everyone!

I've been looking at guides and fix-suggestions for this error for
several hours - did not help - so I'll try my luck here.
I've never coded anything in python - I'm just trying to run the
program. (So I have a hard time finding the problem.)

The Problem:
address@hidden:/usr/lib/python2.6/dist-packages# rdiff-backup -V
Traceback (most recent call last):
   File "/usr/bin/rdiff-backup", line 20, in<module>
     import rdiff_backup.Main
ImportError: No module named rdiff_backup.Main


I'm running Debian 6, installed the package via. "apt-get install
rdiff-backup"

These are my paths:

Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.path
['', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
'/usr/local/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages']
I've already copied the folder to any imagineable location - no luck:

address@hidden:/usr/lib/python2.6/dist-packages# locate rdiff_backup | grep
Main.py
/usr/lib/pymodules/python2.6/rdiff_backup/Main.py
/usr/lib/pyshared/python2.6/rdiff_backup/Main.py
/usr/lib/python2.6/dist-packages/rdiff_backup/Main.py
/usr/local/lib/python2.6/dist-packages/rdiff_backup/Main.py
/usr/share/pyshared/rdiff_backup/Main.py

address@hidden:/usr/lib/python2.6/dist-packages# locate rdiff_backup | grep 
1.2.8
/usr/lib/pymodules/python2.6/rdiff_backup-1.2.8.egg-info
/usr/share/pyshared/rdiff_backup-1.2.8.egg-info

Those directories above should all be in the python path.

address@hidden:/usr/lib/python2.6/dist-packages# locate rdiff-backup
/etc/bash_completion.d/rdiff-backup
/usr/bin/rdiff-backup
/usr/bin/rdiff-backup-statistics
/usr/share/doc/rdiff-backup
/usr/share/doc/rdiff-backup/FAQ.html
/usr/share/doc/rdiff-backup/README
/usr/share/doc/rdiff-backup/README.Debian
/usr/share/doc/rdiff-backup/changelog.Debian.gz
/usr/share/doc/rdiff-backup/changelog.gz
/usr/share/doc/rdiff-backup/copyright
/usr/share/doc/rdiff-backup/examples.html
/usr/share/man/man1/rdiff-backup-statistics.1.gz
/usr/share/man/man1/rdiff-backup.1.gz
/usr/share/python-support/rdiff-backup.public
/var/cache/apt/archives/rdiff-backup_1.2.8-6_amd64.deb
/var/lib/dpkg/info/rdiff-backup.conffiles
/var/lib/dpkg/info/rdiff-backup.list
/var/lib/dpkg/info/rdiff-backup.md5sums
/var/lib/dpkg/info/rdiff-backup.postinst
/var/lib/dpkg/info/rdiff-backup.prerm


Any ideas what I can try to solve this?

Thanks in advance,
Alexander

_______________________________________________
rdiff-backup-users mailing list at address@hidden
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki




reply via email to

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