1. Error message:
An error occurs when executing the ansible command
ERROR! Unexpected Exception, this is probably a bug: Error -5 while decompressing data: incomplete or truncated stream
The detailed error reports are as follows
[root@localhost tmp]# ansible -h
ERROR! Unexpected Exception, this is probably a bug: Error -5 while decompressing data: incomplete or truncated stream
the full traceback was:
Traceback (most recent call last):
File "/usr/bin/ansible", line 97, in <module>
mycli = getattr(__import__("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
File "/usr/lib/python2.7/site-packages/ansible/cli/__init__.py", line 38, in <module>
from ansible.inventory.manager import InventoryManager
File "/usr/lib/python2.7/site-packages/ansible/inventory/manager.py", line 36, in <module>
from ansible.plugins.loader import inventory_loader
File "/usr/lib/python2.7/site-packages/ansible/plugins/loader.py", line 22, in <module>
from ansible.parsing.utils.yaml import from_yaml
File "/usr/lib/python2.7/site-packages/ansible/parsing/utils/yaml.py", line 17, in <module>
from ansible.parsing.yaml.loader import AnsibleLoader
File "/usr/lib/python2.7/site-packages/ansible/parsing/yaml/loader.py", line 30, in <module>
from ansible.parsing.yaml.constructor import AnsibleConstructor
File "/usr/lib/python2.7/site-packages/ansible/parsing/yaml/constructor.py", line 29, in <module>
from ansible.parsing.vault import VaultLib
File "/usr/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py", line 42, in <module>
from cryptography.hazmat.backends import default_backend
File "/usr/lib64/python2.7/site-packages/cryptography/hazmat/backends/__init__.py", line 7, in <module>
import pkg_resources
File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 70, in <module>
File "build/bdist.linux-x86_64/egg/pkg_resources/extern/__init__.py", line 43, in load_module
__import__(extant)
error: Error -5 while decompressing data: incomplete or truncated stream
2. Background of error reporting
When installing setuptools inansible-playbook, it terminated unexpectedly, and then execute ansible command to report this error,
3. Solution:
Reset setuptools-33.1.1.zip package decompression and installation:
cd setuptools-33.1.1
python setup.py install
It is normal to try the ansible command after execution. Some friends may not be setuptools, or they may not execute after installing into a package. Please try it yourself.
Read More:
- [leetcode] 295. Find Median from Data Stream Python
- You can run the Ansible Playbook in Python by hand
- [Solved] Pdfplumber Read PDF Sheet Error: AttributeError: function/symbol ‘ARC4_stream_init‘ not found in library
- SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX
- Zlib.error: error – 3 while decompressing: incorrect header check in Python
- [Solved] Python Read bam File Error: &&OSError: no BGZF EOF marker; file may be truncated
- SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX
- Extracting Data from XML (Using Python to Access Web Data)
- [Solved] raise ContentTooShortError(urllib.error.ContentTooShortError: <urlopen error retrieval incomplete:
- Decode PUP data Error when reading radar data [How to Solve]
- command ‘gcc’ failed with exit status 1 error while installing scrapy
- OSError libespeak.so.1 error: no such file or directory [How to Solve]
- Pychar can’t connect to Python console, but it can run. Py file, and Anaconda’s command line can run Python command
- [Solved] lto1: fatal error: bytecode stream..generated with LTO version 6.2 instead of the expected 8.1 compi
- [Solved] error in REfO setup command: use_2to3 is invalid.
- Python PIP TypeError: expected str, bytes or os.PathLike object, not int
- [Solved] Backtrader_plotting Error: RuntimeError: Unexpected data type
- PIP Install Mysqlclient error C1083: Cannot open include file: ‘mysql.h‘: No such file or directory
- Python: How to parses HTML, extracts data, and generates word documents
- [Solved] Add-apt-repository Command Error: AttributeError: ‘Thread‘ object has no attribute ‘isAlive‘