hi, sorry to bother you but i have an error when i try aapanel,
Can anyone help me because I'm still a beginner at this 🙂
Traceback (most recent call last):
File "class/panelMysql.py", line 26, in __Conn
socket_re = re.search(r"socket\s=\s(.+)",myconf)
File "/www/server/panel/pyenv/lib/python3.7/re.py", line 185, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/init.py", line 1814, in publicObject
return run_exec().run(toObject, defs, get)
File "/www/server/panel/BTPanel/init.py", line 1766, in run
result = getattr(toObject,get.action)(get)
File "class/database.py", line 273, in AddDatabase
self._check_empty_user_passwd()
File "class/database.py", line 268, in _check_empty_user_passwd
mysql_obj.execute("delete from mysql.user where user='' and password=''")
File "class/panelMysql.py", line 104, in execute
if not self.Conn(): return self.DB_ERR
File "class/panelMysql.py", line 66, in __Conn
except MySQLdb.Error as e:
UnboundLocalError: local variable 'MySQLdb' referenced before assignment