Bug 968121 - Flask example has an internal server error when uploaded
Summary: Flask example has an internal server error when uploaded
Keywords:
Status: CLOSED DUPLICATE of bug 966465
Alias: None
Product: OKD
Classification: Red Hat
Component: Templates
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-29 03:00 UTC by bweber14
Modified: 2015-05-15 02:20 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-29 03:02:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description bweber14 2013-05-29 03:00:20 UTC
Description of problem:
Trying to run the Flask example on Openshift, but keep getting an internal server error.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Start a new python 2.6 app
2.Grab the flask-example from hit
3.Push the example to the site

Actual results:
Internal server error when visiting site

Expected results:
See Hello World output of flask example

Additional info:
Git push log:
remote: Searching for markupsafe
remote: Reading http://mirror1.ops.rhcloud.com/mirror/python/web/simple/markupsafe/
remote: Couldn't find index page for 'markupsafe' (maybe misspelled?)
remote: Scanning index of all packages (this may take a while)
remote: Reading http://mirror1.ops.rhcloud.com/mirror/python/web/simple/
remote: No local packages or download links found for markupsafe
remote: Best match: None
remote: Traceback (most recent call last):
remote: File "/var/lib/openshift/51a3d348e0b8cd687e000259/app-root/runtime/repo/setup.py", line 9, in 
remote: install_requires=['Flask'],

And my app logs on the server look like this:

==> python-2.6/logs/error_log-20130528-000000-EST <== [Tue May 28 08:58:48 2013] [error] [client ] from jinja2.utils import Markup [Tue May 28 08:58:49 2013] [error] [client ] File "/var/lib/openshift/51a3d348e0b8cd687e000259/python-2.6/virtenv/lib/python2.6/site-packages/Jinja2-2.7-py2.6.egg/jinja2/utils.py", line 520, in [Tue May 28 08:58:49 2013] [error] [client ] from markupsafe import Markup, escape, soft_unicode [Tue May 28 08:58:49 2013] [error] [client ] ImportError: No module named markupsafe

So it looks like it is not finding some dependencies for Junja2. I am following the example from this site and using the official Flask example code from GIT.

Comment 1 Dan McPherson 2013-05-29 03:02:26 UTC

*** This bug has been marked as a duplicate of bug 966465 ***


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