Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've followed the instructions found here: http://architects.dzone.com/articles/install-stackless-python 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. –  user11177 Feb 5 '13 at 23:05
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.