Hi Richard,

unfortunately I don't have an Ubuntu 13.04 system. Therefore I can't investigate the problem in detail. Except from the well known bug https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1115466 the PyPi stackless-python package could be incompatible with the Debian Python MultiArch Installation effort (https://wiki.debian.org/Python/MultiArch).

It might take a while until I have time to analyse the problem in detail. Would you mind to open an issue here https://bitbucket.org/akruis/slp-installer/issues/new. Please provide some details about your installation:
- do you use virtualenv?
- exact version of you python packages
  dpkg -l | grep -i '^ii.*python'

- output of
  python -S -c 'import sys; print repr(sys.path)'
  slpython -S -c 'import sys; print repr(sys.path)'
  find /usr/lib/python2.7 -type f


Regards
  Anselm




Am 06.11.2013 17:12, schrieb Richard Baron Penman:
Hello,

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>
     main()
   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
     _init_posix(_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?

Richard

_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless


--
 Dipl. Phys. Anselm Kruis                       science + computing ag
 Senior Solution Architect                      Ingolstädter Str. 22
 email [email protected]             80807 München, Germany
 phone +49 89 356386 874  fax 737               www.science-computing.de
--
Vorstandsvorsitzender/Chairman of the board of management:
Gerd-Lothar Leonhart
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196


_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to