Thanks Robin, that makes sense. Actually the cygwin Python wants to see
.pyo files.
Thanks again ... WkH
···
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Tuesday, March 08, 2005 5:07 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] wxPython 2.3.5.1 and cygwin Python 2.4
Ward Harold wrote:
I've downloaded both the ANSI and the UNICODE 2.3.5.1 versions of
wxPython. Attempts to run demo.py with both versions fail with the
following error:Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "/cygdrive/c/Program Files/wxPython2.5 Docs and
Demos/demo/Main.py", line 32, in ?
import wx # This module uses the new wx namespace
File
"/usr/lib/python2.4/site-packages/wx-2.5.3-msw-ansi/wx/__init__.py",
line 42, in ?
from wx._core import *
File
"/usr/lib/python2.4/site-packages/wx-2.5.3-msw-ansi/wx/_core.py",
line 4, in ?
import _core_
ImportError: No module named _core_wxPython is installed in /usr/lib/python2.4/site-packages. wx.pth
contains wx-2.3.5-msw-ansi, or unicode as the case may be.
wx-2.3.5-msw-ansi/wx contains a _core_.pyd file but not _core_.py
file.
I'm a bit of a Python newbie so I don't know exactly what a .pyd file
is
and/or whether the absence of a corresponding .py file is important.
The .pyd file is a Python extension module in a DLL that can be loaded
by Python, although I think that the cygwin python will be looking for a
.so file instead. It probably also will need to have a cygwin
compatible object file format and link to different runtime libraries.
So you'll need to build a cygwin version of wxWidgets and also tweak
setup.py to allow a cygwin version of wxPython to be built to go with
it.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org