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

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

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


From: Ben Escoto
Subject: Re: [rdiff-backup-users] No module named rdiff_backup.Main
Date: Sat, 07 Dec 2002 11:25:33 -0800

>>>>> "SG" == q2qxc  <Shaun>
>>>>> wrote the following on 06 Dec 2002 22:30:52 +1300

  SG> Hi Just tried to run rdiff-backup after installing and got the
  SG> following response.

  SG> rdiff-backup 'import site' failed; use -v for traceback
  SG> Traceback (most recent call last): File "/usr/bin/rdiff-backup",
  SG> line 21, in ?  import rdiff_backup.Main ImportError: No module
  SG> named rdiff_backup.Main

Apparently the rdiff-backup modules didn't get installed in your
python path.  Where is the rdiff_backup directory (it should contain
files like Main.py, rpath.py, etc.)?  If it is /foo/bar, you can add
that to your path when running rdiff-backup by:

PYTHONPATH=/foo/bar rdiff-backup

Or, if you'd prefer to move these files into your pythonpath, type:

~ $ python
Python 2.2.1 (#1, Jun 14 2002, 21:57:22) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path

to see what is in your path (and then Cntl-D to exit python).

P.S. How did you install rdiff-backup?


-- 
Ben Escoto

Attachment: pgpaLYxGbYSp7.pgp
Description: PGP signature


reply via email to

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