Discussion:
[Stackless] linux install problem
lars van Gemerden
2014-12-15 16:33:01 UTC
Permalink
Hi, I have a problem with stackless on RedHat/Linux (actually
Centos/Linux). What what i do is:

[***@localhost Desktop]$ sudo pip install stackless-python
Downloading/unpacking stackless-python
Downloading stackless-python-10.0.tar.gz
Running setup.py (path:/tmp/pip_build_root/stackless-python/setup.py)
egg_info for package stackless-python

Installed
/tmp/pip_build_root/stackless-python/stackless_installer_C4_linux_x86_64-2.7.5.3-py2.7.egg

Installing collected packages: stackless-python
Running setup.py install for stackless-python
/usr/bin/python -c import sys;from pkg_resources import
load_entry_point;sys.exit(load_entry_point('stackless_installer_C4_linux_x86_64',
'console_scripts', 'install-stackless')())
Stackless installer: install successfully completed
Installed Stackless Python

Successfully installed stackless-python
Cleaning up...
[***@localhost Desktop]$ slpython2.7
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
[***@localhost Desktop]$ export PYTHONHOME=/usr/lib/
[***@localhost Desktop]$ slpython2.7
ImportError: No module named site
[***@localhost Desktop]$ python
ImportError: No module named site

I am using a new install of:

Windows7->VirtualBox4.3->Centos7, all 64 bits

The pre-installed version of python is 2.7.5

I am new to linux so it might something i do wrong or is there a problem
with the install script? How can i fix this?

Cheers, Lars
--
====================================
Lars van Gemerden
***@rational-it.com
+31 6 26 88 55 39
====================================
lars van Gemerden
2014-12-17 01:11:18 UTC
Permalink
Hi, i compiled stackless and now I can start the interpreter. However when
i want to create a virtual environment some modules seem to be missing
(virtualenv complains about zlib).

the install script i use is:

cd /tmp
wget http://www.stackless.com/binaries/stackless-278-export.tar.bz2
tar jxvf stackless-278-export.tar.bz2

cd stackless-278-export
./configure --prefix=/usr/local/
make all
sudo make install


a working stackless python install is now in /usr/local/bin/

When i use virtualenv i use:

#!/bin/bash

target="/home/lars/pyenv/$1"

cd /usr/local/bin/
virtualenv -p python2.7 $target
echo "created virtual python environment in $target"


This gives the error:

Running virtualenv with interpreter /usr/local/bin/python2.7
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 17, in
<module>
import zlib
ImportError: No module named zlib


when i look in the make output i see the error:

Python build finished, but the necessary bits to build these modules were
not found:
_bsddb _curses _curses_panel
_sqlite3 _ssl _tkinter
bsddb185 bz2 dbm
dl gdbm imageop
readline sunaudiodev zlib
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.


Does this have something to do with the way i install stackless or use
virtualenv or is this a bug in the downloaded installation files? Can
anyone see a way to fix this?

Cheers, Lars
Post by lars van Gemerden
Hi, I have a problem with stackless on RedHat/Linux (actually
Downloading/unpacking stackless-python
Downloading stackless-python-10.0.tar.gz
Running setup.py (path:/tmp/pip_build_root/stackless-python/setup.py)
egg_info for package stackless-python
Installed
/tmp/pip_build_root/stackless-python/stackless_installer_C4_linux_x86_64-2.7.5.3-py2.7.egg
Installing collected packages: stackless-python
Running setup.py install for stackless-python
/usr/bin/python -c import sys;from pkg_resources import
load_entry_point;sys.exit(load_entry_point('stackless_installer_C4_linux_x86_64',
'console_scripts', 'install-stackless')())
Stackless installer: install successfully completed
Installed Stackless Python
Successfully installed stackless-python
Cleaning up...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
ImportError: No module named site
ImportError: No module named site
Windows7->VirtualBox4.3->Centos7, all 64 bits
The pre-installed version of python is 2.7.5
I am new to linux so it might something i do wrong or is there a problem
with the install script? How can i fix this?
Cheers, Lars
--
====================================
Lars van Gemerden
+31 6 26 88 55 39
====================================
--
====================================
Lars van Gemerden
***@rational-it.com
+31 6 26 88 55 39
====================================
Richard Tew
2014-12-17 03:10:30 UTC
Permalink
I have no idea about the pypi stackless-python package, that's some
magic shit to me.

But your current problem is a Python problem not a stackless problem -
for it and any subsequent ones just google without including stackless
as a keyword and you should find immediate help.

http://stackoverflow.com/questions/12344970/building-python-from-source-with-zlib-support
Post by lars van Gemerden
Hi, i compiled stackless and now I can start the interpreter. However when
i want to create a virtual environment some modules seem to be missing
(virtualenv complains about zlib).
cd /tmp
wget http://www.stackless.com/binaries/stackless-278-export.tar.bz2
tar jxvf stackless-278-export.tar.bz2
cd stackless-278-export
./configure --prefix=/usr/local/
make all
sudo make install
a working stackless python install is now in /usr/local/bin/
#!/bin/bash
target="/home/lars/pyenv/$1"
cd /usr/local/bin/
virtualenv -p python2.7 $target
echo "created virtual python environment in $target"
Running virtualenv with interpreter /usr/local/bin/python2.7
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 17, in
<module>
import zlib
ImportError: No module named zlib
Python build finished, but the necessary bits to build these modules were
_bsddb _curses _curses_panel
_sqlite3 _ssl _tkinter
bsddb185 bz2 dbm
dl gdbm imageop
readline sunaudiodev zlib
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.
Does this have something to do with the way i install stackless or use
virtualenv or is this a bug in the downloaded installation files? Can
anyone see a way to fix this?
Cheers, Lars
Post by lars van Gemerden
Hi, I have a problem with stackless on RedHat/Linux (actually
Downloading/unpacking stackless-python
Downloading stackless-python-10.0.tar.gz
Running setup.py (path:/tmp/pip_build_root/stackless-python/setup.py)
egg_info for package stackless-python
Installed
/tmp/pip_build_root/stackless-python/stackless_installer_C4_linux_x86_64-2.7.5.3-py2.7.egg
Installing collected packages: stackless-python
Running setup.py install for stackless-python
/usr/bin/python -c import sys;from pkg_resources import
load_entry_point;sys.exit(load_entry_point('stackless_installer_C4_linux_x86_64',
'console_scripts', 'install-stackless')())
Stackless installer: install successfully completed
Installed Stackless Python
Successfully installed stackless-python
Cleaning up...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
ImportError: No module named site
ImportError: No module named site
Windows7->VirtualBox4.3->Centos7, all 64 bits
The pre-installed version of python is 2.7.5
I am new to linux so it might something i do wrong or is there a problem
with the install script? How can i fix this?
Cheers, Lars
--
====================================
Lars van Gemerden
+31 6 26 88 55 39
====================================
--
====================================
Lars van Gemerden
+31 6 26 88 55 39
====================================
Anselm Kruis
2014-12-19 14:28:29 UTC
Permalink
Hi Lars,

I didn't test the stackless-python package on Centos 7. It didn't exist
back then. For now, my only advice is to compile stackless yourself.

Regards
Anselm
Post by lars van Gemerden
Hi, I have a problem with stackless on RedHat/Linux (actually
Downloading/unpacking stackless-python
Downloading stackless-python-10.0.tar.gz
Running setup.py (path:/tmp/pip_build_root/stackless-python/setup.py)
egg_info for package stackless-python
Installed
/tmp/pip_build_root/stackless-python/stackless_installer_C4_linux_x86_64-2.7.5.3-py2.7.egg
Installing collected packages: stackless-python
Running setup.py install for stackless-python
/usr/bin/python -c import sys;from pkg_resources import
load_entry_point;sys.exit(load_entry_point('stackless_installer_C4_linux_x86_64',
'console_scripts', 'install-stackless')())
Stackless installer: install successfully completed
Installed Stackless Python
Successfully installed stackless-python
Cleaning up...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
ImportError: No module named site
ImportError: No module named site
Windows7->VirtualBox4.3->Centos7, all 64 bits
The pre-installed version of python is 2.7.5
I am new to linux so it might something i do wrong or is there a problem
with the install script? How can i fix this?
Cheers, Lars
Hi, I have a problem with stackless on RedHat/Linux (actually
Downloading/unpacking stackless-python
Downloading stackless-python-10.0.tar.gz
Running setup.py
(path:/tmp/pip_build_root/stackless-python/setup.py) egg_info for
package stackless-python
Installed
/tmp/pip_build_root/stackless-python/stackless_installer_C4_linux_x86_64-2.7.5.3-py2.7.egg
Installing collected packages: stackless-python
Running setup.py install for stackless-python
/usr/bin/python -c import sys;from pkg_resources import
load_entry_point;sys.exit(load_entry_point('stackless_installer_C4_linux_x86_64',
'console_scripts', 'install-stackless')())
Stackless installer: install successfully completed
Installed Stackless Python
Successfully installed stackless-python
Cleaning up...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
ImportError: No module named site
ImportError: No module named site
Windows7->VirtualBox4.3->Centos7, all 64 bits
The pre-installed version of python is 2.7.5
I am new to linux so it might something i do wrong or is there a problem
with the install script? How can i fix this?
Cheers, Lars
--
====================================
Lars van Gemerden
+31 6 26 88 55 39
====================================
_______________________________________________
Stackless mailing list
http://www.stackless.com/mailman/listinfo/stackless
--
Dipl. Phys. Anselm Kruis science + computing ag
Senior Solution Architect Ingolstädter Str. 22
email ***@science-computing.de 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
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
lars van Gemerden
2014-12-20 13:23:52 UTC
Permalink
Thanks for the replies, i did compile stackless myself and i have got it
working now.

(Centos is derived from RedHat)

For future reference: i currently use the following scripts:

For installation:
---------------------------------------------------------
#!/bin/bash

#required linux libraries
yum -y groupinstall "Development tools"

yum -y install zlib-devel
yum -y install bzip2-devel
yum -y install openssl-devel
yum -y install ncurses-devel
yum -y install sqlite-devel

#download & decompress
cd /tmp
wget http://www.stackless.com/binaries/stackless-278-export.tar.bz2
tar jxvf stackless-278-export.tar.bz2

#compile & install
cd stackless-278-export
./configure --prefix=/usr/local
make all
sudo make altinstall

#installing virtualenv
pip install virtualenv
---------------------------------------------------------

And for creating a virtual environment (one argument: environment name):
---------------------------------------------------------
#!/bin/bash

target="/home/lars/pyenv/$1"
sqla_version="0.8.3"
bottle_version="0.11.6"

#creating virtual python environment
virtualenv -p /usr/local/bin/python2.7 $target #stackless

#installing modules
$target/bin/pip install -I sqlalchemy==$sqla_version
$target/bin/pip install -I bottle==$bottle_version
---------------------------------------------------------

e.g. to start the python interpreter interactive prompt (I never got
"activate" for the environment to work, but i don't need it so ...):

$/home/lars/pyenv/[env_name]/python

It does not touch the pre-installed python version.

Far from perfect I am sure, but it works for now.

Cheers, Lars
Post by Anselm Kruis
Hi Lars,
I didn't test the stackless-python package on Centos 7. It didn't exist
back then. For now, my only advice is to compile stackless yourself.
Regards
Anselm
Post by lars van Gemerden
Hi, I have a problem with stackless on RedHat/Linux (actually
Downloading/unpacking stackless-python
Downloading stackless-python-10.0.tar.gz
Running setup.py (path:/tmp/pip_build_root/stackless-python/setup.py)
egg_info for package stackless-python
Installed
/tmp/pip_build_root/stackless-python/stackless_installer_C4_
linux_x86_64-2.7.5.3-py2.7.egg
Installing collected packages: stackless-python
Running setup.py install for stackless-python
/usr/bin/python -c import sys;from pkg_resources import
load_entry_point;sys.exit(load_entry_point('stackless_
installer_C4_linux_x86_64',
'console_scripts', 'install-stackless')())
Stackless installer: install successfully completed
Installed Stackless Python
Successfully installed stackless-python
Cleaning up...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
ImportError: No module named site
ImportError: No module named site
Windows7->VirtualBox4.3->Centos7, all 64 bits
The pre-installed version of python is 2.7.5
I am new to linux so it might something i do wrong or is there a problem
with the install script? How can i fix this?
Cheers, Lars
Hi, I have a problem with stackless on RedHat/Linux (actually
Downloading/unpacking stackless-python
Downloading stackless-python-10.0.tar.gz
Running setup.py
(path:/tmp/pip_build_root/stackless-python/setup.py) egg_info for
package stackless-python
Installed
/tmp/pip_build_root/stackless-python/stackless_installer_C4_
linux_x86_64-2.7.5.3-py2.7.egg
Installing collected packages: stackless-python
Running setup.py install for stackless-python
/usr/bin/python -c import sys;from pkg_resources import
load_entry_point;sys.exit(load_entry_point('stackless_
installer_C4_linux_x86_64',
'console_scripts', 'install-stackless')())
Stackless installer: install successfully completed
Installed Stackless Python
Successfully installed stackless-python
Cleaning up...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
ImportError: No module named site
ImportError: No module named site
Windows7->VirtualBox4.3->Centos7, all 64 bits
The pre-installed version of python is 2.7.5
I am new to linux so it might something i do wrong or is there a problem
with the install script? How can i fix this?
Cheers, Lars
--
====================================
Lars van Gemerden
+31 6 26 88 55 39
====================================
_______________________________________________
Stackless mailing list
http://www.stackless.com/mailman/listinfo/stackless
--
Dipl. Phys. Anselm Kruis science + computing ag
Senior Solution Architect IngolstÀdter Str. 22
phone +49 89 356386 874 fax 737 www.science-computing.de
--
Gerd-Lothar Leonhart
Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz
Vorsitzender des Aufsichtsrats/
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
_______________________________________________
Stackless mailing list
http://www.stackless.com/mailman/listinfo/stackless
--
====================================
Lars van Gemerden
***@rational-it.com
+31 6 26 88 55 39
====================================
Anselm Kruis
2015-02-20 22:27:02 UTC
Permalink
Hello,

Unfortunately broken MSI installers for Stackless 2.7.9 were available for download at www.stackless.com for the last view days. These installers use the same product UUID as the regular C-Python installers and might harm an existing C-Python 2.7.9 installation.

In case you downloaded one of the files
python-2.7.9150-stackless.msi (19566592 bytes, md5 8324cef195db0293223a00692fd6abc6) or
python-2.7.9150.amd64-stackless.msi (20107264 bytes, md5 5f63cc791aca1037c190f7d0af9d03a9)
please delete it. Updated versions will be available within the next two days.

Kind regards,
Anselm
--
Dipl. Phys. Anselm Kruis science + computing ag
Senior Solution Architect Ingolstädter Str. 22
email ***@science-computing.de 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
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Philippe Miltin
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196
Jos Huisken
2015-07-27 13:56:58 UTC
Permalink
Post by Anselm Kruis
Hi Lars,
I didn't test the stackless-python package on Centos 7. It didn't exist
back then. For now, my only advice is to compile stackless yourself.
Regards
Anselm
Hi,

I tried the same on Ubuntu 14.04 TLS

My first try:
- 'pip install --user stackless-python' fails: it tries to write
/usr/bin/slpython

My second try:
- 'sudo pip install stackless-python' fails due to missing missing modules
_md5, _sha, _sha256, _sha512. However they do exist. 'python -c "import
_sha"' does not complain. Also I tried 'sudo pip install hashlib' which did
not help. And 'Cleaning up...' crashes:
--snip--
Command /usr/bin/python -c "import setuptools,
tokenize;__file__='/tmp/pip_build_root/stackless-python/setup.py';
exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-jc0H8l-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1 in
/tmp/pip_build_root/stackless-python
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 235, in main
return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 70:
ordinal not in range(128)
--snip--

Before I compiled everything myself, but I would appreciate if it can be
done with pip (and pip3). It avoids duplication of many python modules
on the system...

BTW are there any advices/suggestions to combine regular python versions
and stackless variants (besides using virtualenv)?

Thanks,
Jos
Fábio Santos
2015-07-27 22:01:07 UTC
Permalink
I've been using pyenv (https://github.com/yyuu/pyenv) for a while, it's
pretty good at installing several versions of python (including stackless!).

It also helps you isolate environments by setting a 'local' version which
will be tied to the directory you called 'pyenv local' on.
Post by Jos Huisken
Post by Anselm Kruis
Hi Lars,
I didn't test the stackless-python package on Centos 7. It didn't exist
back then. For now, my only advice is to compile stackless yourself.
Regards
Anselm
Hi,
I tried the same on Ubuntu 14.04 TLS
- 'pip install --user stackless-python' fails: it tries to write
/usr/bin/slpython
- 'sudo pip install stackless-python' fails due to missing missing modules
_md5, _sha, _sha256, _sha512. However they do exist. 'python -c "import
_sha"' does not complain. Also I tried 'sudo pip install hashlib' which did
--snip--
Command /usr/bin/python -c "import setuptools,
tokenize;__file__='/tmp/pip_build_root/stackless-python/setup.py';
exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-jc0H8l-record/install-record.txt
--single-version-externally-managed --compile failed with error code 1 in
/tmp/pip_build_root/stackless-python
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 235, in main
return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
ordinal not in range(128)
--snip--
Before I compiled everything myself, but I would appreciate if it can be
done with pip (and pip3). It avoids duplication of many python modules
on the system...
BTW are there any advices/suggestions to combine regular python versions
and stackless variants (besides using virtualenv)?
Thanks,
Jos
_______________________________________________
Stackless mailing list
http://www.stackless.com/mailman/listinfo/stackless
--
Fábio Santos
Loading...