[Stackless] Import module errors with pip install

Richard Baron Penman richard.penman at gmail.com
Wed Nov 6 17:12:57 CET 2013


I installed stackless via pip on Ubuntu 13.04 but had difficulty
importing python2.7 modules:

$ pip install stackless-python

$ slpython2.7
Traceback (most recent call last):
  File "/usr/lib/python2.7/site.py", line 563, in <module>
  File "/usr/lib/python2.7/site.py", line 545, in main
    known_paths = addusersitepackages(known_paths)
  File "/usr/lib/python2.7/site.py", line 272, in addusersitepackages
    user_site = getusersitepackages()
  File "/usr/lib/python2.7/site.py", line 247, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/usr/lib/python2.7/site.py", line 237, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/usr/lib/python2.7/sysconfig.py", line 578, in get_config_var
    return get_config_vars().get(name)
  File "/usr/lib/python2.7/sysconfig.py", line 524, in get_config_vars
  File "/usr/lib/python2.7/sysconfig.py", line 408, in _init_posix
    from _sysconfigdata import build_time_vars
  File "/usr/lib/python2.7/_sysconfigdata.py", line 6, in <module>
    from _sysconfigdata_nd import *
ImportError: No module named _sysconfigdata_nd

$ cd /usr/lib/python2.7
$ ln -s plat-x86_64-linux-gnu/_sysconfigdata_nd.py .

$ slpython2.7
>>> import sys
>>> import csv
Traceback (most recent call last):
  File "runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/csv.py", line 7, in <module>
    from functools import reduce
  File "functools.py", line 10, in <module>
    from _functools import partial, reduce
ImportError: No module named _functools

Any idea how to get access to the python2.7 modules?


More information about the Stackless mailing list