Cherrypy older version installation error in Raspbian

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Cherrypy older version installation error in Raspbian

awais umar
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cherrypy older version installation error in Raspbian

Sviatoslav Sydorenko (@webknjaz)
1) you need to install it from within python3 env, from your log I see that you use python2.7, which is not supported since v18.0.0 anymore. try using `pip3` (or `python3.7 -m pip install cherrypy`) instead of just `pip`, or whatever works in your env. I recommend you to learn how to run correct python and use virtualenvs.
2) don't run `setup.py` manually. always use `pip`, you might want to upgrade pip and setuptools before using it.
3) don't use GitHub Releases. The officially packaged distribution resides on PyPI.

четвер, 20 вересня 2018 р. 21:03:52 UTC+2 користувач awais написав:
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 <a href="https://github.com/cherrypy/cherrypy/releases" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;">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, <a href="http://ep.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;">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 <a href="https://github.com/user/proj/archive/master.zip" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;">https://github.com/user/proj/archive/master.zip use git+<a href="https://github.com/user/proj.git#egg=proj" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cherrypy older version installation error in Raspbian

awais umar
thanks for your response,
i saw these log files and then uninstalled python from my system completely and then installed python 3.5.3 but after that when i check the version using python --version i saw again version 2.7 .
then i used python3 --version and saw the newly installed version.
so apparently now i have both version installed on my system i dont know why i could not uninstall the older version,
regarding cherrypy i have installed the newer version using pip3 but again when i try to install the cherrypy i got the above logs that i have pasted already.
dont know how do i get ride of this older version.that's why i took the 2nd approach to install the older version of cherrypy so that which is compatible with python 2.7 but i dont know how do i install it.,
i could not find any download links except the github repository .
if you see there is no download link on here https://pypi.org/project/CherryPy/17.0.0/
and then i downloaded it from Github Repository but i whenever i used pip or pip3 it installs the latest version of cherrypy.
so now i want either latest version of python or older version of cherrypy

On Friday, September 21, 2018 at 12:55:02 AM UTC+2, Sviatoslav Sydorenko (@webknjaz) wrote:
1) you need to install it from within python3 env, from your log I see that you use python2.7, which is not supported since v18.0.0 anymore. try using `pip3` (or `python3.7 -m pip install cherrypy`) instead of just `pip`, or whatever works in your env. I recommend you to learn how to run correct python and use virtualenvs.
2) don't run `setup.py` manually. always use `pip`, you might want to upgrade pip and setuptools before using it.
3) don't use GitHub Releases. The officially packaged distribution resides on PyPI.

четвер, 20 вересня 2018 р. 21:03:52 UTC+2 користувач awais написав:
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 <a href="https://github.com/cherrypy/cherrypy/releases" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;">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, <a href="http://ep.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;">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 <a href="https://github.com/user/proj/archive/master.zip" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;">https://github.com/user/proj/archive/master.zip use git+<a href="https://github.com/user/proj.git#egg=proj" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cherrypy older version installation error in Raspbian

awais umar
Hello,
[UPDATE]

as you suggested to install cherrypy using pythom virtual environment ,so i did that and then i installed cherrpy while remaining in the virtual environment but still the logs saying that its installing in the folder containing python 2.7


On Friday, September 21, 2018 at 3:10:12 AM UTC+2, awais wrote:
thanks for your response,
i saw these log files and then uninstalled python from my system completely and then installed python 3.5.3 but after that when i check the version using python --version i saw again version 2.7 .
then i used python3 --version and saw the newly installed version.
so apparently now i have both version installed on my system i dont know why i could not uninstall the older version,
regarding cherrypy i have installed the newer version using pip3 but again when i try to install the cherrypy i got the above logs that i have pasted already.
dont know how do i get ride of this older version.that's why i took the 2nd approach to install the older version of cherrypy so that which is compatible with python 2.7 but i dont know how do i install it.,
i could not find any download links except the github repository .
if you see there is no download link on here <a href="https://pypi.org/project/CherryPy/17.0.0/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpypi.org%2Fproject%2FCherryPy%2F17.0.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFCgkO97DAQpLcmSFlWzcdHcoJOeQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpypi.org%2Fproject%2FCherryPy%2F17.0.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFCgkO97DAQpLcmSFlWzcdHcoJOeQ&#39;;return true;">https://pypi.org/project/CherryPy/17.0.0/
and then i downloaded it from Github Repository but i whenever i used pip or pip3 it installs the latest version of cherrypy.
so now i want either latest version of python or older version of cherrypy

On Friday, September 21, 2018 at 12:55:02 AM UTC+2, Sviatoslav Sydorenko (@webknjaz) wrote:
1) you need to install it from within python3 env, from your log I see that you use python2.7, which is not supported since v18.0.0 anymore. try using `pip3` (or `python3.7 -m pip install cherrypy`) instead of just `pip`, or whatever works in your env. I recommend you to learn how to run correct python and use virtualenvs.
2) don't run `setup.py` manually. always use `pip`, you might want to upgrade pip and setuptools before using it.
3) don't use GitHub Releases. The officially packaged distribution resides on PyPI.

четвер, 20 вересня 2018 р. 21:03:52 UTC+2 користувач awais написав:
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 <a href="https://github.com/cherrypy/cherrypy/releases" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;">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, <a href="http://ep.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;">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 <a href="https://github.com/user/proj/archive/master.zip" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;">https://github.com/user/proj/archive/master.zip use git+<a href="https://github.com/user/proj.git#egg=proj" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cherrypy older version installation error in Raspbian

Sviatoslav Sydorenko (@webknjaz)
It looks like you messed up with your installations. It's not related to CherryPy at all. You need to learn how OS locates executables and how to run things via virtualenv.
Also, I trust logs, not your guesses of what you think happened. I'm pretty sure that you just did something wrong, unfortunately, since you don't show what you did exactly, it's extremely hard to guess what you should be doing differently.
Share your terminal log and/or use https://asciinema.org/ to share the recording of your terminal.

пʼятниця, 21 вересня 2018 р. 05:31:48 UTC+2 користувач awais написав:
Hello,
[UPDATE]

as you suggested to install cherrypy using pythom virtual environment ,so i did that and then i installed cherrpy while remaining in the virtual environment but still the logs saying that its installing in the folder containing python 2.7


On Friday, September 21, 2018 at 3:10:12 AM UTC+2, awais wrote:
thanks for your response,
i saw these log files and then uninstalled python from my system completely and then installed python 3.5.3 but after that when i check the version using python --version i saw again version 2.7 .
then i used python3 --version and saw the newly installed version.
so apparently now i have both version installed on my system i dont know why i could not uninstall the older version,
regarding cherrypy i have installed the newer version using pip3 but again when i try to install the cherrypy i got the above logs that i have pasted already.
dont know how do i get ride of this older version.that's why i took the 2nd approach to install the older version of cherrypy so that which is compatible with python 2.7 but i dont know how do i install it.,
i could not find any download links except the github repository .
if you see there is no download link on here <a href="https://pypi.org/project/CherryPy/17.0.0/" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpypi.org%2Fproject%2FCherryPy%2F17.0.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFCgkO97DAQpLcmSFlWzcdHcoJOeQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpypi.org%2Fproject%2FCherryPy%2F17.0.0%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFCgkO97DAQpLcmSFlWzcdHcoJOeQ&#39;;return true;">https://pypi.org/project/CherryPy/17.0.0/
and then i downloaded it from Github Repository but i whenever i used pip or pip3 it installs the latest version of cherrypy.
so now i want either latest version of python or older version of cherrypy

On Friday, September 21, 2018 at 12:55:02 AM UTC+2, Sviatoslav Sydorenko (@webknjaz) wrote:
1) you need to install it from within python3 env, from your log I see that you use python2.7, which is not supported since v18.0.0 anymore. try using `pip3` (or `python3.7 -m pip install cherrypy`) instead of just `pip`, or whatever works in your env. I recommend you to learn how to run correct python and use virtualenvs.
2) don't run `setup.py` manually. always use `pip`, you might want to upgrade pip and setuptools before using it.
3) don't use GitHub Releases. The officially packaged distribution resides on PyPI.

четвер, 20 вересня 2018 р. 21:03:52 UTC+2 користувач awais написав:
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 <a href="https://github.com/cherrypy/cherrypy/releases" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;">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, <a href="http://ep.name" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;">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 <a href="https://github.com/user/proj/archive/master.zip" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;">https://github.com/user/proj/archive/master.zip use git+<a href="https://github.com/user/proj.git#egg=proj" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Cherrypy older version installation error in Raspbian

jibunnokage
In reply to this post by awais umar
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 <a href="https://github.com/cherrypy/cherrypy/releases" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fcherrypy%2Fcherrypy%2Freleases\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENGL_N_F_sC2Tf1oE1sWABd5qg6A&#39;;return true;">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, <a href="http://ep.name" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fep.name\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGCMHKrTBwvuzf2kSJMnvW5zTZuFA&#39;;return true;">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 <a href="https://github.com/user/proj/archive/master.zip" style="color:rgb(2,108,177);font-family:Verdana,Arial,sans-serif;background-color:rgb(239,239,239)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj%2Farchive%2Fmaster.zip\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNENRMj_88nk99x4eWkpZ4XUGUDQLA&#39;;return true;">https://github.com/user/proj/archive/master.zip use git+<a href="https://github.com/user/proj.git#egg=proj" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fuser%2Fproj.git%23egg%3Dproj\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEev5o5bN63sxkp0WSkxjoa-zVfwQ&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
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.