Issue
Imunify360 could not be installed or launched due to this error:
[2022-07-26 07:23:15] import requests
[2022-07-26 07:23:15] File "/opt/alt/python38/lib/python3.8/site-packages/requests/__init__.py", line 45, in <module>
[2022-07-26 07:23:15] from .exceptions import RequestsDependencyWarning
[2022-07-26 07:23:15] File "/opt/alt/python38/lib/python3.8/site-packages/requests/exceptions.py", line 9, in <module>
[2022-07-26 07:23:15] from urllib3.exceptions import HTTPError as BaseHTTPError
[2022-07-26 07:23:15] ImportError: cannot import name 'HTTPError' from 'urllib3.exceptions' (/opt/alt/python38/lib/python3.8/site-packages/urllib3/exceptions.py)
[2022-07-26 07:24:15] Something went wrong during Imunify360 start up
Environment
- Imunify360
- alt-python38
- CentOS/AlmaLinux/CloudLinux
- Any supported panel
Solution
It is necessary to check the integrity of alt-python packages, check if the script with which the problem occurs is empty, and, if necessary, reinstall the packages. Example with alt-python38-urllib3:
1. Check that the file from the error is empty:
# cat /opt/alt/python38/lib/python3.8/site-packages/urllib3/exceptions.py
#
2. Find which package the file belongs to:
# yum provides /opt/alt/python38/lib/python3.8/site-packages/urllib3/exceptions.py
...
alt-python38-urllib3-1.26.6-3.el7.noarch : Python HTTP library with thread-safe connection pooling and file post
Repo : @imunify360
Matched from:
Filename : /opt/alt/python38/lib/python3.8/site-packages/urllib3/exceptions.py
...
#
3. Verify this package:
# rpm -V alt-python38-urllib3
...
S.5...... /opt/alt/python38/lib/python3.8/site-packages/urllib3/exceptions.py
...
#
4. Reinstall it to fix the issue with empty files:
# yum reinstall alt-python38-urllib3
Comments
0 comments
Please sign in to leave a comment.