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

PluginLoadError from mismatched requirements #579

Closed
zroger opened this issue Aug 4, 2020 · 1 comment · Fixed by #582
Closed

PluginLoadError from mismatched requirements #579

zroger opened this issue Aug 4, 2020 · 1 comment · Fixed by #582

Comments

@zroger
Copy link

zroger commented Aug 4, 2020

Between 1.2.2 and 1.2.3 my test suite started raising this exception:

tavern.util.exceptions.PluginLoadError: Error loading plugin requests = 
tavern._plugins.rest.tavernhook:TavernRestPlugin - (PyYAML 5.3.1 (/var/task), Requirement.parse('PyYAML==5.3'))

I have an unpinned PyYAML requirement in my project which is how I ended up with version 5.3.1, but tavern 1.2.3 wants exactly version 5.3, which was pinned in #577. Digging through the code, it looks like the exception comes from stevedore because the verify_requirements argument is used when loading the plugins.

To get around this issue, I've pinned tavern to 1.2.2 rather than pinning PyYAML since 5.3.1 is a security fix.

I'm not sure how to proceed to fix this in the long run. The two options I can see are to give the PyYAML requirement a looser version specifier, or to remove the verify_requirements argument. If you let me know which you prefer, I can try to put together a patch.

@michaelboulton
Copy link
Member

Should be fixed in 1.2.4

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