From: spamfranke at bigfoot.de (Stefan Franke)
Date: Wed, 14 Apr 1999 11:12:19 GMT
Subject: Can't run Win32 Debugger outside PythonWin
Message-ID: <371475d6.77664796@news.omnilink.de>
Content-Length: 2343
X-UID: 546                                                  

I just upgraded my NT4 SP3 Workstation to Python 1.5.2 and
win32all build 124. Unluckily I can't start the debugger any
longer from outside PythonWin.
That is, typing

    pywin.debugger.fail

works fine, but running fail.py from the shell gives

D:\Programme\Python\Pythonwin\pywin\debugger>fail.py
Traceback (innermost last):
  File "D:\Programme\Python\Pythonwin\pywin\debugger\fail.py", line 50, in ?
    a()
  File "D:\Programme\Python\Pythonwin\pywin\debugger\fail.py", line 18, in a
    pywin.debugger.post_mortem(sys.exc_info()[2])
  File "D:\Programme\Python\Pythonwin\pywin\debugger\__init__.py", line 75, in p
ost_mortem
    p = _GetCurrentDebugger()
  File "D:\Programme\Python\Pythonwin\pywin\debugger\__init__.py", line 28, in _
GetCurrentDebugger
    currentDebugger = debugger.Debugger()
AttributeError: Debugger

It seems the Scintilla.DLL can't be found (even the latest update from the
author's hompage). However, sys.path is OK:

D:\Programme\Python\Pythonwin\pywin\debugger>python
Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import debugger
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "D:\Programme\Python\Pythonwin\pywin\debugger\debugger.py", line 24, in ?

    from pywin.framework import app, interact, editor
  File "D:\Programme\Python\Pythonwin\pywin\framework\editor\__init__.py", line
90, in ?
    LoadDefaultEditor()
  File "D:\Programme\Python\Pythonwin\pywin\framework\editor\__init__.py", line
39, in LoadDefaultEditor
    mod = __import__(prefModule)
  File "D:\Programme\Python\Pythonwin\pywin\framework\editor\color\coloreditor.p
y", line 39, in ?
    dllid = win32api.LoadLibrary("Scintilla.DLL")
pywintypes.api_error: (126, 'LoadLibrary', 'Das angegebene Modul wurde nicht gef
unden.')

[The German error msg says "module not found"]

>>> import sys
>>> for x in sys.path: print x
D:\Programme\Python
D:\Programme\Pythonwin
D:\Programme\Python\Pythonwin
D:\Programme\Python\win32
D:\Programme\Python\win32\lib
D:\Programme\Python
D:\Programme\Python\Lib\plat-win
D:\Programme\Python\Lib
D:\Programme\Python\DLLs
D:\Programme\Python\Lib\lib-tk
D:\Programme\Python\DLLs
D:\Programme\Python\lib
D:\Programme\Python\lib\plat-win
D:\Programme\Python\lib\lib-tk
D:\Programme\Python


Stefan





