Re: Cherrypy older version installation error in Raspbian

Jibun no Kage <[email protected]> Mon, 13 May 2019 19:38:09 -0700 (PDT)
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
------=_Part_833_671345896.1557801489861
Content-Type: multipart/alternative; 
	boundary="----=_Part_834_567340771.1557801489862"

------=_Part_834_567340771.1557801489862
Content-Type: text/plain; charset="UTF-8"

Do not use GIT method.  It does not work.  Use pip install method on 
Raspbian.  The following works for me consistently.

# pip install cherrypy

Note!  my default pip is python3 because my default python is 3.5.3 on 
Raspbian.  The GIT installation method is now obsolete, and due to be 
removed from the documentation.

On Thursday, September 20, 2018 at 12:03:52 PM UTC-7, awais wrote:
>
> Hello,
>
> Hello,
>
> i am trying to install Lagarto Swap on my Raspbian Stretch OS but i am 
>> facing the error as below:
>> pi@raspberrypi:~/Downloads/python_tools-3.1.3/lagarto $ python lagarto.py
>> lagarto version 2.4 (Jan 28, 2015)
>> Running lagarto-swap
>> Traceback (most recent call last):
>> File "lagarto-swap/lagarto-swap.py", line 31, in <module>
>> from swapmanager import SwapManager
>> File 
>> "/home/pi/Downloads/python_tools-3.1.3/lagarto/lagarto-swap/swapmanager.py", 
>> line 46, in <module>
>> from lagartocomms import LagartoProcess
>> File 
>> "/home/pi/Downloads/python_tools-3.1.3/lagarto/lagarto/lagartocomms.py", 
>> line 28, in <module>
>> from lagartohttp import LagartoHttpServer
>> File 
>> "/home/pi/Downloads/python_tools-3.1.3/lagarto/lagarto/lagartohttp.py", 
>> line 31, in <module>
>> import cherrypy
>> File 
>> "/usr/local/lib/python2.7/dist-packages/CherryPy-18.0.1-py2.7.egg/cherrypy/__init__.py", 
>> line 66, in <module>
>> from ._cperror import (
>> File 
>> "/usr/local/lib/python2.7/dist-packages/CherryPy-18.0.1-py2.7.egg/cherrypy/_cperror.py", 
>> line 122, in <module>
>> import urllib.parse
>> ImportError: No module named parse
>
>
>
> now i am trying to install the older verison of Cherrypy and i directly 
> downloaded the zip file from https://github.com/cherrypy/cherrypy/releases and 
> then using Lx terminal using *python setup.py* but now i am facing these 
> errors
>
> pi@raspberrypi:~/Downloads/cherrypy-16.0.0 $ python setup.py
>> /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
>> distribution option: 'project_urls'
>> warnings.warn(msg)
>> Traceback (most recent call last):
>> File "setup.py", line 141, in <module>
>> main()
>> File "setup.py", line 137, in main
>> setuptools.setup(**setup_params)
>> File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
>> _setup_distribution = dist = klass(attrs)
>> File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 320, in 
>> __init__
>> _Distribution.__init__(self, attrs)
>> File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
>> self.finalize_options()
>> File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 387, in 
>> finalize_options
>> ep.load()(self, ep.name, value)
>> File 
>> "/home/pi/Downloads/cherrypy-16.0.0/.eggs/setuptools_scm-3.1.0-py2.7.egg/setuptools_scm/integration.py", 
>> line 23, in version_keyword
>> File 
>> "/home/pi/Downloads/cherrypy-16.0.0/.eggs/setuptools_scm-3.1.0-py2.7.egg/setuptools_scm/__init__.py", 
>> line 142, in get_version
>> File 
>> "/home/pi/Downloads/cherrypy-16.0.0/.eggs/setuptools_scm-3.1.0-py2.7.egg/setuptools_scm/__init__.py", 
>> line 111, in _do_parse
>> LookupError: setuptools-scm was unable to detect version for 
>> '/home/pi/Downloads/cherrypy-16.0.0'.
>> Make sure you're either building from a fully intact git repository or 
>> PyPI tarballs. Most other sources (such as GitHub's tarballs, a git 
>> checkout without the .git folder) don't contain the necessary metadata and 
>> will not work.
>> For example, if you're using pip, instead of 
>> https://github.com/user/proj/archive/master.zip use git+
>> https://github.com/user/proj.git#egg=proj
>
>
> i am totally new to raspbian and Panstamp and facing these errors.
>
> i even uninstalled python totaly and installed the newer version but still 
> there are errors.
> please tell me what is the fix :)
>

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/cherrypy-users/e8009951-1e67-43e7-8b1a-d58cf3483d50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

------=_Part_834_567340771.1557801489862
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Do not use GIT method.=C2=A0 It does not work.=C2=A0 Use p=
ip install method on Raspbian.=C2=A0 The following works for me consistentl=
y.<div><br></div><div># pip install cherrypy</div><div><br></div><div>Note!=
=C2=A0 my default pip is python3 because my default python is 3.5.3 on Rasp=
bian.=C2=A0 The GIT installation method is now obsolete, and due to be remo=
ved from the documentation.</div><div><br>On Thursday, September 20, 2018 a=
t 12:03:52 PM UTC-7, awais wrote:<blockquote class=3D"gmail_quote" style=3D=
"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex=
;">Hello,<div><br></div><div><span style=3D"color:rgb(0,0,0);font-family:Ve=
rdana,Arial,sans-serif;background-color:rgb(239,239,239)">Hello,</span><br =
style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-c=
olor:rgb(239,239,239)"><br style=3D"color:rgb(0,0,0);font-family:Verdana,Ar=
ial,sans-serif;background-color:rgb(239,239,239)"><blockquote class=3D"gmai=
l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20=
4,204);padding-left:1ex"><span style=3D"color:rgb(0,0,0);font-family:Verdan=
a,Arial,sans-serif;background-color:rgb(239,239,239)">i am trying to instal=
l Lagarto Swap on my Raspbian Stretch OS but i am facing the error as below=
:<br></span><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-=
serif;background-color:rgb(239,239,239)">pi@raspberrypi:~/Downloads/<wbr>py=
thon_tools-3.1.3/lagarto $ python lagarto.py<br></span><span style=3D"color=
:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,2=
39,239)">lagarto version 2.4 (Jan 28, 2015)<br></span><span style=3D"color:=
rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,23=
9,239)">Running lagarto-swap<br></span><span style=3D"color:rgb(0,0,0);font=
-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">Traceba=
ck (most recent call last):<br></span><span style=3D"color:rgb(0,0,0);font-=
family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">File &qu=
ot;lagarto-swap/lagarto-swap.py&quot;<wbr>, line 31, in &lt;module&gt;<br><=
/span><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;=
background-color:rgb(239,239,239)">from swapmanager import SwapManager<br><=
/span><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;=
background-color:rgb(239,239,239)">File &quot;/home/pi/Downloads/python_<wb=
r>tools-3.1.3/lagarto/lagarto-<wbr>swap/swapmanager.py&quot;, line 46, in &=
lt;module&gt;<br></span><span style=3D"color:rgb(0,0,0);font-family:Verdana=
,Arial,sans-serif;background-color:rgb(239,239,239)">from lagartocomms impo=
rt LagartoProcess<br></span><span style=3D"color:rgb(0,0,0);font-family:Ver=
dana,Arial,sans-serif;background-color:rgb(239,239,239)">File &quot;/home/p=
i/Downloads/python_<wbr>tools-3.1.3/lagarto/lagarto/<wbr>lagartocomms.py&qu=
ot;, line 28, in &lt;module&gt;<br></span><span style=3D"color:rgb(0,0,0);f=
ont-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">from=
 lagartohttp import LagartoHttpServer<br></span><span style=3D"color:rgb(0,=
0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)=
">File &quot;/home/pi/Downloads/python_<wbr>tools-3.1.3/lagarto/lagarto/<wb=
r>lagartohttp.py&quot;, line 31, in &lt;module&gt;<br></span><span style=3D=
"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb=
(239,239,239)">import cherrypy<br></span><span style=3D"color:rgb(0,0,0);fo=
nt-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">File =
&quot;/usr/local/lib/python2.7/<wbr>dist-packages/CherryPy-18.0.1-<wbr>py2.=
7.egg/cherrypy/__init__.<wbr>py&quot;, line 66, in &lt;module&gt;<br></span=
><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;backg=
round-color:rgb(239,239,239)">from ._cperror import (<br></span><span style=
=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color:=
rgb(239,239,239)">File &quot;/usr/local/lib/python2.7/<wbr>dist-packages/Ch=
erryPy-18.0.1-<wbr>py2.7.egg/cherrypy/_cperror.<wbr>py&quot;, line 122, in =
&lt;module&gt;<br></span><span style=3D"color:rgb(0,0,0);font-family:Verdan=
a,Arial,sans-serif;background-color:rgb(239,239,239)">import urllib.parse<b=
r></span><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-ser=
if;background-color:rgb(239,239,239)">ImportError: No module named parse</s=
pan></blockquote><div><br></div><div><br></div><div>now i am trying to inst=
all the older verison of Cherrypy and i directly downloaded the zip file fr=
om=C2=A0<a href=3D"https://github.com/cherrypy/cherrypy/releases" style=3D"=
color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:=
rgb(239,239,239)" target=3D"_blank" rel=3D"nofollow" onmousedown=3D"this.hr=
ef=3D&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherry=
py%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_s=
C2Tf1oE1sWABd5qg6A&#39;;return true;" onclick=3D"this.href=3D&#39;https://w=
ww.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Frel=
eases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&=
#39;;return true;">https://github.com/<wbr>cherrypy/cherrypy/releases</a>=
=C2=A0and then using Lx terminal using <u>python setup.py</u>=C2=A0but now =
i am facing these errors</div></div><div><br></div><div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><span style=3D"color:rgb(0,0,0);font-famil=
y:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">pi@raspberryp=
i:~/Downloads/<wbr>cherrypy-16.0.0 $ python setup.py<br></span><span style=
=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color:=
rgb(239,239,239)">/usr/lib/python2.7/distutils/<wbr>dist.py:267: UserWarnin=
g: Unknown distribution option: &#39;project_urls&#39;<br></span><span styl=
e=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color=
:rgb(239,239,239)">warnings.warn(msg)<br></span><span style=3D"color:rgb(0,=
0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)=
">Traceback (most recent call last):<br></span><span style=3D"color:rgb(0,0=
,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)"=
>File &quot;setup.py&quot;, line 141, in &lt;module&gt;<br></span><span sty=
le=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-colo=
r:rgb(239,239,239)">main()<br></span><span style=3D"color:rgb(0,0,0);font-f=
amily:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">File &quo=
t;setup.py&quot;, line 137, in main<br></span><span style=3D"color:rgb(0,0,=
0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">=
setuptools.setup(**setup_<wbr>params)<br></span><span style=3D"color:rgb(0,=
0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)=
">File &quot;/usr/lib/python2.7/distutils/<wbr>core.py&quot;, line 111, in =
setup<br></span><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,s=
ans-serif;background-color:rgb(239,239,239)">_setup_distribution =3D dist =
=3D klass(attrs)<br></span><span style=3D"color:rgb(0,0,0);font-family:Verd=
ana,Arial,sans-serif;background-color:rgb(239,239,239)">File &quot;/usr/lib=
/python2.7/dist-<wbr>packages/setuptools/dist.py&quot;, line 320, in __init=
__<br></span><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans=
-serif;background-color:rgb(239,239,239)">_Distribution.__init__(self, attr=
s)<br></span><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans=
-serif;background-color:rgb(239,239,239)">File &quot;/usr/lib/python2.7/dis=
tutils/<wbr>dist.py&quot;, line 287, in __init__<br></span><span style=3D"c=
olor:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(2=
39,239,239)">self.finalize_options()<br></span><span style=3D"color:rgb(0,0=
,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)"=
>File &quot;/usr/lib/python2.7/dist-<wbr>packages/setuptools/dist.py&quot;,=
 line 387, in finalize_options<br></span><span style=3D"color:rgb(0,0,0);fo=
nt-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">ep.lo=
ad()(self, <a href=3D"http://ep.name" target=3D"_blank" rel=3D"nofollow" on=
mousedown=3D"this.href=3D&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fe=
p.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA=
&#39;;return true;" onclick=3D"this.href=3D&#39;http://www.google.com/url?q=
\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwv=
uzf2kSJMnvW5zTZuFA&#39;;return true;">ep.name</a>, value)<br></span><span s=
tyle=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-co=
lor:rgb(239,239,239)">File &quot;/home/pi/Downloads/cherrypy-<wbr>16.0.0/.e=
ggs/setuptools_scm-3.<wbr>1.0-py2.7.egg/setuptools_scm/<wbr>integration.py&=
quot;, line 23, in version_keyword<br></span><span style=3D"color:rgb(0,0,0=
);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">F=
ile &quot;/home/pi/Downloads/cherrypy-<wbr>16.0.0/.eggs/setuptools_scm-3.<w=
br>1.0-py2.7.egg/setuptools_scm/_<wbr>_init__.py&quot;, line 142, in get_ve=
rsion<br></span><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,s=
ans-serif;background-color:rgb(239,239,239)">File &quot;/home/pi/Downloads/=
cherrypy-<wbr>16.0.0/.eggs/setuptools_scm-3.<wbr>1.0-py2.7.egg/setuptools_s=
cm/_<wbr>_init__.py&quot;, line 111, in _do_parse<br></span><span style=3D"=
color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(=
239,239,239)">LookupError: setuptools-scm was unable to detect version for =
&#39;/home/pi/Downloads/cherrypy-<wbr>16.0.0&#39;.</span><br style=3D"color=
:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,2=
39,239)"><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-ser=
if;background-color:rgb(239,239,239)">Make sure you&#39;re either building =
from a fully intact git repository or PyPI tarballs. Most other sources (su=
ch as GitHub&#39;s tarballs, a git checkout without the .git folder) don&#3=
9;t contain the necessary metadata and will not work.</span><br style=3D"co=
lor:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;background-color:rgb(23=
9,239,239)"><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-=
serif;background-color:rgb(239,239,239)">For example, if you&#39;re using p=
ip, instead of=C2=A0</span><a href=3D"https://github.com/user/proj/archive/=
master.zip" style=3D"color:rgb(2,108,177);font-family:Verdana,Arial,sans-se=
rif;background-color:rgb(239,239,239)" target=3D"_blank" rel=3D"nofollow" o=
nmousedown=3D"this.href=3D&#39;https://www.google.com/url?q\x3dhttps%3A%2F%=
2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x=
26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;" onclick=3D"t=
his.href=3D&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2F=
user%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCN=
ENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;">https://github.com/user/<wb=
r>proj/archive/master.zip</a><span style=3D"color:rgb(0,0,0);font-family:Ve=
rdana,Arial,sans-serif;background-color:rgb(239,239,239)">=C2=A0use git+<a =
href=3D"https://github.com/user/proj.git#egg=3Dproj" target=3D"_blank" rel=
=3D"nofollow" onmousedown=3D"this.href=3D&#39;https://www.google.com/url?q\=
x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sn=
tz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;" onc=
lick=3D"this.href=3D&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgith=
ub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQ=
jCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;">https://github.com/user/=
<wbr>proj.git#egg=3Dproj</a></span></blockquote><br style=3D"color:rgb(0,0,=
0);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)">=
<span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif;backgr=
ound-color:rgb(239,239,239)">i am totally new to raspbian and Panstamp and =
facing these errors.</span><br></div><div><span style=3D"color:rgb(0,0,0);f=
ont-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)"><br>=
</span></div><div><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial=
,sans-serif;background-color:rgb(239,239,239)">i even uninstalled python to=
taly and installed the newer version but still there are errors.</span></di=
v><div><span style=3D"color:rgb(0,0,0);font-family:Verdana,Arial,sans-serif=
;background-color:rgb(239,239,239)">please tell me what is the fix :)</span=
></div></blockquote></div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;cherrypy-users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:cherrypy-users+unsubscribe-/[email protected]">cher=
rypy-users+unsubscribe-/[email protected]</a>.<br />
To post to this group, send email to <a href=3D"mailto:cherrypy-users@googl=
egroups.com">cherrypy-users-/[email protected]</a>.<br />
Visit this group at <a href=3D"https://groups.google.com/group/cherrypy-use=
rs">https://groups.google.com/group/cherrypy-users</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/cherrypy-users/e8009951-1e67-43e7-8b1a-d58cf3483d50%40googlegrou=
ps.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/=
msgid/cherrypy-users/e8009951-1e67-43e7-8b1a-d58cf3483d50%40googlegroups.co=
m</a>.<br />
For more options, visit <a href=3D"https://groups.google.com/d/optout">http=
s://groups.google.com/d/optout</a>.<br />

------=_Part_834_567340771.1557801489862--

------=_Part_833_671345896.1557801489861--