help needed - I cant get win32all working

dave_k3652 at my-deja.com dave_k3652 at my-deja.com
Tue Aug 22 04:58:12 EDT 2000


Thanks Mark, I have solved the problem.

When I followed your instructions I got:
----------------------------------------------------
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 pywin.framework.intpyapp
>>> import win32ui
>>> win32ui.GetApp().InitInstance()
Failed to connect to Pythonwin|System. Error 0
Traceback (innermost last):
  File "C:\dev\Python\Pythonwin\pywin\framework\interact.py", line 529,
in OnInitialUpdate
    winout.WindowOutputView.OnInitialUpdate(self)
  File "C:\dev\Python\Pythonwin\pywin\framework\winout.py", line 233,
in OnInitialUpdate
    pywin.scintilla.view.CScintillaView.OnInitialUpdate(self)
  File "C:\dev\Python\Pythonwin\pywin\scintilla\view.py", line 183, in
OnInitialUpdate
    self.OnWinIniChange(None)
  File "C:\dev\Python\Pythonwin\pywin\scintilla\view.py", line 196, in
OnWinIniChange
    self.DoConfigChange()
  File "C:\dev\Python\Pythonwin\pywin\scintilla\view.py", line 202, in
DoConfigChange
    from pywin.framework.editor import GetEditorOption
  File "C:\dev\Python\Pythonwin\pywin\framework\editor\__init__.py",
line 90, in ?
    from pywin.framework.editor.color.coloreditor import *

File "C:\dev\Python\Pythonwin\pywin\framework\editor\color\coloreditor.p
y", line 405, in ?
    from pywin.framework.editor.frame import EditorFrame
  File "C:\dev\Python\Pythonwin\pywin\framework\editor\frame.py", line
7, in ?
    import ModuleBrowser

File "C:\dev\Python\Pythonwin\pywin\framework\editor\ModuleBrowser.py",
line 11, in ?
    import pyclbr
  File "C:\dev\Python\Lib\pyclbr.py", line 1
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    ^
SyntaxError: invalid syntax
win32ui: OnInitialUpdate() virtual handler (<method
InteractiveView.OnInitialUpdate of InteractiveView instance at 90f580>)
raised an exception
>>>
----------------------------------------------------

This told me that pyclbr.py was wrong.  I remembered I had followed the
instructions on your download page and updated pyclbr.py when I had
first installed win32all, but instead of saving it directly from the
link IE5 had opened the source in the browser and I had used 'save as',
not realising that it would save it with the HTML wrapper.  My
mistake.  Once I removed the HTML it worked fine.

Thanks Again,

     Dave K


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list