File "/usr/local/bin/rdiff-backup", line 20, in ? RDIFF error after install?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

File "/usr/local/bin/rdiff-backup", line 20, in ? RDIFF error after install?

j_70
I compiled rdiff from source on SuSe 9.1 Pro but when I try a test backup, I get the following:

linux:~ # rdiff-backup /home/user1/ 192.168.1.140::c:\2004
Traceback (most recent call last):
  File "/usr/local/bin/rdiff-backup", line 20, in ?
    import rdiff_backup.Main
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 25, in ?
    import Globals, Time, SetConnections, selection, robust, rpath, \
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/SetConnections.py", line 30, in ?
    import Globals, connection, rpath
  File "/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py", line 23, in ?
    import types, os, tempfile, cPickle, shutil, traceback, pickle, \
  File "/usr/local/lib/python2.4/gzip.py", line 9, in ?
    import zlib
ImportError: No module named zlib
linux:~ #

The compilation and build went smoothly, python seems to be working fine, and I can get information about RDIFF.

linux:~ # python
Python 2.4.2 (#2, Feb 10 2006, 10:39:13)
[GCC 3.3.3 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
linux:~ #


linux:~ # rdiff -V
rdiff (librsync 0.9.7) [i686-pc-linux-gnu]
Copyright (C) 1997-2001 by Martin Pool, Andrew Tridgell and others.
http://rproxy.samba.org/
Capabilities: 64 bit files, bzip2

librsync comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of librsync under the terms of the GNU
Lesser General Public License.  For more information about these
matters, see the files named COPYING.
linux:~ #

Anyone else have this problem?



_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: File "/usr/local/bin/rdiff-backup", line 20, in ? RDIFF error after install?

Charles Duffy-6
[hidden email] wrote:

> I compiled rdiff from source on SuSe 9.1 Pro but when I try a test backup, I get the following:
>
> linux:~ # rdiff-backup /home/user1/ 192.168.1.140::c:\2004
> Traceback (most recent call last):
>   File "/usr/local/bin/rdiff-backup", line 20, in ?
>     import rdiff_backup.Main
>   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/Main.py", line 25, in ?
>     import Globals, Time, SetConnections, selection, robust, rpath, \
>   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/SetConnections.py", line 30, in ?
>     import Globals, connection, rpath
>   File "/usr/local/lib/python2.4/site-packages/rdiff_backup/connection.py", line 23, in ?
>     import types, os, tempfile, cPickle, shutil, traceback, pickle, \
>   File "/usr/local/lib/python2.4/gzip.py", line 9, in ?
>     import zlib
> ImportError: No module named zlib
> linux:~ #
>  
Run the Python interpreter, and put in the command "import zlib". It'll
fail, because your Python install was compiled without zlib support;
this is the issue you need to fix.

Recompiling Python with the zlib *headers* installed will likely resolve
this issue.


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