Cherrypy older version installation error in Raspbian
awais <[email protected]> Thu, 20 Sep 2018 11:50:08 -0700 (PDT)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
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. For more options, visit https://groups.google.com/d/optout.