[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re[4]: [rdiff-backup-users] Win32 question
From: |
Greg Freemyer |
Subject: |
re[4]: [rdiff-backup-users] Win32 question |
Date: |
Fri, 14 Mar 2003 13:30:40 -0500 |
Ben,
That change at least gets me thru some of the initialization.
I have not even got past all the imports at the start yet, but I'll get there
somehow.
I am using pythonwin which has a built in IDE and debugger.
For some reason I don't understand it seems to give me unhandled exceptions for
some of the imports, but then allows me to proceed right past them after that.
If I exit pythonwin and restart it, the errors come back, so I end up being
able to send you multiple errors in one e-mail.
Errors below:
=== First Error immediately after starting pythonwin
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
25, in ?
import Globals, Time, SetConnections, selection, robust, rpath, \
File
"C:\cygwin\home\gaf\devel\rdiff-backup-0.11.3\rdiff_backup\SetConnections.py",
line 30, in ?
import Globals, FilenameMapping, connection, rpath
File "/home/gaf/devel/rdiff-backup-0.11.3/rdiff_backup/connection.py", line
513, in ?
import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \
File "/home/gaf/devel/rdiff-backup-0.11.3/rdiff_backup/Rdiff.py", line 22, in ?
import os, librsync
File "/home/gaf/devel/rdiff-backup-0.11.3/rdiff_backup/librsync.py", line 27,
in ?
import _librsync, types, array
ImportError: DLL load failed: The specified module could not be found.
I have the librsync .a and .dll files that I built in cygwin.
I have copied them to python2.2.2/DLLs and python2.2.2/libs
=== 2nd error (Simply reran Main)
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
25, in ?
import Globals, Time, SetConnections, selection, robust, rpath, \
File "/home/gaf/devel/rdiff-backup-0.11.3/rdiff_backup/selection.py", line 29,
in ?
import FilenameMapping, robust, rpath, Globals, log
File "/home/gaf/devel/rdiff-backup-0.11.3/rdiff_backup/robust.py", line 23, in ?
import librsync, C, static, rpath, Globals, log, statistics
ImportError: DLL load failed: The specified module could not be found.
I found C.dll in cygwin's python. Copied to above win32 python dirs.
=== 3rd error
Same as 2nd, but a different source file
=== 4th 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
25, in ?
import Globals, Time, SetConnections, selection, robust, rpath, \
File "/home/gaf/devel/rdiff-backup-0.11.3/rdiff_backup/restore.py", line 460,
in ?
class PatchITRB(rorpiter.ITRBranch):
AttributeError: 'module' object has no attribute 'ITRBranch'
Finally a bug that actually relates to your code. (At least I think it does).
=== final error (re-running Main continues to give this 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 25, in ?
import Globals, Time, SetConnections, selection, robust, rpath, \
ImportError: DLL load failed: The specified module could not be found.
I don't even see a dll in the above?
===
Thanks
Greg
>> >>>>> "GF" == Greg Freemyer <address@hidden>
>> >>>>> wrote the following on Thu, 13 Mar 2003 20:19:53 -0500
>> >>> What is the error?
>> GF> Traceback (most recent call last): File
>> GF>
>> "C:\PROGRA~1\PYTHON~1.2\lib\site-packages\Pythonwin\pywin\framework\scrip
>> tutils.py",
>> GF> line 310, in RunScript exec codeObject in __main__.__dict__ File
>> GF> "C:\cygwin\home\gaf\devel\rdiff-backup-0.11.3\rdiff_backup\Main.py",
>> GF> line 24, in ? """from log import Log, LoggerError, ErrorLog"""
>> GF> ImportError: cannot import name Log
>> Hmm, yeah, this happened to me before. I tried various kludges and
>> then spend a lot of time for 0.11.1 (I think) removing almost all
>> cases of "import XXX from YYY" in rdiff-backup. So try changing it to
>> "import log", and changing all instances in Main.py of
>> Log.FatalError() to log.Log.FatalError(), etc, and see if that helps.
>> I think the basic problem is that Python handles circular module
>> dependencies in inconsistent ways. I think there is also an entry in
>> the Python FAQ about this.
>> --
>> Ben Escoto
>> -- NextPart --
>> Attached File: c:\program
>> files\goldmine\MailBox\Attach\gaf\FILE8002.pgp-signature
>> -- NextPart --
>> _______________________________________________
>> rdiff-backup-users mailing list
>> address@hidden
>> http://mail.nongnu.org/mailman/listinfo/rdiff-backup-users