Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception: ContextualVersionConflict with PyYAML #745

Closed
mikey- opened this issue Apr 30, 2021 · 3 comments
Closed

Unhandled Exception: ContextualVersionConflict with PyYAML #745

mikey- opened this issue Apr 30, 2021 · 3 comments

Comments

@mikey-
Copy link

mikey- commented Apr 30, 2021

I have recently submitted a PR on aws-cloudformation-resource-providers-rds, which is using codebuild to run CI/CD, which is currently failing. While I don't have access to the build logs, I have been provided with the excerpt below and asked to open an issue here.

[2021-04-29T00:37:09Z] DEBUG    - Unhandled exception
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/rpdk/core/cli.py", line 100, in main
    args.command(args)
  File "/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/rpdk/core/generate.py", line 14, in generate
    project.load()
  File "/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/rpdk/core/project.py", line 412, in load
    self.load_settings()
  File "/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/rpdk/core/project.py", line 201, in load_settings
    self.validate_and_load_resource_settings(raw_settings)
  File "/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/rpdk/core/project.py", line 230, in validate_and_load_resource_settings
    self._plugin = load_plugin(raw_settings["language"])
  File "/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/rpdk/core/plugin_registry.py", line 27, in load_plugin
    return PLUGIN_REGISTRY[language]()()
  File "/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in load
    self.require(*args, **kwargs)
  File "/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2472, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages/pkg_resources/__init__.py", line 792, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (PyYAML 5.1.2 (/root/.pyenv/versions/3.7.6/lib/python3.7/site-packages), Requirement.parse('pyyaml>=5.4; python_version != "3.4" and python_version != "3.5"'), {'cfn-lint'})

Any help you can provide would be greatly appreciated :) Thank you!

@PatMyron
Copy link
Contributor

aws-cloudformation/cfn-lint#1992
Try upgrading:
pip3 install pyyaml --upgrade

@mikey-
Copy link
Author

mikey- commented Apr 30, 2021

Ah, I see! Thank you so much :^) You're a legend!

@mikey-
Copy link
Author

mikey- commented Apr 30, 2021

Worked a treat, thanks again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants