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

Alessandro Pastore sgnacca.alex at gmail.com
Wed Oct 6 09:58:58 EDT 2010


Hi all

on a Debian Lenny with python-2.5 I found an error executing the command:

paster create -t mapproxy_conf mymapproxy

I explain all the steps
1) the virtual environment is correctly installed
$ wget http://bitbucket.org/ianb/virtualenv/raw/1.4.8/virtualenv.py
$ python virtualenv.py --distribute ~/venv/mapproxy
$ source ~/venv/mapproxy/bin/activate

then the shell become (mapproxy)alex at customer2

2) this packages are installed
sudo aptitude install build-essential python-dev \
    libjpeg-dev libz-dev libfreetype6-dev

3) proj is installed
sudo aptitude install libproj0
fails but I have the libraries
(mapproxy)alex at customer2:~/venv$ ls -la /usr/lib/*proj*
-rw-r--r-- 1 root root 399668 2008-08-28 19:36 /usr/lib/libproj.a
-rw-r--r-- 1 root root    813 2008-08-28 19:36 /usr/lib/libproj.la
lrwxrwxrwx 1 root root     16 2010-03-06 09:51 /usr/lib/libproj.so ->
libproj.so.0.5.4
lrwxrwxrwx 1 root root     16 2010-03-06 09:51 /usr/lib/libproj.so.0 ->
libproj.so.0.5.4
-rw-r--r-- 1 root root 208440 2008-08-28 19:36 /usr/lib/libproj.so.0.5.4

4) PIL is installed with sudo aptitude install python-imaging

5) MapProxy is installed,
python -m mapproxy.version
(mapproxy)alex at customer2:~/venv$ python -m mapproxy.version
0.9.0b2

Now you see 0.9.0b2 but I got the same with 0.8.5 version

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


7) I also tried to upgrade Jinja2 with
sudo pip install Jinja2==dev

always with the same error

thanks in advice
alessandro pastore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20101006/745cc895/attachment.html


More information about the MapProxy mailing list