Bug 1011269 - initial requires in setup.py aren't installed in python 3.3 cartridge setup
initial requires in setup.py aren't installed in python 3.3 cartridge setup
Product: OpenShift Online
Classification: Red Hat
Component: Containers (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Mrunal Patel
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2013-09-23 21:14 EDT by Andy Grimm
Modified: 2016-11-07 22:47 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-27 15:10:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Andy Grimm 2013-09-23 21:14:09 EDT
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):


How reproducible:


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

Actual results:

First run:
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'

Second run:
Starting WSGIServer on 127.x.y.z:8080 ... 

Expected results:


Additional info:

I have not yet tested python 2.6 or 2.7.  I just noticed this while doing other 3.3 testing.
Comment 1 Rob Millner 2013-09-24 15:20:42 EDT
There's a complexity with the HA story, passing to Mrunal.
Comment 2 Mrunal Patel 2013-09-25 13:22:35 EDT
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.

- Mrunal
Comment 3 Mrunal Patel 2013-09-27 15:10:08 EDT
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


Note You need to log in before you can comment on or make changes to this bug.