Hi all<br><br>on a Debian Lenny with python-2.5 I found an error executing the command:<br><br>paster create -t mapproxy_conf mymapproxy<br><br>I explain all the steps<br>1) the virtual environment is correctly installed<br>
$ wget <a href="http://bitbucket.org/ianb/virtualenv/raw/1.4.8/virtualenv.py">http://bitbucket.org/ianb/virtualenv/raw/1.4.8/virtualenv.py</a><br>$ python virtualenv.py --distribute ~/venv/mapproxy<br>$ source ~/venv/mapproxy/bin/activate<br>
<br>then the shell become (mapproxy)alex@customer2<br><br>2) this packages are installed <br>sudo aptitude install build-essential python-dev \<br> libjpeg-dev libz-dev libfreetype6-dev<br><br>3) proj is installed <br>
sudo aptitude install libproj0 <br>fails but I have the libraries<br>(mapproxy)alex@customer2:~/venv$ ls -la /usr/lib/*proj*<br>-rw-r--r-- 1 root root 399668 2008-08-28 19:36 /usr/lib/libproj.a<br>-rw-r--r-- 1 root root 813 2008-08-28 19:36 /usr/lib/<a href="http://libproj.la">libproj.la</a><br>
lrwxrwxrwx 1 root root 16 2010-03-06 09:51 /usr/lib/libproj.so -> libproj.so.0.5.4<br>lrwxrwxrwx 1 root root 16 2010-03-06 09:51 /usr/lib/libproj.so.0 -> libproj.so.0.5.4<br>-rw-r--r-- 1 root root 208440 2008-08-28 19:36 /usr/lib/libproj.so.0.5.4<br>
<br>4) PIL is installed with sudo aptitude install python-imaging<br><br>5) MapProxy is installed,<br>python -m mapproxy.version<br>(mapproxy)alex@customer2:~/venv$ python -m mapproxy.version<br>0.9.0b2<br><br>Now you see 0.9.0b2 but I got the same with 0.8.5 version<br>
<br>6 the problem) When I type <br>paster create -t mapproxy_conf mymapproxy<br>I get:<br>Traceback (most recent call last):<br> File "/usr/bin/paster", line 8, in <module><br> load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()<br>
File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 84, in run<br> invoke(command, command_name, options, args[1:])<br> File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 123, in invoke<br>
exit_code = runner.run(args)<br> File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 218, in run<br> result = self.command()<br> File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/create_distro.py", line 73, in command<br>
self.extend_templates(templates, tmpl_name)<br> File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/create_distro.py", line 262, in extend_templates<br> tmpl = entry.load()(<a href="http://entry.name">entry.name</a>)<br>
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1953, in load<br> raise ValueError(<br> File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1966, in require<br><br> File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 565, in resolve<br>
error that occurred. Usually this will be a ``DistributionNotFound`` or<br>pkg_resources.DistributionNotFound: Jinja2>=2.1,<2.1.99<br><br><br>7) I also tried to upgrade Jinja2 with<br>sudo pip install Jinja2==dev<br>
<br>always with the same error<br><br>thanks in advice <br>alessandro pastore<br><pre><br></pre><br><br><br>