question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unresolved PyYAML dependencies

See original GitHub issue

not sure what to do about that…

nuc01:multirepo: west
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 888, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 779, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (PyYAML 3.12 (/usr/lib64/python3.6/site-packages), Requirement.parse('PyYAML==3.11'), {'pykwalify'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nashif/.local/bin/west", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3095, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 572, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 585, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 779, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (PyYAML 3.12 (/usr/lib64/python3.6/site-packages), Requirement.parse('PyYAML==3.11'), {'pykwalify'})

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KartikAiyercommented, Dec 6, 2021

@marc-hb thanks for tracking that down and apologies for not finding it myself. It hadn’t occurred to me to look specifically at pyocd.

0reactions
marc-hbcommented, Dec 4, 2021

Do you know what could be generating that requirement of >6.0 and <7.1 for PyYAML ? To me it looks like west. … pkg_resources.ContextualVersionConflict: (PyYAML 5.4.1 (/home/kt/.local/lib/python3.8/site-packages), Requirement.parse(‘pyyaml<7.0,>=6.0’), {‘cmsis-pack-manager’})

That really didn’t take long to find:

https://github.com/pyocd/cmsis-pack-manager/blob/65b3e3eb5/setup.cfg#L40

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyyaml dependency error while executing with python ...
I am getting the following error while trying to package and execute a script with PEX. Failed to execute PEX file. Needed macosx_10_14_x86_64- ......
Read more >
Package requirements inspection warning for Python ...
Workaround: It can be special-case removed by adding factory to the Ignore packages of that warning in PyCharm settings. Longer term, should the...
Read more >
QGIS 2.99 dev python import processing fails with ImportError
I'm starting to think it might have something to do with the yaml dependency, qgis 3 seems to be using the python 2...
Read more >
How to identify and resolve a dependency conflict
Find Divio's how-to guide to identifying and resolving a dependency conflict. Learn what steps to take if a deployment in the cloud or...
Read more >
CentOS 8: Use ansible_playbook_python for localhost ... - Gerrit
The kolla-ansible role also has an implicit dependency on PyYAML for managing kolla passwords. This change uses ansible_playbook_python as the Python ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found