Jinja

python template engine


Ticket #344 (closed defect: fixed)

Opened 16 months ago

Last modified 7 months ago

Jinja2 easy_install failing

Reported by: lenards Owned by: mitsuhiko
Priority: major Milestone:
Component: general Version: 2.1
Keywords: Cc:

Description

I am attempting an easy_install of sphinx and the Jinja2 dependency is failing. I am unable to do an easy_install of Jinja or Jinja2.

Jinja2 failure: http://paste.pocoo.org/show/116207/

Jinja failure: http://paste.pocoo.org/show/116208/

OS: Mac OS X 10.5.6 Python: 2.5 (standard Mac install) site-packages: /Library/Python/2.5/site-packages/

contents of /Library/Python/2.5/site-packages/easy-install.pth: http://paste.pocoo.org/show/116209/

Change History

Changed 16 months ago by lenards

  • version changed from 1.1 to 2.1
  • component changed from contrib to general

I indicated the wrong component - it should be general

I wanted to add that I have attempted to do an easy_install from Ubuntu 8.10 (Hardy Heron, Python 2.5.2) and also got a similar failure:

http://paste.pocoo.org/show/116213/

There seems to be some addition barking re the _speedups.c

gcc is installed: http://paste.pocoo.org/show/116214/

Changed 16 months ago by dennda

When installing Jinja2 it tries to compile some of the code written in C. Those are just speedups and there is a --without-speedups option (or similar). If you want the speedups, you will obviously need to have the software necessary for compilation installed. I can't remember exactly what packages you need, but I think the docs mention it. On ubuntu, afair, you need build-essential and python-dev.

Changed 16 months ago by lenards

I've noticed people mention passing parameters when doing easy_installs, but every I've done something like:

$>sudo easy_install Jinja2 --without-speedups

I've gotten errors (example: http://paste.pocoo.org/show/116306/)

Could you clarify how to pass these parameters?

Changed 16 months ago by lenards

to update, when running the following command:

$> sudo easy_install Jinja2

I still get this error message:

http://paste.pocoo.org/show/117262/

I briefly got this message:

Searching for Jinja2 Reading http://pypi.python.org/simple/Jinja2/ No local packages or download links found for Jinja2 error: Could not find suitable distribution for Requirement.parse('Jinja2')

Again - I'm here are my specifics:

OS: Mac OS X 10.5.6 Python: 2.5 (mac install)

Changed 16 months ago by lenards

I should note that:

$> easy_install Jinja2==dev

also fails w/ the same message

Changed 16 months ago by lenards

As a side note for anyone else with the issue...

I pulled down the source tarball from pypi, extracted it and run the install

(so ... something like:

$> wget http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.1.1.tar.gz $> tar zxvf Jinja2-2.1.1.tar.gz $> cd Jinja2-2.1.1/ $> sudo python setup.py install

)

unfortunately Sphinx is still trying to install Jinja2 from PyPI - which is not working... so I'm still blocked - I'll have to try something similar w/ Sphinx I guess

hope that helps get anyone else going

Changed 16 months ago by lenards

Sorry - I forgot an important step

$> wget http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.1.1.tar.gz 
$> tar zxvf Jinja2-2.1.1.tar.gz 
$> cd Jinja2-2.1.1/ 
$> python setup.py build
$> sudo python setup.py install 

Changed 7 months ago by mitsuhiko

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.