<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr"><div>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. <br><br></div>
When I execute the command <br><br><pre><font size="4">mapproxy-util serve-develop mapproxy.yaml<br>
<br></font></pre><pre><font size="4"><span style="font-family:arial,helvetica,sans-serif">It gave me an error as the following</span><br><br>[2013-05-23 16:57:33,558] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/mapproxy.yaml<br>

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

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

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

    return getattr(self._sock,name)(*args)<br>socket.error: [Errno 98] Address already in use<br><br></font></pre><pre><font size="4">Since it tells the default port 8080 is used. I thought of a different method. In osgeo-6.05 there is a separate menu<br>

</font></pre><pre><font size="4">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.<br><br>[2013-05-23 17:04:59,365] mapproxy.config - INFO - reading: /usr/local/share/mapproxy/mapproxy.yaml<br>

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

<br></font></pre><pre><font size="4">After that I used the link<br><br><a href="http://localhost:8011/demo/" target="_blank">http://localhost:8011/demo/</a><br><br></font></pre><pre><font size="4">and viewed the demo site. <br>
</font></pre>
</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 4:32 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"><div><br>
On 23.05.2013, at 12:39, Hishan Melanga wrote:<br>
> I followed the Tutorial given in MapProxy website to start my proxy by starting the proxy. The tutorial example works fine. But when I use my own .map file it shows an error "could not get any sources: no image returned from source WMS"<br>


<br>
</div>Please post the error message from mapproxy-util serve-develop.<br>
See <a href="http://mapproxy.org/support.html#how-to-ask-for-help" target="_blank">http://mapproxy.org/support.html#how-to-ask-for-help</a><br>
<br>
<br>
<br>
Regards,<br>
Oliver<br>
<span><font color="#888888"><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>
</font></span></blockquote></div><br><br clear="all"><br></div></div><div class="im">-- <br><a href="http://hishanmelanga.blogspot.com/" target="_blank">හිෂාන් මෙලංග | Hishan Melanga</a><br>
</div></div>
</div><br><br clear="all"><br>-- <br><a href="http://hishanmelanga.blogspot.com/" target="_blank">හිෂාන් මෙලංග | Hishan Melanga</a><br>
</div>