[MapProxy] yaml issue

A.Pirard.Papou A.Pirard.Papou at gmail.com
Fri Mar 8 06:38:38 PST 2013


Since I'm using Mapproxy 1.4.0, I'm getting configuration errors that I 
solve by shuffling the yaml statements, e.g. swapping 2 "source" 
After I installed 1.5.0 DEB (keeping 1.0.4's (OK) config), strange 
config error messages appeared (again?) while starting it and I 
reinstalled 1.0.4.
Don't ask me for the messages, I want to debug that, but only if it 
remains after I solve the following first.

Initially, I installed 1.0.4 following the pip instructions, I removed 
it following the instructions then I installed the DEB no instructions 
But then, starting Mapproxy failed with yaml related messages below 
(same with 1.5.0).
I noticed that I was getting rid of the start problem if I removed (with 
aptitude) the DEB  python-yaml 3.09-2build1 (+libyaml-0-2)
So, I hacked both DEBs 1.4.0 and 1.5.0 to prevent them requiring the 
said packages (automatically installed).

Puzzled with having to remove yaml to get it working, the no-python-geek 
sitting here asked for a hint from this list. No answer.
The Web advised me

  * help('modules') -> yaml in the list (after much begging),
  * and pip freeze | grep yaml -> "" (nothing).

Would anyone have a hint to nondestructively find and remove the 
condition why Mapproxy does not install out of the box?



$ mapproxy
+ mapproxy-util serve-develop -b localhost:1369 mapproxy.yaml
[2013-03-08 15:01:02,637] mapproxy.config - INFO - reading: 
Traceback (most recent call last):
   File "/usr/bin/mapproxy-util", line 9, in <module>
     load_entry_point('MapProxy==1.4.0', 'console_scripts', 
   File "/usr/lib/pymodules/python2.6/mapproxy/script/util.py", line 
319, in main
   File "/usr/lib/pymodules/python2.6/mapproxy/script/util.py", line 72, 
in serve_develop_command
     app = make_wsgi_app(mapproxy_conf, debug=options.debug)
   File "/usr/lib/pymodules/python2.6/mapproxy/wsgiapp.py", line 91, in 
     conf = load_configuration(mapproxy_conf=services_conf, 
   File "/usr/lib/pymodules/python2.6/mapproxy/config/loader.py", line 
1276, in load_configuration
     conf_dict = 
load_configuration_file([os.path.basename(mapproxy_conf)], conf_base_dir)
   File "/usr/lib/pymodules/python2.6/mapproxy/config/loader.py", line 
1294, in load_configuration_file
     current_dict = load_yaml_file(conf_file)
   File "/usr/lib/pymodules/python2.6/mapproxy/util/yaml.py", line 29, 
in load_yaml_file
     return load_yaml(f)
   File "/usr/lib/pymodules/python2.6/mapproxy/util/yaml.py", line 38, 
in load_yaml
     return yaml.load(doc, Loader=yaml.CLoader)
line 73, in load
AttributeError: 'CLoader' object has no attribute 'dispose'

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20130308/e0cd7cec/attachment-0001.html>

More information about the MapProxy mailing list