Thanks Oliver, installing pyproj and setting a new Windows environment variable MAPPROXY_USE_PYPROJ to True worked for me. Now I can start mapproxy server in a normal command prompt (running within FWTools exhibited strange behaviour, i.e. WMS requests were taking an infinite amount of time).<br>
<br><div>Jason</div><div><br><div class="gmail_quote">On Fri, Nov 26, 2010 at 9:59 AM, Oliver Tonnhofer <span dir="ltr">&lt;<a href="mailto:olt@omniscale.de">olt@omniscale.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
On 25.11.2010, at 15:27, Jason Lee wrote:<br>
<br>
&gt; Hi,<br>
&gt; I just downloaded and installed MapProxy (0.9.0.1) locally on my Windows Vista machine for testing. I followed the steps as per the documentation to the point I thought I was ready to startup the MapProxy server, i.e. &quot;paster serve etc/develop.ini --reload&quot;<br>

&gt;<br>
&gt; Unfortunately I get an error message :-<br>
&gt;<br>
&gt; &quot;mapproxy.platform.cpython.proj.ProjInitError: error initializing Proj(proj_def=None, init=&#39;epsg:4326&#39;): Invalid argument&quot;<br>
&gt;<br>
&gt; I&#39;m not too sure what I have missed along the installation steps although I have re-installed several times with the same result. Interestingly, I have FWTools installed on my machine and when I startup MapProxy from within a FWTools command prompt it seems to run up fine?! Is it because MapProxy cannot find map projection settings that FWTools provides in its environment settings?<br>

<br>
</div></div>MapProxy can use Proj4 directly (via ctypes) or pyproj, a Python package that bundles Proj4. I guess that FWTools comes with Proj4 and the Proj4 environment variables are set correctly. When you use MapProxy outside of FWTools, then MapProxy still finds the library but Proj4 does not find the projection definitions.<br>

<br>
So you could set either the proj4 environment variables or you could try pyproj. Just install it with `easy_install pyproj`. You might have to set the environment MAPPROXY_USE_PYPROJ to true, so that MapProxy will not use FWTools&#39; Proj4.<br>

<br>
<br>
Regards,<br>
Oliver<br>
<font color="#888888"><br>
--<br>
Oliver Tonnhofer &lt;<a href="mailto:olt@omniscale.de">olt@omniscale.de</a>&gt;<br>
Omniscale - Dominik Helle, Oliver Tonnhofer GbR<br>
Nadorster Str. 60, 26123 Oldenburg<br>
Tel: +49(0)441/9392774-2 (Fax: 9)<br>
<br>
</font></blockquote></div><br></div>