[MapProxy] Error starting the test server

Andy Smith asmith at mapaction.org
Thu Aug 30 15:04:02 PDT 2012


Hi Oliver,

I have to admit that I didn't notice if it was already installed
before I tried installing mapproxy. So whilst following the
instructions I would have used these command:
sudo aptitude install python-imaging python-yaml libproj0

Which I guess should have done the job. So now I have:
andy at shaun:~/mymapproxy$ sudo aptitude show python-yaml
Package: python-yaml
State: installed
Automatically installed: no
Version: 3.09-5ubuntu2
Priority: optional
Section: python
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Uncompressed Size: 795 k
Depends: python2.6 | python2.7, python (>= 2.6.5-11~), python (< 2.8),
libc6 (>= 2.2.5), libyaml-0-2
Description: YAML parser and emitter for Python
 Python-yaml is a complete YAML 1.1 parser and emitter for Python.  It
can parse all examples from the specification. The parsing algorithm
is simple enough to be a reference for
 YAML parser implementors. A simple extension API is also provided.
The package is built using libyaml for improved speed.
Homepage: http://pyyaml.org/

Is there any other information that would help shed light on this?

Many thanks for your help,
Andy


On 30 August 2012 09:13, Oliver Tonnhofer <olt at omniscale.de> wrote:
>
> On 29.08.2012, at 14:26, Andrew Smith wrote:
>> I've tried setting up MapProxy 1.4 on my laptop (Ubuntu 11.04 x86_64) using the instructions here; http://mapproxy.org/docs/latest/install.html
>> However I'm unable to start the test server with this error occuring:
>>
>> andy at shaun:~/mymapproxy$ sudo mapproxy-util serve-develop ./mapproxy.yaml -b 0.0.0.0:8080
>
> 0.0.0.0 means bind to any address. So this is fine.
>
>> [2012-08-29 11:32:53,555] mapproxy.config - INFO - reading: /home/andy/mymapproxy/mapproxy.yaml
>> Traceback (most recent call last):
>>   File "/usr/local/bin/mapproxy-util", line 9, in <module>
>>     load_entry_point('MapProxy==1.4.0', 'console_scripts', 'mapproxy-util')()
>>   File "/usr/local/lib/python2.7/dist-packages/MapProxy-1.4.0-py2.7.egg/mapproxy/script/util.py", line 319, in main
>>     commands[command]['func'](args)
>>   File "/usr/local/lib/python2.7/dist-packages/MapProxy-1.4.0-py2.7.egg/mapproxy/script/util.py", line 72, in serve_develop_command
>>     app = make_wsgi_app(mapproxy_conf, debug=options.debug)
>>   File "/usr/local/lib/python2.7/dist-packages/MapProxy-1.4.0-py2.7.egg/mapproxy/wsgiapp.py", line 91, in make_wsgi_app
>>     conf = load_configuration(mapproxy_conf=services_conf, ignore_warnings=ignore_config_warnings)
>>   File "/usr/local/lib/python2.7/dist-packages/MapProxy-1.4.0-py2.7.egg/mapproxy/config/loader.py", line 1276, in load_configuration
>>     conf_dict = load_configuration_file([os.path.basename(mapproxy_conf)], conf_base_dir)
>>   File "/usr/local/lib/python2.7/dist-packages/MapProxy-1.4.0-py2.7.egg/mapproxy/config/loader.py", line 1294, in load_configuration_file
>>     current_dict = load_yaml_file(conf_file)
>>   File "/usr/local/lib/python2.7/dist-packages/MapProxy-1.4.0-py2.7.egg/mapproxy/util/yaml.py", line 29, in load_yaml_file
>>     return load_yaml(f)
>>   File "/usr/local/lib/python2.7/dist-packages/MapProxy-1.4.0-py2.7.egg/mapproxy/util/yaml.py", line 38, in load_yaml
>>     return yaml.load(doc, Loader=yaml.CLoader)
>>   File "/usr/local/lib/python2.7/dist-packages/PyYAML-3.10-py2.7-linux-x86_64.egg/yaml/__init__.py", line 73, in load
>>     loader.dispose()
>> AttributeError: 'CLoader' object has no attribute 'dispose'
>
> This looks like a bug in your PyYAML version. How did you install it?
>
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
> http://mapproxy.org | https://github.com/olt    | @oltonn
>
>
>
>
>
>


More information about the MapProxy mailing list