Can't import Stackless in Pythonwin

Christian Tismer tismer at stackless.com
Thu Sep 20 22:57:44 EDT 2007


archaegeo at gmail.com wrote:
...

> But for pythonwin i get
>>>> import sys
>>>> print sys.version
> 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]
>>>> print sys.executable
> C:\Python25\Lib\site-packages\pythonwinPythonwin.exe
> 
> So does this mean stackless is not usable with pythonwin?

Your python<version>.dll needs to live in your <windows>\system32
directory (or in the current directory if you are running
  stackless temporarily).

If things are set up properly, you will
be able to import stackless from PythonWin.

Be aware of Stackless not being very stable on PythonWin, cause
it creates a new interpreter state after every input.
It works to some extent, but I did not test this for a longer time.
Also, it is quite likely that the debugger gets confused by tasklet
switching.

It seems to work pretty stable with wxpython and Boa constructor.
wxpython has a few problems, too, but they are easy to work around.
Contact me privately or on the stackless list if you need support.

> Also, is pythonwin needed for the win32 extensions and mfc?

yes.

cheers - chris
-- 
Christian Tismer             :^)   <mailto:tismer at stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56  mobile +49 173 24 18 776  fax +49 30 80 90 57 05
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
       whom do you want to sponsor today?   http://www.stackless.com/



More information about the Python-list mailing list