[MapProxy] Installing mapproxy on windows

Oliver Tonnhofer olt at omniscale.de
Fri Mar 11 08:51:00 EST 2011


On 11.03.2011, at 14:25, Jorge Gaspar Sanz Salinas wrote:
> 
> uhh, I've changed my Python 2.7x64 to 2.6x32 and then both MapProxy and
> pyproj install perfectly
> 
> now I'm having mapproxy working with paster serve and the tms works,
> that is the
> 
> http://127.0.0.1/tms/osm/0/0/0.png

Great.

> is working but when I request an static file like /demo/static/site.css
> on demo pages i get
> 
> Traceback (most recent call last):
>  File
> "c:\gis\mapproxy_venv\lib\site-packages\mapproxy-1.0.0-py2.6.egg\mapproxy\wsgiapp.py",
> line 146, in __call__
>    resp = self.handlers[handler_name].handle(req)
>  File
> "c:\gis\mapproxy_venv\lib\site-packages\mapproxy-1.0.0-py2.6.egg\mapproxy\service\demo.py",
> line 57, in handle
>    return Response(open(static_file, 'rb'), content_type=type)
> IOError: [Errno 2] No such file or directory: 'c:\\demo\\static\\site.css'


Arrrg. Thanks for reporting that. You found a spot where didn't used platform agnostic path handling.
I fixed it and created a new 1.0.x branch for bug fixes to 1.0.0.


You can install it with:

pip install https://bitbucket.org/olt/mapproxy/get/1.0.x.tar.gz




Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt





More information about the MapProxy mailing list