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

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

re[2]: [rdiff-backup-users] Win32 question


From: Greg Freemyer
Subject: re[2]: [rdiff-backup-users] Win32 question
Date: Thu, 13 Mar 2003 20:19:53 -0500

 >>  >>>>> "GF" == Greg Freemyer <address@hidden>
 >>  >>>>> wrote the following on Thu, 13 Mar 2003 18:56:55 -0500

 >>  GF> Sometimes the line

 >>  GF> from log import Log, LoggerError, ErrorLog

 >>  GF> in Main.py works, and sometimes it does not.  (Win32 issue only)

 >>  GF> In both cases a import log statement works so sys.path is
 >>  GF> correct.

 >>  What is the error?

Traceback (most recent call last):
  File 
"C:\PROGRA~1\PYTHON~1.2\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py",
 line 310, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\cygwin\home\gaf\devel\rdiff-backup-0.11.3\rdiff_backup\Main.py", 
line 24, in ?
    """from log import Log, LoggerError, ErrorLog"""
ImportError: cannot import name Log

 >>  GF> I spent several minutes trying to find some doc on what "from"
 >>  GF> does but I could not find anything.

 >>  GF> Can you point me at a language reference that discusses the
 >>  GF> keywords, or do you happen to have any other hints?

 >>  The two most important python documents are the python reference
 >>  manual and the python library reference.  The reference manual is not
 >>  that user friendly, but does include a bit on 'import' at, for
 >>  instance:

 >>  http://www.python.org/doc/current/ref/import.html

Thanks, I'll look at that tomorrow.

 >>  -- 
 >>  Ben Escoto

Greg




reply via email to

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