Red Hat Bugzilla – Bug 1011269
initial requires in setup.py aren't installed in python 3.3 cartridge setup
Last modified: 2016-11-07 22:47:14 EST
Description of problem:
The setup.py for the python cartridge has CherryPy in the install_requires. CherryPy is not installed into the app until the first git push, though. This means the initial webserver instance behaves differently than all subsequent starts, which is confusing.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rhc app create py33 python-3.3
2. rhc tail py33
3. visit the app URL
4. modify something in git
5. git push (watch output for cherrypy install)
6. repeat #2 and #3
Traceback (most recent call last):
File "app.py", line 38, in <module>
run_cherrypy_server(zapp.application, ip, port)
File "app.py", line 14, in run_cherrypy_server
from cherrypy import wsgiserver
ImportError: No module named 'cherrypy'
Starting WSGIServer on 127.x.y.z:8080 ...
I have not yet tested python 2.6 or 2.7. I just noticed this while doing other 3.3 testing.
There's a complexity with the HA story, passing to Mrunal.
This is intentional. We debated whether to install cherrypy when the app is created. However, that was considered as an expensive operation and ruled out.
Do you think documenting this better helps? Also, this problem will go away as soon as we move to SCL for Python 3.3.
The python 3.3 cartridge is an experimental community cartridge. This issue will be fixed when we move to using SCL for python 3.3