No module named 'MySQLdb.cursors'
Traceback (most recent call last):
File "/usr/sbin/cagefsctl", line 22, in
import cagefsctl
File "/usr/share/cagefs/cagefsctl.py", line 53, in
import cagefshooks
File "/usr/share/cagefs/cagefshooks.py", line 23, in
from clcommon.public_hooks.bundle.plesk import remove_hook_by_str_id_and_location
File "/opt/alt/python37/lib/python3.7/site-packages/clcommon/public_hooks/bundle/plesk/__init__.py", line 11, in
from .manager import (
File "/opt/alt/python37/lib/python3.7/site-packages/clcommon/public_hooks/bundle/plesk/manager.py", line 19, in
from clcommon.cpapi.plugins.plesk import query_sql
File "/opt/alt/python37/lib/python3.7/site-packages/clcommon/cpapi/plugins/plesk.py", line 25, in
from MySQLdb.cursors import DictCursor
ModuleNotFoundError: No module named 'MySQLdb.cursors'
How to solve this error.???
-
You can try to install the missing module with: yum install MySQL-python 0 -
Thanks, its solved. 0 -
I'm happy to hear Andrew could help! Don't hesitate to reach out if you ever need assistance. 0
Please sign in to leave a comment.
Comments
3 comments