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

pyyaml dependency version conflicts with netmiko #15

Closed
1 task done
carter13555345 opened this issue Jan 3, 2025 · 2 comments
Closed
1 task done

pyyaml dependency version conflicts with netmiko #15

carter13555345 opened this issue Jan 3, 2025 · 2 comments
Labels
invalid This doesn't seem right

Comments

@carter13555345
Copy link

Contact Details

No response

What happened?

ciscoconfparse2 0.7.74 cannot be installed in the same interpreter as the latest version of netmiko available on PyPI (4.5.0). This is due to conflicting version constraints on pyyaml dependency.

CiscoConfParse Version

0.7.74

What Operating System are you using?

Microsoft Windows, Linux - Debian, Ubuntu, CentOS, RHEL or others

What Python version(s) have this problem?

Python 3.12, Python 3.11

Show us how to reproduce the problem. Please tell us if the problem is specific to certain inputs or situations.

pip install ciscoconfparse2==0.7.74 netmiko==4.5.0

Python tracebacks

n/a

Relevant log output

ERROR: Cannot install ciscoconfparse2==0.7.74 and netmiko==4.5.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    ciscoconfparse2 0.7.74 depends on pyyaml==6.0.1
    netmiko 4.5.0 depends on pyyaml>=6.0.2

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

Code of Conduct

@carter13555345 carter13555345 added the bug Something isn't working label Jan 3, 2025
@mpenning mpenning added invalid This doesn't seem right and removed bug Something isn't working labels Jan 4, 2025
@mpenning
Copy link
Owner

mpenning commented Jan 4, 2025

Hello, this is not a bug; it's simply an incompatibility and you should file the issue with netmiko because version 0.7.74 was out long before netmiko 4.5.0.

The workaround is to use netmiko < 4.5.0.

@mpenning
Copy link
Owner

mpenning commented Jan 4, 2025

Please see version 0.7.77 for the latest compatibility changes.

@mpenning mpenning closed this as completed Jan 4, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2025
@mpenning mpenning changed the title [Bug]: pyyaml dependency version conflicts with netmiko pyyaml dependency version conflicts with netmiko Feb 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants