AttributeError: module 'pykwalify.core' has no attribute 'yaml'
See original GitHub issueHello, it looks like pykwalify has had a new release (1.8) which is breaking my tavern build with the following error:
ve/lib/python3.8/site-packages/tavern/schemas/files.py:16: in <module>
core.yaml.safe_load = functools.partial(yaml.load, Loader=IncludeLoader)
E AttributeError: module 'pykwalify.core' has no attribute 'yaml'
It looks like pykwalify has dropped/changed their default yaml parser which may be the culprit?
Could we maybe get tavern pinned to pykwalify 1.7 until it’s fixed?
https://github.com/Grokzen/pykwalify/releases https://github.com/taverntesting/tavern/blob/master/setup.cfg#L34
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
AttributeError: module 'yaml' has no attribute 'warnings'
I have a similar problem as following picture enter image description here. It is okay now when I install PyYAML package like below...
Read more >Partial schema issue when used with mapping #71 - GitHub
AttributeError Traceback (most recent call last) <ipython-input-2-6d13cd20baba> in <module>() 45 source_file="data.yml", ...
Read more >pykwalify - PyPI
pyKwalify. YAML/JSON validation library. This framework is a port with a lot of added functionality of the Java version of the framework kwalify...
Read more >Python Examples of pykwalify.core.Core - ProgramCreek.com
The following are 12 code examples of pykwalify.core.Core(). ... except SchemaError: raise InvalidDomain("Failed to validate your domain yaml.
Read more >AttributeError: module 'yaml' has no attribute 'load_all'
Issue - AttributeError: module 'yaml' has no attribute 'load_all' One possible reason, you may have accidentally created a yaml.py file or yaml.py file ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve pushed 1.12.2 which pins pykwalify to 1.7
I get annoying warnings every test because pykwalify 1.7 uses the imp module.
Above korvalds’s patch works fine, so could you please upgrade to pykwalify 1.8?