bottle icon indicating copy to clipboard operation
bottle copied to clipboard

Cherrypy Adapter does not work on Ubuntu 12.04 LTS

Open noisefloor opened this issue 12 years ago • 4 comments

When running Bottle (0.11.4) with the Cherrypy server adapter unter Ubuntu 12.04, the server fails to start with an import error, as the WSGI Server from Cherrypy can't be loaded.

When I type "import cherrypy;dir(cherrypy)" I indeed do not see any WSGI modul / class...

Cherrypy version is the one from the Ubuntu repositires, 2.3.0.

noisefloor avatar Dec 20 '12 11:12 noisefloor

Ubuntu doesn't keep everything up-to-date and some stuff is too old to use. You should use virtualenv and pip/easy_install to get the most recent Python packages. The way you have more control over the packages you use.

FSX avatar Dec 20 '12 12:12 FSX

Ok, I think I found the reason... I installed Cherrypy 2.3 from the sources - which does indeed not include the wsgiserver. When picking the python-cherrypy3 module, containing Cherryy 3.2.2., the wsgiserver is included. Thus, I may be a good idea to mention the requirement for version 3.x in the docs.

Ubuntu doesn't keep everything up-to-date and some stuff is too old to use.

Yes, but python-cherrypy is in "universe", so it's up to the community to maintain :-)

noisefloor avatar Dec 20 '12 18:12 noisefloor

Looks like a duplicate of #934 to me (though this one was first).

hartwork avatar Apr 06 '18 21:04 hartwork

Can this bug be closed? Ubuntu 12.04 LTS reached EOL a long time ago, and it isn't even receiving support for Canonical customers.

horribleperson avatar Oct 25 '19 20:10 horribleperson