[Python-apps-team] Bug#933923: src:valinor: Incompatible with safe load changes in new pyyaml

Scott Kitterman debian at kitterman.com
Mon Aug 5 06:45:30 BST 2019


Package: src:valinor
Version: 1.1.0-1
Severity: grave
Justification: renders package unusable

FAIL: testARMNoneEABIGDB (test.test_outputdir.TestCLIOutputDirectory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc.eh9dq_op/downtmp/autopkgtest_tmp/test/test_outputdir.py", line 48, in testARMNoneEABIGDB
    runWithDir()
  File "/tmp/autopkgtest-lxc.eh9dq_op/downtmp/autopkgtest_tmp/test/test_outputdir.py", line 46, in runWithDir
    out = self.runCheck(args)
  File "/tmp/autopkgtest-lxc.eh9dq_op/downtmp/autopkgtest_tmp/test/test_outputdir.py", line 33, in runCheck
    self.assertEqual(status, 0)
AssertionError: 1 != 0
-------------------- >> begin captured stdout << ---------------------

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/share/valinor/valinor/main.py", line 36, in main
    version=pkg_resources.require("valinor")[0].version,
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (PyYAML 5.1.2 (/usr/lib/python3/dist-packages), Requirement.parse('pyyaml<4,>=3'), {'valinor'})

The new version of pyyaml no longer allows use of yaml.load() without a
loader being specifed.  This raises a deprecation warning which has
caused and autopkgtest failure on this package.  These are generally
trivial to fix, see the upstream guidance [1].

That's likely the change that caused upstream to have <4 for the pyyaml
version.  You ought to be able to fix it pretty easily and then remove
the upper version constraint, assuming there's no upstream fix yet.

Scott K

[1] https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation



More information about the Python-apps-team mailing list