env:
RHEL-8.8
python-2.7.18
Error Log
[root@cve1 hue]# /usr/lib/hue/build/env/bin/pip2.7 install mysqlclient
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already satisfied: mysqlclient in /usr/lib64/python2.7/site-packages (1.4.6)
[root@cve1 hue]# cd /usr/lib/hue/build/env
[root@cve1 env]# bin/hue syncdb
/usr/lib/hue/build/env/lib/python2.7/site-packages/requests_kerberos-0.12.0-py2.7.egg/requests_kerberos/kerberos_.py:11: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography import x509
[18/Apr/2024 14:52:54 +0000] settings DEBUG DESKTOP_DB_TEST_NAME SET: /usr/lib/hue/desktop/desktop-test.db
[18/Apr/2024 14:52:54 +0000] settings DEBUG DESKTOP_DB_TEST_USER SET: hue_test
Traceback (most recent call last):
File "bin/hue", line 14, in <module>
load_entry_point('desktop', 'console_scripts', 'hue')()
File "/usr/lib/hue/desktop/core/src/desktop/manage_entry.py", line 239, in entry
raise e
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: libmysqlclient.so.18: cannot open shared object file: No such file or directory.
Did you install mysqlclient or MySQL-python?
[root@cve1 env]# /usr/lib/hue/build/env/bin/pip install mysql-python
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already satisfied: mysql-python in ./lib/python2.7/site-packages/MySQL_python-1.2.5-py2.7-linux-x86_64.egg (1.2.5)