[Stackless] import dynamic module [pyd]

Suthat dot_st at yahoo.com
Fri Jul 6 18:29:24 CEST 2007


Thanks, Richard.

When I follow to your instructions and compiles with cygwin. It errors and can not completed compiled it. I should try compile with another compiler (MSVC++) , don't I?

Thank you,
Suthat

----- Original Message ----
From: Richard Tew <richard.m.tew at gmail.com>
To: Suthat (KMITL) <dot_st at yahoo.com>
Cc: stackless at stackless.com
Sent: Monday, July 2, 2007 3:58:54 PM
Subject: Re: [Stackless] import dynamic module [pyd]

On 7/1/07, Suthat (KMITL) <dot_st at yahoo.com> wrote:
> I compiled stackless python 2.5.1 with cygwin enviroment and install
> wxPython 2.6.3.3 in site-packages directory.
>
> When I try
>
> >>> import wx
> ....
> ImportError : No module named _core_
>
> What's wrong with my python.

Hello Suthat,

Sometimes when Python is compiled with one compiler (for instance gcc)
and extension modules like wxPython are compiled with another (for
instance Microsoft Visual C++) they are not compatible.  I would go
into further detail about this, but I have never had the time to look
into it in detail.

However, it might be that this should work fine, and that this is not
working is a problem with Stackless.

Here is one thing to try which should determine where the problem is.
It should compile the Stackless source code with all the Stackless
stuff turned off, which will make it just like normal Python.  If you
cannot import wx with that, then the problem is a general one with
using things compiled with Microsoft Visual C++, otherwise if you can
import wx, the problem is a general Stackless one.

1. Go into the Stackless source code, to the Stackless/stackless.h file.
2. Edit it and change "#define STACKLESS" to "#undef STACKLESS".
3. Recompile it.
4. Try to import wx again with the new version.

If you could try this and reply to the list with the results, it would
be much appreciated!

Cheers,
Richard.







      ____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20070706/5a32a383/attachment.htm>
-------------- next part --------------
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless


More information about the Stackless mailing list