<div dir="ltr"><div>Hi,<br>that sounds great, unfortunately there seems to be a problem.<br>When I install mapproxy with Pillow installed the installation seems OK, but it does not really work:<br><br>INSTALLATION:<br>(mapproxy)[root@todd_ign tmp]# pip install --upgrade /root/MapProxy-1.6.0rc1.tar.gz --use-mirrors<br>
Unpacking /root/MapProxy-1.6.0rc1.tar.gz<br> Running setup.py egg_info for package from file:///root/MapProxy-1.6.0rc1.tar.gz<br>Could not fetch URL <a href="https://pypi.python.org/simple/PyYAML/">https://pypi.python.org/simple/PyYAML/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="https://pypi.python.org/simple/PyYAML/">https://pypi.python.org/simple/PyYAML/</a> when looking for download links for PyYAML>=3.0,<3.99 in /home/mapserver/mapproxy/lib/python2.6/site-packages (from MapProxy==1.6.0rc1)<br>
Could not fetch URL <a href="https://pypi.python.org/simple/">https://pypi.python.org/simple/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="https://pypi.python.org/simple/">https://pypi.python.org/simple/</a> when looking for download links for PyYAML>=3.0,<3.99 in /home/mapserver/mapproxy/lib/python2.6/site-packages (from MapProxy==1.6.0rc1)<br>
Cannot fetch index base URL <a href="https://pypi.python.org/simple/">https://pypi.python.org/simple/</a><br>Could not fetch URL <a href="https://pypi.python.org/simple/PyYAML/">https://pypi.python.org/simple/PyYAML/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="https://pypi.python.org/simple/PyYAML/">https://pypi.python.org/simple/PyYAML/</a> when looking for download links for PyYAML>=3.0,<3.99 in /home/mapserver/mapproxy/lib/python2.6/site-packages (from MapProxy==1.6.0rc1)<br>
Could not fetch URL <a href="http://b.pypi.python.org/simple/PyYAML/">http://b.pypi.python.org/simple/PyYAML/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="http://b.pypi.python.org/simple/PyYAML/">http://b.pypi.python.org/simple/PyYAML/</a> when looking for download links for PyYAML>=3.0,<3.99 in /home/mapserver/mapproxy/lib/python2.6/site-packages (from MapProxy==1.6.0rc1)<br>
Could not fetch URL <a href="http://d.pypi.python.org/simple/PyYAML/">http://d.pypi.python.org/simple/PyYAML/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="http://d.pypi.python.org/simple/PyYAML/">http://d.pypi.python.org/simple/PyYAML/</a> when looking for download links for PyYAML>=3.0,<3.99 in /home/mapserver/mapproxy/lib/python2.6/site-packages (from MapProxy==1.6.0rc1)<br>
Could not fetch URL <a href="http://a.pypi.python.org/simple/PyYAML/">http://a.pypi.python.org/simple/PyYAML/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="http://a.pypi.python.org/simple/PyYAML/">http://a.pypi.python.org/simple/PyYAML/</a> when looking for download links for PyYAML>=3.0,<3.99 in /home/mapserver/mapproxy/lib/python2.6/site-packages (from MapProxy==1.6.0rc1)<br>
Requirement already up-to-date: PyYAML>=3.0,<3.99 in /home/mapserver/mapproxy/lib/python2.6/site-packages (from MapProxy==1.6.0rc1)<br>Could not fetch URL <a href="https://pypi.python.org/simple/Pillow/">https://pypi.python.org/simple/Pillow/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="https://pypi.python.org/simple/Pillow/">https://pypi.python.org/simple/Pillow/</a> when looking for download links for Pillow in /home/mapserver/mapproxy/lib/python2.6/site-packages/Pillow-2.1.0-py2.6-win32.egg (from MapProxy==1.6.0rc1)<br>
Could not fetch URL <a href="https://pypi.python.org/simple/">https://pypi.python.org/simple/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="https://pypi.python.org/simple/">https://pypi.python.org/simple/</a> when looking for download links for Pillow in /home/mapserver/mapproxy/lib/python2.6/site-packages/Pillow-2.1.0-py2.6-win32.egg (from MapProxy==1.6.0rc1)<br>
Cannot fetch index base URL <a href="https://pypi.python.org/simple/">https://pypi.python.org/simple/</a><br>Could not fetch URL <a href="https://pypi.python.org/simple/Pillow/">https://pypi.python.org/simple/Pillow/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="https://pypi.python.org/simple/Pillow/">https://pypi.python.org/simple/Pillow/</a> when looking for download links for Pillow in /home/mapserver/mapproxy/lib/python2.6/site-packages/Pillow-2.1.0-py2.6-win32.egg (from MapProxy==1.6.0rc1)<br>
Could not fetch URL <a href="http://a.pypi.python.org/simple/Pillow/">http://a.pypi.python.org/simple/Pillow/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="http://a.pypi.python.org/simple/Pillow/">http://a.pypi.python.org/simple/Pillow/</a> when looking for download links for Pillow in /home/mapserver/mapproxy/lib/python2.6/site-packages/Pillow-2.1.0-py2.6-win32.egg (from MapProxy==1.6.0rc1)<br>
Could not fetch URL <a href="http://b.pypi.python.org/simple/Pillow/">http://b.pypi.python.org/simple/Pillow/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="http://b.pypi.python.org/simple/Pillow/">http://b.pypi.python.org/simple/Pillow/</a> when looking for download links for Pillow in /home/mapserver/mapproxy/lib/python2.6/site-packages/Pillow-2.1.0-py2.6-win32.egg (from MapProxy==1.6.0rc1)<br>
Could not fetch URL <a href="http://d.pypi.python.org/simple/Pillow/">http://d.pypi.python.org/simple/Pillow/</a>: There was a problem confirming the ssl certificate: <urlopen error [Errno 8] _ssl.c:490: EOF occurred in violation of protocol><br>
Will skip URL <a href="http://d.pypi.python.org/simple/Pillow/">http://d.pypi.python.org/simple/Pillow/</a> when looking for download links for Pillow in /home/mapserver/mapproxy/lib/python2.6/site-packages/Pillow-2.1.0-py2.6-win32.egg (from MapProxy==1.6.0rc1)<br>
Requirement already up-to-date: Pillow in /home/mapserver/mapproxy/lib/python2.6/site-packages/Pillow-2.1.0-py2.6-win32.egg (from MapProxy==1.6.0rc1)<br>Installing collected packages: MapProxy<br> Found existing installation: MapProxy 1.6.0rc1<br>
Uninstalling MapProxy:<br> Successfully uninstalled MapProxy<br> Running setup.py install for MapProxy<br> Skipping installation of /home/mapserver/mapproxy/lib/python2.6/site-packages/mapproxy/__init__.py (namespace package)<br>
Installing /home/mapserver/mapproxy/lib/python2.6/site-packages/MapProxy-1.6.0rc1-py2.6-nspkg.pth<br> Installing mapproxy-seed script to /home/mapserver/mapproxy/bin<br> Installing mapproxy-util script to /home/mapserver/mapproxy/bin<br>
Successfully installed MapProxy<br><br></div>-------------------------------------------<br><div><br>But then:<br><br>[Fri Aug 23 09:04:38 2013] [error] [client 10.113.80.41] File "/home/mapserver/mapproxy/lib/python2.6/site-packages/mapproxy/image/opts.py", line 108, in create_image, referer: <a href="http://map.geoportail.lu/">http://map.geoportail.lu/</a><br>
[Fri Aug 23 09:04:38 2013] [error] [client 10.113.80.41] return Image.new(mode, size, bgcolor), referer: <a href="http://map.geoportail.lu/">http://map.geoportail.lu/</a><br>[Fri Aug 23 09:04:38 2013] [error] [client 10.113.80.41] File "/home/mapserver/mapproxy/lib/python2.6/site-packages/mapproxy/platform/image.py", line 39, in __getattr__, referer: <a href="http://map.geoportail.lu/">http://map.geoportail.lu/</a><br>
[Fri Aug 23 09:04:38 2013] [error] [client 10.113.80.41] raise ImportError('PIL is not available'), referer: <a href="http://map.geoportail.lu/">http://map.geoportail.lu/</a><br>[Fri Aug 23 09:04:38 2013] [error] [client 10.113.80.41] ImportError: PIL is not available, referer: <a href="http://map.geoportail.lu/">http://map.geoportail.lu/</a><br>
[Fri Aug 23 09:04:38 2013] [error] No handlers could be found for logger "mapproxy.source.wms"<br><br></div><div>I've reinstalled PIL using yum install PIL and now it works again ..<br><br></div><div>(BTW: Python 2.6.6 on RHEL 6.4)<br>
<br></div><div>Kind regards<br>Jeff<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 4:04 PM, Oliver Tonnhofer <span dir="ltr"><<a href="mailto:olt@omniscale.de" target="_blank">olt@omniscale.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class="im"><br>
On 22.08.2013, at 15:53, Jeff Konnen wrote:<br>
> I've installed the RC1 and Pillow. I am not sure though it uses Pillow correctly.<br>
> When I uninstall the old PIL from my machine, mapproxy won't work.<br>
> Is there a trick to specify that I want to use Pillow?<br>
<br>
</div>Just reinstall MapProxy. Python (setuptools) doesn't support alternative dependencies.<br>
MapProxy depends on Pillow if was installed before MapProxy, otherwise it depends on PIL. If you install Pillow after MapProxy, then MapProxy will still depend on PIL.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
Regards,<br>
Oliver<br>
<br>
--<br>
Oliver Tonnhofer | Omniscale GmbH & Co KG | <a href="http://omniscale.com" target="_blank">http://omniscale.com</a><br>
<a href="http://mapproxy.org" target="_blank">http://mapproxy.org</a> | <a href="https://github.com/olt" target="_blank">https://github.com/olt</a> | @oltonn<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jeff Konnen<br>
</div>