Bug 1079599 - Flask cannot import jinja2
Summary: Flask cannot import jinja2
Keywords:
Status: CLOSED DUPLICATE of bug 867105
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-flask
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rick Elrod
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-22 00:35 UTC by Benjamin Gilbert
Modified: 2014-03-22 01:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-22 01:32:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Benjamin Gilbert 2014-03-22 00:35:29 UTC
Description of problem:
Flask tries to import jinja2, fails, and raises an ImportError.

Version-Release number of selected component (if applicable):
0.9-5.el6

How reproducible:
Always

Steps to Reproduce:
1. Install python-flask on a clean system
2. At a Python prompt, "import flask"

Actual results:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/site-packages/flask/__init__.py", line 19, in <module>
    from jinja2 import Markup, escape
ImportError: No module named jinja2

Expected results:
Import succeeds.

Additional info:
On EPEL 6, python-flask depends on python-jinja2-26 but not python-jinja.  python-jinja2-26 intentionally does not install itself into the Python path (see bug 1004384).

Comment 1 Rick Elrod 2014-03-22 01:32:52 UTC
See comment here: https://bugzilla.redhat.com/show_bug.cgi?id=867105#c9
...for a workaround and reasoning as to why we this is the best we can do.

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


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