[Python-modules-team] Bug#850023: ImportError when importing ruamel.yaml

Elena ``of Valhalla'' valhalla at trueelena.org
Tue Jan 3 09:37:48 UTC 2017


Package: python-ruamel.yaml
Version: 0.13.4-1
Severity: grave

Importing ruamel.yaml fails with the following traceback:

    $ bpython
    bpython version 0.16 on top of Python 2.7.13 /usr/bin/python
    >>> import ruamel.yaml
    Traceback (most recent call last):
      File "<input>", line 1, in <module>
        import ruamel.yaml
      File "/usr/lib/python2.7/dist-packages/ruamel/yaml/__init__.py", line 81, in <module>
        from ruamel.yaml.main import *  # NOQA
      File "/usr/lib/python2.7/dist-packages/ruamel/yaml/main.py", line 6, in <module>
        from typing import List, Set, Dict, Tuple, Optional, Union, BinaryIO, IO, Any  # NOQA
    ImportError: No module named typing

Note that doing the same under python3 works, this only applies to the
python2 version:

    $ bpython3
    bpython version 0.16 on top of Python 3.5.2+ /usr/bin/python3
    >>> import ruamel.yaml
    >>>

(Using bpython is not relevant: the same error occours with the standard
python interpreter)
-- 
Elena ``of Valhalla''



More information about the Python-modules-team mailing list