[Stackless] Installation problem

Ray Gallagher omyar_hunt at yahoo.co.uk
Sun Jan 21 13:46:56 CET 2007

That's great, worked a treat, thanks a lot, that was driving me nuts. I also found some extra info and "virtual python"script which was really helpfule... so if for anyone who's interested...

How to install Stackless Python in it's own little sandbox.

1. Download the stackless source and build it (don't install it) - you will find that running python from this directory starts stackless just fine

2. download virtual_python.py (http://peak.telecommunity.com/dist/virtual-python.py) and run it with the stackless executable specifying where you want stackless to be installed. This will create a virtual installation of stackless python in your home directory, with appropriate symlinks to all the executables and libraries.

3. Grab ez_setup.py (http://peak.telecommunity.com/dist/ez_setup.py) and run this through your virtual (stackless) install.
3a. It will download and install the current version of easy_install and install it to the new virtual stackless dir.

4. Install something (I dunno - SQLAlchemy is a good place to start)

All this info was found at : http://peak.telecommunity.com/DevCenter/EasyInstall#custom-installation-locations

----- Original Message ----
From: Aleksandar Radulovic <maurice.chavez at gmail.com>
To: Ray Gallagher <omyar_hunt at yahoo.co.uk>
Cc: stackless at stackless.com
Sent: Wednesday, 17 January, 2007 9:15:54 AM
Subject: Re: [Stackless] Installation problem

Hi Ray,

You can install setuptools package to your stackless python
installation and get the easy_install tool to install additional
packages. Remember to install easy_install in a separate bin directory
away from your normal python.

Installing SQLAlchemy is a breeze with the tool, just by doing:
# /path/to/stackless/setuptools/easy_install sqlalchemy


On 1/15/07, Ray Gallagher <omyar_hunt at yahoo.co.uk> wrote:
> Hi folks. I'm new to stackless but already a big fan. I'm having a problem with installing third party libraries (particularly SQLAlchemy) in the Stackless context.
> I'm running Ubuntu, and had "normal?" Pyton installed through apt. Loads of packages are dependent on this Python, and when I went to install Stackless it broke everything. So I just left it compiled and running in a directory off my home directory. It works fine, but only using the default libraries that come with the Stackless distribution.
> As an example, I tried pointing PYTHONPATH at the library directory where SQLAlchemy was built. It imported, but trying to create an instance gave this error :
> NameError: global name 'CLIENT_FLAGS' is not defined
> which seems to mean a global variable the driver for that database replies on isn't set. So I assume the installation script need to be run properly in order to have it work.
> So my question is: how do I install third party Python libraries in this seperate Stackless installation?
> thanks,
> Ray
> ___________________________________________________________
> New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes.
> http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless

Pozdrav / Regards

All New Yahoo! Mail – Tired of unwanted email come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html

Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list