【v5.4】partially initialized module 'yaml' has no attribute '__with_libyaml__'
See original GitHub issueHi there, Thank you for releasing the new version 5.4. When I imported version 5.4, I found the following error and would like to report it.
2021-01-20 12:23:20 import yaml
2021-01-20 12:23:20 File "/root/.local/lib/python3.8/site-packages/yaml/__init__.py", line 13, in <module>
2021-01-20 12:23:20 from .cyaml import *
2021-01-20 12:23:20 File "/root/.local/lib/python3.8/site-packages/yaml/cyaml.py", line 7, in <module>
2021-01-20 12:23:20 from _yaml import CParser, CEmitter
2021-01-20 12:23:20 File "/usr/local/lib/python3.8/site-packages/_yaml/__init__.py", line 8, in <module>
2021-01-20 12:23:20 if not yaml.__with_libyaml__:
2021-01-20 12:23:20 AttributeError: partially initialized module 'yaml' has no attribute '__with_libyaml__' (most likely due to a circular import)
The reproduced environment is python: 3.8-slim docker image.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:13
- Comments:23 (14 by maintainers)
Top Results From Across the Web
module 'yaml' has no attribute 'FullLoader' - Stack Overflow
Keep in mind that pip's dependency resolver does not currently take into account all the packages that are installed for a given application....
Read more >PyYAML is a YAML parser and emitter for Python.
PyYAML is a YAML parser and emitter for Python. Overview. YAML is a data serialization format designed for human readability and interaction with...
Read more >yaml reader python | The AI Search Engine You Control
This article teaches you how to load, read, and write YAML files with PyYAML. In addition, you'll learn how to install it on...
Read more >[Solved] AttributeError: 'module' object has no attribute
Click here to subscribe - https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww▻Instagram ...
Read more >Zentyal 2.2 Changelog - Zentyal Linux Small Business Server
modal boxes in foreign selectors * Each module can have now its ... Delete no longer needed workaround for gconf with "removed" attribute...
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 FreeTop 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
Top GitHub Comments
Release 5.4.1 in flight with the fix.
For me actually going from PyYAML==5.2.1 to 5.4 broke my ansible.
The solution was to revert to 5.3.
Sample of problem:
Hope this helps.