<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 2012-12-14 13:59, Oliver Tonnhofer
      wrote :<br>
    </div>
    <blockquote
      cite="mid:29AD893B-093A-489C-BBF8-D71D01DCE7B3@omniscale.de"
      type="cite">
      <pre wrap="">
On 13.12.2012, at 14:31, A.Pirard.Papou wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">The DEB has a requirement for python-yaml and mapproxy DEB installed 3.09-2build1 on Ubuntu 10.04 [-> init failure]
As I explained before, if I remove that requirement from the DEB (and uninstall yaml), mapproxy runs fine.
</pre>
      </blockquote>
      <pre wrap="">
MapProxy requires PyYAML and it won't be able to read any configuration without it. So did you install PyYAML manually with pip or easy_install then?
...
I'm a python newbie.  How do I know if and which yaml is installed? 
</pre>
    </blockquote>
    The following (abridged) is after installing mapproxy 15.0.0 DEB
    without the python-yaml requirement.<br>
    Would that mean that mapproxy runs (it does initialize) without
    (specifically) installing yaml?<br>
    <blockquote type="cite">$ dir /usr/lib/python*/*yaml*<br>
      $ dir /usr/lib/python*/*/*yaml*<br>
      $ dir /usr/lib/python*/*/*/*yaml*<br>
      $ dir /usr/lib/python*/*/*/*/*yaml*<br>
      2010-10-08 05:02
      /usr/lib/python2.5/site-packages/reportlab/lib/yaml.py<br>
      2010-10-08 05:02
      /usr/lib/python2.5/site-packages/reportlab/lib/yaml.pyc<br>
      2010-10-08 05:02
      /usr/lib/python2.6/dist-packages/reportlab/lib/yaml.py<br>
      2010-10-08 05:02
      /usr/lib/python2.6/dist-packages/reportlab/lib/yaml.pyc<br>
      $ dir /usr/lib/python*/*/*/*/*/*yaml*<br>
      2010-10-07 23:34
      /usr/lib/python2.6/dist-packages/reportlab/tools/docco/yaml2pdf.py<br>
      2010-10-07 23:34
      /usr/lib/python2.6/dist-packages/reportlab/tools/docco/yaml2pdf.pyc<br>
      2010-10-07 23:34
      /usr/lib/python2.6/dist-packages/reportlab/tools/docco/yaml.py<br>
      2010-10-07 23:34
      /usr/lib/python2.6/dist-packages/reportlab/tools/docco/yaml.pyc<br>
      <br>
      <br>
      $ dir /usr/share/py*/*yaml*<br>
      $ dir /usr/share/py*/*/*yaml*<br>
      $ dir /usr/share/py*/*/*/*yaml*<br>
      673686 -rw-r--r-- 1 root root 1361 2012-12-11 10:51
      /usr/share/pyshared/mapproxy/util/yaml.py<br>
      655466 -rw-r--r-- 1 root root 5892 2004-06-17 17:26
      /usr/share/pyshared/reportlab/lib/yaml.py<br>
      $ dir /usr/share/py*/*/*/*/*yaml*<br>
      2009-02-12 03:54
      /usr/share/pyshared/django/core/serializers/pyyaml.py<br>
      2012-12-11 10:51
      /usr/share/pyshared/mapproxy/config_template/base_config/mapproxy.yaml<br>
      2012-12-11 10:51
      /usr/share/pyshared/mapproxy/config_template/base_config/seed.yaml<br>
      2012-12-11 10:51
      /usr/share/pyshared/mapproxy/test/cite/cite_conf.yaml<br>
      2012-12-11 10:51 /usr/share/pyshared/mapproxy/test/cite/cite.yaml<br>
      2012-12-11 10:51
      /usr/share/pyshared/mapproxy/test/unit/test_yaml.py<br>
      <br>
    </blockquote>
    <br>
    On the other hand, I recall these messages when mapproxy DEB
    installs python-yaml 3.09 (not removing requirement):<br>
    <br>
    <blockquote type="cite"> File
      "/usr/lib/pymodules/python2.6/mapproxy/config/loader.py", line
      1383, in load_configuration_file<br>
          current_dict = load_yaml_file(conf_file)<br>
        File "/usr/lib/pymodules/python2.6/mapproxy/util/yaml.py", line
      29, in load_yaml_file<br>
          return load_yaml(f)<br>
        File "/usr/lib/pymodules/python2.6/mapproxy/util/yaml.py", line
      38, in load_yaml<br>
          return yaml.load(doc, Loader=yaml.CLoader)<br>
        File
      "/usr/local/lib/python2.6/dist-packages/PyYAML-3.10-py2.6-linux-i686.egg/yaml/__init__.py",

      line 73, in load<br>
          loader.dispose()</blockquote>
    Why does it mention PyYAML-<b>3.10</b> ?<br>
    <br>
    Sorry to be a Python newbie.  To be or not to be?  Let it be, let it
    be ;-)<br>
    <br>
    Cheers, <br>
    <br>
    <table>
      <tbody>
        <tr>
          <td valign="top">André.</td>
        </tr>
      </tbody>
    </table>
    <br>
  </body>
</html>