-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Image Tag 4.1.1 is missing support for MySQL #31459
Comments
Hello, @MVanDerlofske! I'm here to help you with any bugs, questions, or contributions you may have. Let's get this sorted out together! The issue with the Docker Image tagged 4.1.1 for Superset not supporting MySQL as a datasource is due to the absence of the To resolve this, you need to manually install the
If you're using a customized Docker image, you should rebuild your local image with the new driver included by running: docker compose build --force-rm Then, relaunch Superset. For more detailed instructions, you can refer to the Superset documentation on installing database drivers in Docker images [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
attempts to install mysql manually failed, I tried using both pymysql and mysqlclient. |
Thank you for reporting. I agree with Dosu bot, I am hopeful that if you can get mysqlclient installed that will explain what's going on -- and I think it's bundled in the So far the best way I've seen to install packages with 4.1.1 is here, #30553 (comment) -- though I note they say this didn't work for |
I'll mark this needs-more-info b/c I'd like to know that installing |
have the same issue when I use the helm chart
Defaulted container "superset" out of: superset, wait-for-postgres (init) (...) |
Bug description
When using the Docker Image tagged 4.1.1 it appears to be missing the ability to support MySQL as a datasource (among others).
Reproduce (performed on both my local system and a newly setup test system):
Open the Superset interface and add a new database connection. You will note that the MySQL and Presto options are missing.
Screenshots/recordings
Screenshot of Add Database window on 4.1.1 tag:
Screenshot of editing an existing MySQL connection from an upgraded system:
Screenshot of expected add database window (taken for latest-dev 2024-12-14):
Screenshot of edit database connection window (taken for latest-dev 2024-12-14):
Superset version
4.1.1
Python version
I don't know
Node version
I don't know
Browser
Chrome
Additional context
Error callstack:
2024-12-14 16:11:45,537:warning:superset.views.error_handling:SupersetErrorsException
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.10/site-packages/flask_appbuilder/security/decorators.py", line 95, in wraps
return f(self, *args, **kwargs)
File "/app/superset/views/base_api.py", line 119, in wraps
duration, response = time_function(f, self, *args, **kwargs)
File "/app/superset/utils/core.py", line 1364, in time_function
response = func(*args, **kwargs)
File "/app/superset/views/base_api.py", line 91, in wraps
return f(self, *args, **kwargs)
File "/app/superset/utils/log.py", line 303, in wrapper
value = f(*args, **kwargs)
File "/app/superset/sqllab/api.py", line 409, in execute_sql_query
command_result: CommandResult = command.run()
File "/app/superset/utils/decorators.py", line 266, in wrapped
return on_error(ex)
File "/app/superset/utils/decorators.py", line 236, in on_error
raise ex
File "/app/superset/utils/decorators.py", line 259, in wrapped
result = func(*args, **kwargs)
File "/app/superset/commands/sql_lab/execute.py", line 105, in run
status = self._run_sql_json_exec_from_scratch()
File "/app/superset/commands/sql_lab/execute.py", line 158, in _run_sql_json_exec_from_scratch
return self._sql_json_executor.execute(
File "/app/superset/sqllab/sql_json_executer.py", line 111, in execute
raise SupersetErrorsException(
superset.exceptions.SupersetErrorsException: [SupersetError(message="No module named 'MySQLdb'", error_type=<SupersetErrorType.GENERIC_DB_ENGINE_ERROR: 'GENERIC_DB_ENGINE_ERROR'>, level=<ErrorLevel.ERROR: 'error'>, extra={'engine_name': 'MySQL', 'issue_codes': [{'code': 1002, 'message': 'Issue 1002 - The database returned an unexpected error.'}]})]
Checklist
The text was updated successfully, but these errors were encountered: