Re: linux install problem

Fábio Santos <[email protected]> Mon, 27 Jul 2015 22:01:07 +0000
Newsgroups gmane.comp.python.stackless
Message-ID <CAA=1kxSHWVBvzhssfJpbfmcxzs3RWLE6jSdspiuNo=-j3zqYLg@mail.gmail.com>
--===============2408494101679964156==
Content-Type: multipart/alternative; boundary=001a113f8eb6a0f47d051be27d0c

--001a113f8eb6a0f47d051be27d0c
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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.

2015-07-27 13:56 GMT+00:00 Jos Huisken <[email protected]>:

> Anselm Kruis <a.kruis@...> writes:
>
> >
> > 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 module=
s
> _md5, _sha, _sha256, _sha512. However they do exist. 'python -c "import
> _sha"' does not complain. Also I tried 'sudo pip install hashlib' which d=
id
> not help. And 'Cleaning up...' crashes:
> --snip--
> Command /usr/bin/python -c "import setuptools,
> tokenize;__file__=3D'/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=3D=3D1.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, i=
n
> main
>     text =3D '\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
>
>
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless
>



--=20
F=C3=A1bio Santos

--001a113f8eb6a0f47d051be27d0c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;ve been using pyenv (<a href=3D"https://github.com/y=
yuu/pyenv">https://github.com/yyuu/pyenv</a>) for a while, it&#39;s pretty =
good at installing several versions of python (including stackless!).<div><=
br></div><div>It also helps you isolate environments by setting a &#39;loca=
l&#39; version which will be tied to the directory you called &#39;pyenv lo=
cal&#39; on.</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_=
quote">2015-07-27 13:56 GMT+00:00 Jos Huisken <span dir=3D"ltr">&lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</=
a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .=
8ex;border-left:1px #ccc solid;padding-left:1ex">Anselm Kruis &lt;a.kruis@.=
..&gt; writes:<br>
<br>
&gt;<br>
&gt; Hi Lars,<br>
&gt;<br>
&gt; I didn&#39;t test the stackless-python package on Centos 7. It didn&#3=
9;t exist<br>
&gt; back then. For now, my only advice is to compile stackless yourself.<b=
r>
&gt;<br>
&gt; Regards<br>
&gt;=C2=A0 =C2=A0 Anselm<br>
&gt;<br>
<br>
Hi,<br>
<br>
I tried the same on Ubuntu 14.04 TLS<br>
<br>
My first try:<br>
- &#39;pip install --user stackless-python&#39; fails: it tries to write<br=
>
/usr/bin/slpython<br>
<br>
My second try:<br>
- &#39;sudo pip install stackless-python&#39; fails due to missing missing =
modules<br>
_md5, _sha, _sha256, _sha512. However they do exist. &#39;python -c &quot;i=
mport<br>
_sha&quot;&#39; does not complain. Also I tried &#39;sudo pip install hashl=
ib&#39; which did<br>
not help. And &#39;Cleaning up...&#39; crashes:<br>
--snip--<br>
Command /usr/bin/python -c &quot;import setuptools,<br>
tokenize;__file__=3D&#39;/tmp/pip_build_root/stackless-python/setup.py&#39;=
;<br>
exec(compile(getattr(tokenize,<br>
&#39;open&#39;, open)(__file__).read().replace(&#39;\r\n&#39;, &#39;\n&#39;=
), __file__, &#39;exec&#39;))&quot;<br>
install --record /tmp/pip-jc0H8l-record/install-record.txt<br>
--single-version-externally-managed --compile failed with error code 1 in<b=
r>
/tmp/pip_build_root/stackless-python<br>
Traceback (most recent call last):<br>
=C2=A0 File &quot;/usr/bin/pip&quot;, line 9, in &lt;module&gt;<br>
=C2=A0 =C2=A0 load_entry_point(&#39;pip=3D=3D1.5.4&#39;, &#39;console_scrip=
ts&#39;, &#39;pip&#39;)()<br>
=C2=A0 File &quot;/usr/lib/python2.7/dist-packages/pip/__init__.py&quot;, l=
ine 235, in main<br>
=C2=A0 =C2=A0 return command.main(cmd_args)<br>
=C2=A0 File &quot;/usr/lib/python2.7/dist-packages/pip/basecommand.py&quot;=
, line 161, in main<br>
=C2=A0 =C2=A0 text =3D &#39;\n&#39;.join(complete_log)<br>
UnicodeDecodeError: &#39;ascii&#39; codec can&#39;t decode byte 0xe2 in pos=
ition 70:<br>
ordinal not in range(128)<br>
--snip--<br>
<br>
Before I compiled everything myself, but I would appreciate if it can be<br=
>
done with pip (and pip3). It avoids duplication of many python modules<br>
on the system...<br>
<br>
BTW are there any advices/suggestions to combine regular python versions<br=
>
and stackless variants (besides using virtualenv)?<br>
<br>
Thanks,<br>
Jos<br>
<br>
<br>
_______________________________________________<br>
Stackless mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://www.stackless.com/mailman/listinfo/stackless" rel=3D"nore=
ferrer" target=3D"_blank">http://www.stackless.com/mailman/listinfo/stackle=
ss</a><br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature">F=C3=A1bio Santos</div>
</div>

--001a113f8eb6a0f47d051be27d0c--


--===============2408494101679964156==
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
--===============2408494101679964156==--