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.

Error: ContextualVersionConflict ruamel/schema-salad

See original GitHub issue

Expected Behavior

cwltool should run and show command line usage

Actual Behavior

cwltool fails with this error:

pkg_resources.ContextualVersionConflict: (ruamel.yaml 0.15.15  (/tmp/env/lib/python2.7/site-packages),  Requirement.parse('ruamel.yaml<=0.15.2,>=0.12.4'), set(['schema-salad']))

Workflow Code

virtualenv env
source env/bin/activate
pip install --upgrade cwltool
cwltool

Full Traceback

Traceback (most recent call last):
  File "/tmp/env/bin/cwltool", line 11, in <module>
    sys.exit(main())
  File "/tmp/env/local/lib/python2.7/site-packages/cwltool/main.py", line 661, in main
    _logger.info(versionfunc())
  File "/tmp/env/local/lib/python2.7/site-packages/cwltool/main.py", line 574, in versionstring
    pkg = pkg_resources.require("cwltool")
  File "/tmp/env/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/tmp/env/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 834, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (ruamel.yaml 0.15.15 (/tmp/env/lib/python2.7/site-packages), Requirement.parse('ruamel.yaml<=0.15.2,>=0.12.4'), set(['schema-salad']))

Your Environment

Tried on both macos and Ubuntu 16.04.1 LTS

  • cwltool version: fails with the same error.

Notes:

If I do this first everything works fine:

pip install ruamel.yaml==0.15.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
manu-chromacommented, Jun 29, 2017

Thanks for reporting. I’ve created a patch that should take care of this: https://github.com/common-workflow-language/cwltool/pull/450

0reactions
mr-ccommented, Jun 30, 2017

Thanks for the update @Unode , and again my apologies. Thank you @johnbradley for the report.

Read more comments on GitHub >

github_iconTop Results From Across the Web

common-workflow-language/common-workflow-language - Gitter
I'm struggling to upgrade cwltool stain@biggiebuntu:~$ pip install --upgrade cwltool ... Collecting ruamel.yaml>=0.12.4 (from cwltool) Using cached ...
Read more >
ContextualVersionConflict when importing guesslang package
When importing guesslang package, I've got ContextualVersionConflict error about html5lib package. ContextualVersionConflict: (html5lib ...
Read more >
ContextualVersionConflict in Google Colab · Issue #57 - GitHub
Hi, I'm having a lot of trouble with this package on Google Colab: !pip install --quiet niwidgets from niwidgets import NiftiWidget ...
Read more >
cwl-airflow from Barski-lab - GithubHelp
hello, when i try to install cwl-airflow, this problem occur. i pre install ... rich-9.2.0 ruamel.yaml-0.16.5 schema-salad-7.1.20210518142926 setproctit ...
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