Re: linux install problem
lars van Gemerden <[email protected]> Wed, 17 Dec 2014 02:11:18 +0100
| Newsgroups | gmane.comp.python.stackless |
|---|---|
| Message-ID | <CAP8kt8wJb3GbiQ2iW1f-TB2S69QkoCEvCG1PVLR9pP4haFiW4g@mail.gmail.com> |
--===============1239101903348230715==
Content-Type: multipart/alternative; boundary=047d7b343638203192050a5f2795
--047d7b343638203192050a5f2795
Content-Type: text/plain; charset=UTF-8
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
On Mon, Dec 15, 2014 at 5:33 PM, lars van Gemerden <[email protected]>
wrote:
>
> Hi, I have a problem with stackless on RedHat/Linux (actually
> Centos/Linux). What what i do is:
>
> [lars@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...
> [lars@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
> [lars@localhost Desktop]$ export PYTHONHOME=/usr/lib/
> [lars@localhost Desktop]$ slpython2.7
> ImportError: No module named site
> [lars@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
> [email protected]
> +31 6 26 88 55 39
> ====================================
>
--
====================================
Lars van Gemerden
[email protected]
+31 6 26 88 55 39
====================================
--047d7b343638203192050a5f2795
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi, i compiled stackless and now I can start the interpret=
er. However when i want to create a virtual environment some modules seem t=
o be missing (virtualenv complains about zlib).<div><br></div><div>the inst=
all script i use is:</div><div><br></div><blockquote style=3D"margin:0 0 0 =
40px;border:none;padding:0px"><div>cd /tmp</div><div>wget <a href=3D"http:/=
/www.stackless.com/binaries/stackless-278-export.tar.bz2">http://www.stackl=
ess.com/binaries/stackless-278-export.tar.bz2</a></div><div>tar jxvf stackl=
ess-278-export.tar.bz2</div><div><br></div><div>cd stackless-278-export</di=
v><div>./configure --prefix=3D/usr/local/</div><div>make all</div><div>sudo=
make install</div></blockquote><div><br></div><div>a working stackless pyt=
hon install is now in /usr/local/bin/</div><div><br></div><div>When i use v=
irtualenv i use:</div><div><br></div><blockquote style=3D"margin:0 0 0 40px=
;border:none;padding:0px"><div><div>#!/bin/bash</div></div><div><div><br></=
div></div><div><div>target=3D"/home/lars/pyenv/$1"</div></div><di=
v><div><br></div></div><div><div>cd /usr/local/bin/</div></div><div><div>vi=
rtualenv -p python2.7 $target</div></div><div><div>echo "created virtu=
al python environment in $target"</div></div></blockquote><div><br></d=
iv><div>This gives the error:</div><div><br></div><blockquote style=3D"marg=
in:0 0 0 40px;border:none;padding:0px"><div><div>Running virtualenv with in=
terpreter /usr/local/bin/python2.7</div></div><div><div>Traceback (most rec=
ent call last):</div></div><div><div>=C2=A0 File "/usr/lib/python2.7/s=
ite-packages/virtualenv.py", line 17, in <module></div></div><di=
v><div>=C2=A0 =C2=A0 import zlib</div></div><div><div>ImportError: No modul=
e named zlib</div></div></blockquote><div><br></div><div>when i look in the=
make output i see the error:</div><div><br></div><blockquote style=3D"marg=
in:0 0 0 40px;border:none;padding:0px"><div><div>Python build finished, but=
the necessary bits to build these modules were not found:</div></div><div>=
<div>_bsddb =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 _curses =C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0_curses_panel =C2=A0=C2=A0</div></div><div><div=
>_sqlite3 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 _ssl =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 _tkinter =C2=A0 =C2=A0 =C2=A0 =C2=A0</div></div><d=
iv><div>bsddb185 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 bz2 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0dbm =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0=C2=A0</div></div><div><div>dl =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 gdbm =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
imageop =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0</div></div><div><div>readline =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sunaudiodev =C2=A0 =C2=A0 =C2=A0 =C2=A0z=
lib =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</div></div><div><div>To find =
the necessary bits, look in setup.py in detect_modules() for the module'=
;s name.</div></div></blockquote><div><div><br></div><div>Does this have so=
mething 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 th=
is?</div><div><br></div><div>Cheers, Lars</div><div><br></div></div><div><b=
r></div><div>=C2=A0<br></div></div><div class=3D"gmail_extra"><br><div clas=
s=3D"gmail_quote">On Mon, Dec 15, 2014 at 5:33 PM, lars van Gemerden <span =
dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">l=
[email protected]</a>></span> wrote:<blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><di=
v dir=3D"ltr">Hi, I have =C2=A0a problem with stackless on RedHat/Linux (ac=
tually Centos/Linux). What what i do is:<div><br></div><blockquote style=3D=
"margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>[lars@localhost=
Desktop]$ sudo pip install stackless-python</div><div>Downloading/unpackin=
g stackless-python</div><div>=C2=A0 Downloading stackless-python-10.0.tar.g=
z</div><div>=C2=A0 Running setup.py (path:/tmp/pip_build_root/stackless-pyt=
hon/setup.py) egg_info for package stackless-python</div><div>=C2=A0 =C2=A0=
=C2=A0</div><div>=C2=A0 =C2=A0 Installed /tmp/pip_build_root/stackless-pyth=
on/stackless_installer_C4_linux_x86_64-2.7.5.3-py2.7.egg</div><div>=C2=A0 =
=C2=A0=C2=A0</div><div>Installing collected packages: stackless-python</div=
><div>=C2=A0 Running setup.py install for stackless-python</div><div>=C2=A0=
=C2=A0 /usr/bin/python -c import sys;from pkg_resources import load_entry_=
point;sys.exit(load_entry_point('stackless_installer_C4_linux_x86_64=
9;, 'console_scripts', 'install-stackless')())</div><div>=
=C2=A0 =C2=A0 Stackless installer: install successfully completed</div><div=
>=C2=A0 =C2=A0 Installed Stackless Python</div><div>=C2=A0 =C2=A0=C2=A0</di=
v><div>Successfully installed stackless-python</div><div>Cleaning up...</di=
v><div>[lars@localhost Desktop]$ slpython2.7</div><div>Could not find platf=
orm independent libraries <prefix></div><div>Could not find platform =
dependent libraries <exec_prefix></div><div>Consider setting $PYTHONH=
OME to <prefix>[:<exec_prefix>]</div><div>ImportError: No modul=
e named site</div><div>[lars@localhost Desktop]$ export PYTHONHOME=3D/usr/l=
ib/</div><div>[lars@localhost Desktop]$ slpython2.7<br></div><div>ImportErr=
or: No module named site</div><div>[lars@localhost Desktop]$ python</div><d=
iv>ImportError: No module named site</div></div><div><br></div></blockquote=
>I am using a new install of:<div><br></div><div>Windows7->VirtualBox4.3=
->Centos7, all 64 bits</div><div><br></div><div>The pre-installed versio=
n of python is 2.7.5</div><div><br></div><div>I am new to linux so it might=
something i do wrong or is there a problem with the install script? How ca=
n i fix this?</div><div><br></div><div>Cheers, Lars</div><span class=3D"HOE=
nZb"><font color=3D"#888888"><div><br></div><div>=C2=A0<br><div><div><br></=
div>-- <br><div>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>Lars van Gemerden<br=
><a href=3D"mailto:[email protected]" target=3D"_blank">lars@rational-it=
.com</a><br>+31 6 26 88 55 39<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</div>
</div></div></font></span></div>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div class=3D"gm=
ail_signature">=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>Lars van Gemerden<br><a=
href=3D"mailto:[email protected]">[email protected]</a><br>+31 6 26 =
88 55 39<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</div>
</div>
--047d7b343638203192050a5f2795--
--===============1239101903348230715==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless
--===============1239101903348230715==--