[MapProxy] Installation error (paster create -t mapproxy_conf mymapproxy)

Oliver Tonnhofer olt at omniscale.de
Fri Oct 8 05:24:03 EDT 2010


Hi Alessandro,

On 06.10.2010, at 15:58, Alessandro Pastore wrote:
> 6 the problem) When I type 
> paster create -t mapproxy_conf mymapproxy
> I get:
> Traceback (most recent call last):
>   File "/usr/bin/paster", line 8, in <module>
>     load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
>   File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 84, in run
>     invoke(command, command_name, options, args[1:])
>   File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 123, in invoke
>     exit_code = runner.run(args)
>   File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 218, in run
>     result = self.command()
>   File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/create_distro.py", line 73, in command
>     self.extend_templates(templates, tmpl_name)
>   File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/create_distro.py", line 262, in extend_templates
>     tmpl = entry.load()(entry.name)
>   File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1953, in load
>     raise ValueError(
>   File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1966, in require
> 
>   File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 565, in resolve
>     error that occurred. Usually this will be a ``DistributionNotFound`` or
> pkg_resources.DistributionNotFound: Jinja2>=2.1,<2.1.99

Ok, you somehow installed a more recent Jinja2 version. MapProxy 0.8.5 requires 2.1.x.

MapProxy should run fine with Jinja 2.5 and I've updated the setup.py metadata that required a 2.1.x version: 

You should try:

  pip install http://mapproxy.org/static/rel/MapProxy-0.8.6.dev-20101008.tar.gz

or install Jinja2 with

  pip install 'Jinja2>=2.1,<2.1.99'



For 0.9.0b2. Can you please check the error message? 0.9.x does not use Jinja2 anymore and you should not get an error like the above.


Regards,
Oliver

-- 
Oliver Tonnhofer <olt at omniscale.de>
Omniscale - Dominik Helle, Oliver Tonnhofer GbR
Nadorster Str. 60, 26123 Oldenburg
Tel: +49(0)441/9392774-2 (Fax: 9)



More information about the MapProxy mailing list