zhangdong1015 opened a new issue, #33415:
URL: https://github.com/apache/superset/issues/33415

   ### Bug description
   
   This mirrors the behavior reported in #33241 , but applying the solution 
(reinstalling dependencies) did not resolve it in my case
   
   ### Screenshots/recordings
   
   2025-05-13 11:04:59,693:ERROR:superset.app:Failed to create app
   Traceback (most recent call last):
     File "/app/.venv/lib/python3.10/site-packages/superset/app.py", line 40, 
in create_app
       app_initializer.init_app()
     File 
"/app/.venv/lib/python3.10/site-packages/superset/initialization/__init__.py", 
line 465, in init_app
       self.setup_db()
     File 
"/app/.venv/lib/python3.10/site-packages/superset/initialization/__init__.py", 
line 661, in setup_db
       pessimistic_connection_handling(db.engine)
     File 
"/app/.venv/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py", line 
998, in engine
       return self.get_engine()
     File 
"/app/.venv/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py", line 
1017, in get_engine
       return connector.get_engine()
     File 
"/app/.venv/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py", line 
594, in get_engine
       self._engine = rv = self._sa.create_engine(sa_url, options)
     File 
"/app/.venv/lib/python3.10/site-packages/flask_sqlalchemy/__init__.py", line 
1027, in create_engine
       return sqlalchemy.create_engine(sa_url, **engine_opts)
     File "<string>", line 2, in create_engine
     File 
"/app/.venv/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py", line 
375, in warned
       return fn(*args, **kwargs)
     File 
"/app/.venv/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 
544, in create_engine
       dbapi = dialect_cls.dbapi(**dbapi_args)
     File 
"/app/.venv/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/mysqldb.py", 
line 150, in dbapi
       return __import__("MySQLdb")
   ModuleNotFoundError: No module named 'MySQLdb'
   
   
   ### Superset version
   
   4.1.2
   
   ### Python version
   
   3.10
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to