473,695 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't import Stackless in Pythonwin

I am getting started in Python, and I have looked on both the
stackless page and python.org and cannot find the answer to what I
think is a simple problem.

If I start the python command line or idle, i can
>>>import stackless
If I start pythonwin I get the following error
....No Module named Stackless

Any help?

Feb 9 '07 #1
3 2974
En Fri, 09 Feb 2007 13:50:56 -0300, <ar*******@gmai l.comescribió:
I am getting started in Python, and I have looked on both the
stackless page and python.org and cannot find the answer to what I
think is a simple problem.

If I start the python command line or idle, i can
>>>import stackless

If I start pythonwin I get the following error
...No Module named Stackless

Any help?
Maybe they are different versions, or installed on different places.

In those three environments, execute:

import sys
print sys.version
print sys.executable

All should report the same version.
The executables for both python and IDLE should reside on the same
directory; for pythonwin, you should get the *same* directory plus
"Lib\site-packages\python win\Pythonwin.e xe"

--
Gabriel Genellina

Feb 9 '07 #2
On Feb 9, 2:06 pm, "Gabriel Genellina" <gagsl...@yahoo .com.arwrote:
En Fri, 09 Feb 2007 13:50:56 -0300, <archae...@gmai l.comescribió:
I am getting started in Python, and I have looked on both the
stackless page and python.org and cannot find the answer to what I
think is a simple problem.
If I start the python command line or idle, i can
>>import stackless
If I start pythonwin I get the following error
...No Module named Stackless
Any help?

Maybe they are different versions, or installed on different places.

In those three environments, execute:

import sys
print sys.version
print sys.executable

All should report the same version.
The executables for both python and IDLE should reside on the same
directory; for pythonwin, you should get the *same* directory plus
"Lib\site-packages\python win\Pythonwin.e xe"

--
Gabriel Genellina
Ok, for Idle I get:
IDLE 1.2
>>import sys
print sys.version
2.5 Stackless 3.1b3 060516 (python-2.5:53557:53567 , Jan 25 2007,
22:01:46) [MSC v.1310 32 bit (Intel)]
>>print sys.executable
C:\Python25\pyt honw.exe
>>>
And for the command line i get the same thing except the executable is
python.exe

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\python win\Pythonwin.e xe
>>>
So does this mean stackless is not usable with pythonwin?

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

Thanks
Feb 10 '07 #3
ar*******@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\python winPythonwin.ex e

So does this mean stackless is not usable with pythonwin?
Your python<version> .dll needs to live in your <windows>\syste m32
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:ti****@ 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/
Sep 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8657
by: Dennis | last post by:
The setup: Windows XP Pro Python 2.3 GTK+ 2.2.1.2 and pyGTK 1.99.17 for Python 2.3 from http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ I've downloaded and installed per the instructions the pyGTK and GTK+ for win32 from the above locations. Folowing the instructions, I import pygtk first, run pygtk.require('2.0') second and then import
10
8976
by: GrayGeek | last post by:
After cx_Oracle and the related Oracle tools for Python 2.2.3 + Boa-constructor on Win2000, I added "import cx_Oracle" to the top of a test script. It gives me an error about being unable to find the OCISetDefault entry point in 'oci.dll'. Google says nothing about this error, and neither does the cx_Oracle author. Anyone have a solution for this problem? --
0
1242
by: Christian Tismer | last post by:
Hi Stackless friends, There is a small update of the Stackless web site. The binaries are updated, the CVS address is corrected, and a few words about the Stackless Python Alliance to be founded are there. Also there is a link to the new Zope demo page on the new server. http://www.stackless.com/
0
1141
by: Christian Tismer | last post by:
Dear friends, there have been so many changes, additions, contributions and discussion of Stackless in the last few days, that I did an update of the website and created new binaries as well. There also were some kind people who sent some money via PayPal. I would like to thank these, and encourage others to follow their example. Everybody is listed in the sponsors page.
7
1686
by: Christian Tismer | last post by:
New Win32 binaries have been uploaded to the Stackless website. Some compatibility issues with certain constructors have been solved. Please let me know of any problems. more to come soon - cheers -- chris -- Christian Tismer :^) <mailto:tismer@stackless.com>
0
1202
by: Dmitry Borisov | last post by:
> This is true. For performance comparison reasons, and to make > Stackless "complete" in a way, I just developed real thread support > and measured context switch speed. Now it is not longer a claim, > but the truth (going to be Stackless 3.1): > > Stackless soft-switched channels are 10 times faster than > using real threads. > > Stackless tasklets are 10000 times smaller than threads on Windows. >
11
2659
by: binarybana | last post by:
After recently getting excited about the possibilities that stackless python has to offer (http://harkal.sylphis3d.com/2005/08/10/multithreaded-game-scripting-with-stackless-python/) and then discovering that the most recent version of stackless available on stackless.com was for python 2.2 I am wondering if Stackless is dead/declining and if so, are there any viable alternatives that exist today? I found LGT http://lgt.berlios.de/ but...
17
5405
by: mohan | last post by:
Hi Guys, I've been using the following IDE, "Pythonwin - Python IDE and GUI Framework for Windows. Copyright 1994-2001 Mark Hammond " With respect to my work, I had created my own modules (.py files) in drives and folders other than the python root. I know that if I need to
3
7269
by: jrh | last post by:
Hello, From previous posts and documentation it seems python should be able to import a module that is compiled into a .dll just as well as a .pyd. I have a pyd that works fine, but after renaming it to dll the import fails. Running python with -vv flag indicates it doesn't actually look for the dll (see below). Has dll import been defeatured in python? Thanks!
0
8623
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6488
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4339
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2997
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.