Page MenuHomePhabricator

Python 2.6 builds fail during ruamel.yaml installation
Closed, ResolvedPublic

Description

https://travis-ci.org/wikimedia/pywikibot-core/jobs/268693598#L618

Collecting ruamel.yaml (from maya->Flask-Common->httpbin->pytest-httpbin->-r dev-requirements.txt (line 10))

  Downloading ruamel.yaml-0.15.32.tar.gz (259kB)

    Complete output from command python setup.py egg_info:

    minimum python version(s): [(2, 7), (3, 3)]

    

    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-i4sg5u/ruamel.yaml/

Related Objects

Event Timeline

The origin of that error message is https://bitbucket.org/ruamel/yaml/commits/2eba8ded942a6716db86eb8530297cdfd57d8dfa#Lsetup.pyT429

According to issue #117 in upstream bug tracker they have dropped support for py2.6; therefore we can't expect any fix here.

Change 374073 had a related patch set uploaded (by Dalba; owner: Dalba):
[pywikibot/core@master] dev-requirements.txt: Require ruamel.yaml<0.12 for python_version < '2.7'

https://gerrit.wikimedia.org/r/374073

Change 374073 merged by jenkins-bot:
[pywikibot/core@master] dev-requirements.txt: Require ruamel.yaml<0.12 for python_version < '2.7'

https://gerrit.wikimedia.org/r/374073

OK, the previous patch resolved the setup issue. One of the 2.6 builds passed the tests successfully.

But another test failed with this error:

    warnings.simplefilter('ignore', ruamel.yaml.error.UnsafeLoaderWarning)

AttributeError: 'module' object has no attribute 'UnsafeLoaderWarning'

UnsafeLoaderWarning has been added in this commit which means after 2016-11-20 or in other words after v0.13.0.

Now maya has required that class since Dec 16, 2016 which is v0.0.0 !

The error cannot be related to recent changes in maya.

It should have been caused by a change in another parent package. Probably a change in httpbin package (which requires Flask-Common, which requires maya, which requires ruamel.yaml).

Change 374078 had a related patch set uploaded (by Dalba; owner: Dalba):
[pywikibot/core@master] requirements.txt: Require httpbin<0.6.0 for python_version < '2.7'

https://gerrit.wikimedia.org/r/374078

Change 374078 merged by jenkins-bot:
[pywikibot/core@master] requirements.txt: Require httpbin<0.6.0 for python_version < '2.7'

https://gerrit.wikimedia.org/r/374078

Thanks to Mpaa for reviewing.

Dalba renamed this task from Python 2.6 builds are failing because the cannot install ruamel.yaml to Python 2.6 builds fail during ruamel.yaml installation.Aug 27 2017, 8:03 PM