[MapProxy] “could not get any sources: no image returned from source WMS” error in mapproxy demo

Hishan Melanga hishanm at gmail.com
Thu May 23 05:38:30 PDT 2013


First of all I've missed an important information to include in my first
question post. I am using osgeo-6.05 where MapProxy comes prebuild.

When I execute the command

mapproxy-util serve-develop mapproxy.yaml

It gave me an error as the following

[2013-05-23 16:57:33,558] mapproxy.config - INFO - reading:
/usr/local/share/mapproxy/mapproxy.yaml


[info]  * Running on http://127.0.0.1:8080/
Traceback (most recent call last):
  File "/usr/bin/mapproxy-util", line 9, in <module>
    load_entry_point('MapProxy==1.5.0', 'console_scripts', 'mapproxy-util')()


  File "/usr/lib/pymodules/python2.7/mapproxy/script/util.py", line 337, in main
    commands[command]['func'](args)
  File "/usr/lib/pymodules/python2.7/mapproxy/script/util.py", line
82, in serve_develop_command


    extra_files=[mapproxy_conf])
  File "/usr/lib/pymodules/python2.7/mapproxy/util/ext/serving.py",
line 568, in run_simple
    test_socket.bind((hostname, port))
  File "/usr/lib/python2.7/socket.py", line 224, in meth


    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use

Since it tells the default port 8080 is used. I thought of a different
method. In osgeo-6.05 there is a separate menu

menu called "Start MapProxy". When I hit that option my proxy got
started without giving the above error. It produces the following
lines when it starts.

[2013-05-23 17:04:59,365] mapproxy.config - INFO - reading:
/usr/local/share/mapproxy/mapproxy.yaml


[info]  * Running on http://0.0.0.0:8011/
[info]  * Restarting with reloader: stat() polling
[2013-05-23 17:04:59,716] mapproxy.config - INFO - reading:
/usr/local/share/mapproxy/mapproxy.yaml


After that I used the link

http://localhost:8011/demo/

and viewed the demo site.


-- 
හිෂාන් මෙලංග | Hishan Melanga <http://hishanmelanga.blogspot.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20130523/c35d68e4/attachment-0001.html>


More information about the MapProxy mailing list