embedding pythonwin ?

Emmanuel Astier emmanuel.astier at winwise.fr
Fri Jul 6 15:24:11 CEST 2001


Hi all, 


I would like to embed python, to use its debugging facilities.

My application that embed python let me enter python commands.
Here's what happens :

-----------------------------------------------------------------------
import pywin.debugger

pywin.debugger.GetDebugger()
Could not create the debugger!
Traceback (most recent call last):
  File "d:\python\python_2_1\pythonwin\pywin\debugger\__init__.py",
line 46, in GetDebugger
    rc = _GetCurrentDebugger()
  File "d:\python\python_2_1\pythonwin\pywin\debugger\__init__.py",
line 35, in _GetCurrentDebugger
    _CheckNeedGUI()
  File "d:\python\python_2_1\pythonwin\pywin\debugger\__init__.py",
line 21, in _CheckNeedGUI
    pywin.framework.app.CreateDefaultGUI(dbgpyapp.DebuggerPythonApp)
  File "d:\python\python_2_1\pythonwin\pywin\framework\app.py", line
386, in CreateDefaultGUI
    appClass().InitInstance()
  File "d:\python\python_2_1\pythonwin\pywin\debugger\dbgpyapp.py",
line 38, in InitInstance
    from pywin.framework import interact
  File "d:\python\python_2_1\pythonwin\pywin\framework\interact.py",
line 21, in ?
    import pywin.scintilla.IDLEenvironment
  File
"d:\python\python_2_1\pythonwin\pywin\scintilla\IDLEenvironment.py",
line 56, in ?
    GetIDLEModule("AutoIndent").IndentSearcher.readline =
fast_readline
  File
"d:\python\python_2_1\pythonwin\pywin\scintilla\IDLEenvironment.py",
line 24, in GetIDLEModule
    __import__(modname)
  File "d:\python\python_2_1\pythonwin\pywin\idle\AutoIndent.py", line
38, in ?
    import PyParse
  File "d:\python\python_2_1\pythonwin\pywin\idle\PyParse.py", line 2,
in ?
    import re
  File "d:\python\python_2_1\lib\re.py", line 28, in ?
    from sre import *
  File "d:\python\python_2_1\lib\sre.py", line 218, in ?
    import copy_reg
ValueError: bad marshal data
-----------------------------------------------------------------------

All is release compile, so I don't have issues with "*_d.pyd".

Anyone has any clue ?

Thanks by advance, 

Emmanuel




More information about the Python-list mailing list