I am having trouble installing cherrypy 3.2 on Linux machines (both on Ubuntu and Centos). I have the latest Python and Pip (version 2.7) installed on the machines. On Ubuntu, I am using $sudo pip install cherrypy. On centos, I was installing from source.
After install finished and succeeded, when importing cherrypy module, I get the error:
>>> import cherrypy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/cherrypy/__init__.py", line 62, in <module>
from cherrypy._cpcompat import urljoin as _urljoin, urlencode as _urlencode
File "/usr/local/lib/python2.7/site-packages/cherrypy/_cpcompat.py", line 184, in <module>
from http.cookies import SimpleCookie, CookieError
ImportError: No module named http.cookies
>>>
I looked up the docs and it seems http.cookies is for python 3, am I missing anything as both machine I tried are clean and never had python 3 installed?