[MapProxy] yaml issue
A.Pirard.Papou
A.Pirard.Papou at gmail.com
Fri Mar 8 06:38:38 PST 2013
Hi,
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"
definitions.
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
needed.
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?
Cheers,
André.
$ mapproxy
+ mapproxy-util serve-develop -b localhost:1369 mapproxy.yaml
[2013-03-08 15:01:02,637] mapproxy.config - INFO - reading:
/home/p/.mapproxy/mapproxy.yaml
Traceback (most recent call last):
File "/usr/bin/mapproxy-util", line 9, in <module>
load_entry_point('MapProxy==1.4.0', 'console_scripts',
'mapproxy-util')()
File "/usr/lib/pymodules/python2.6/mapproxy/script/util.py", line
319, in main
commands[command]['func'](args)
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
make_wsgi_app
conf = load_configuration(mapproxy_conf=services_conf,
ignore_warnings=ignore_config_warnings)
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)
File
"/usr/local/lib/python2.6/dist-packages/PyYAML-3.10-py2.6-linux-i686.egg/yaml/__init__.py",
line 73, in load
loader.dispose()
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