Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've followed the instructions found here: and installed stackless. Stackless itself works, but unlike what the tutorial said I cannot import my python2.7 modules into the stackless python installation. What do I need to do to make it work?

Edit: When I try to import my old modules into stackless, for example:

>>>import pygame
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygame

Stackless can't find the module.

share|improve this question
"I cannot import my python2.7 modules" - what happens if you try? Adding the explicit (or even trivial) error may help. And where did you install the "my modules" on your system? Is it in any of the os.path elements you're supposed to add as mentioned in the tutorial? – gertvdijk Feb 5 '13 at 23:01
I edited my question to clarify. I followed all the steps in the tutorial. – Anonymous Entity Feb 5 '13 at 23:05

Edited the answer from the question.

There was an error in the tutorial, in the line

sudo ln -s /usr/lib/python2.7/dist-packages/ /opt/stackless/lib/python2.7/site-packages

When I removed the link, and instead ran

sudo ln -s /usr/lib/python2.7/dist-packages/ /opt/stackless/lib/python2.7/dist-packages

Everything worked as expected, and I now can import my old modules as usual within stackless python.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.