-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Hello, I encountered an issue while attempting to run the official MLflow image. Can anyone assist me with this? I'm a beginner. Thanks #11950
Comments
@maramoueslati can you give us code/command that can reproduce the issue? |
Good morning , when i tried to run this image "ghcr.io/mlflow/mlflow:v2.12.1"
i got that error message and also when i tried to use it in a
docker-compose file
…On Thu, 9 May 2024, 08:21 Harutaka Kawamura, ***@***.***> wrote:
@maramoueslati <https://github.com/maramoueslati> can you give us
code/command that can reproduce the issue?
—
Reply to this email directly, view it on GitHub
<#11950 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7AWYQOTJTMVVCWX4SEAA7LZBMPV3AVCNFSM6AAAAABHN3XSXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBSGEYDCMRZHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Good morning , when i tried to run this image "ghcr.io/mlflow/mlflow:v2.12.1"
i got that error message and also when i tried to use it in a
docker-compose file
Le jeu. 9 mai 2024 à 08:21, Harutaka Kawamura ***@***.***> a
écrit :
… @maramoueslati <https://github.com/maramoueslati> can you give us
code/command that can reproduce the issue?
—
Reply to this email directly, view it on GitHub
<#11950 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7AWYQOTJTMVVCWX4SEAA7LZBMPV3AVCNFSM6AAAAABHN3XSXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBSGEYDCMRZHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I ran into the same issue. The official image seems to be missing the python mysql driver.
Hopefully they fix it upstream with the next release. |
@mlflow/mlflow-team Please assign a maintainer and start triaging this issue. |
@maramoueslati can you try what @cgilviadee suggested? I think it should work. |
Issues Policy acknowledgement
Where did you encounter this bug?
Local machine
Willingness to contribute
Yes. I can contribute a fix for this bug independently.
MLflow version
2.12.1
System information
j
Describe the problem
tracker_mlflow | return sqlalchemy.create_engine(db_uri, pool_pre_ping=True, **pool_kwargs)
tracker_mlflow | File "", line 2, in create_engine
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned
tracker_mlflow | return fn(*args, **kwargs) # type: ignore[no-any-return]
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 599, in create_engine
tracker_mlflow | dbapi = dbapi_meth(**dbapi_args)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/pymysql.py", line 75, in import_dbapi
tracker_mlflow | return import("pymysql")
tracker_mlflow | ModuleNotFoundError: No module named 'pymysql'
tracker_mlflow | 2024/05/08 23:43:17 ERROR mlflow.cli: Error initializing backend store
tracker_mlflow | 2024/05/08 23:43:17 ERROR mlflow.cli: No module named 'pymysql'
tracker_mlflow | Traceback (most recent call last):
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/cli.py", line 425, in server
tracker_mlflow | initialize_backend_stores(backend_store_uri, registry_store_uri, default_artifact_root)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/server/handlers.py", line 306, in initialize_backend_stores
tracker_mlflow | _get_tracking_store(backend_store_uri, default_artifact_root)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/server/handlers.py", line 283, in _get_tracking_store
tracker_mlflow | _tracking_store = _tracking_store_registry.get_store(store_uri, artifact_root)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/registry.py", line 42, in get_store
tracker_mlflow | return self._get_store_with_resolved_uri(resolved_store_uri, artifact_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/registry.py", line 52, in _get_store_with_resolved_uri
tracker_mlflow | return builder(store_uri=resolved_store_uri, artifact_uri=artifact_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/server/handlers.py", line 137, in _get_sqlalchemy_store
tracker_mlflow | return SqlAlchemyStore(store_uri, artifact_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/store/tracking/sqlalchemy_store.py", line 151, in init
tracker_mlflow | ] = mlflow.store.db.utils.create_sqlalchemy_engine_with_retry(db_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/store/db/utils.py", line 230, in create_sqlalchemy_engine_with_retry
tracker_mlflow | engine = create_sqlalchemy_engine(db_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/store/db/utils.py", line 286, in create_sqlalchemy_engine
tracker_mlflow | return sqlalchemy.create_engine(db_uri, pool_pre_ping=True, **pool_kwargs)
tracker_mlflow | File "", line 2, in create_engine
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned
tracker_mlflow | return fn(*args, **kwargs) # type: ignore[no-any-return]
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 599, in create_engine
tracker_mlflow | dbapi = dbapi_meth(**dbapi_args)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/pymysql.py", line 75, in import_dbapi
tracker_mlflow | return import("pymysql")
tracker_mlflow | ModuleNotFoundError: No module named 'pymysql'
tracker_mlflow | 2024/05/08 23:44:19 ERROR mlflow.cli: Error initializing backend store
tracker_mlflow | 2024/05/08 23:44:19 ERROR mlflow.cli: No module named 'pymysql'
tracker_mlflow | Traceback (most recent call last):
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/cli.py", line 425, in server
tracker_mlflow | initialize_backend_stores(backend_store_uri, registry_store_uri, default_artifact_root)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/server/handlers.py", line 306, in initialize_backend_stores
tracker_mlflow | _get_tracking_store(backend_store_uri, default_artifact_root)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/server/handlers.py", line 283, in _get_tracking_store
tracker_mlflow | _tracking_store = _tracking_store_registry.get_store(store_uri, artifact_root)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/registry.py", line 42, in get_store
tracker_mlflow | return self._get_store_with_resolved_uri(resolved_store_uri, artifact_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/tracking/_tracking_service/registry.py", line 52, in _get_store_with_resolved_uri
tracker_mlflow | return builder(store_uri=resolved_store_uri, artifact_uri=artifact_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/server/handlers.py", line 137, in _get_sqlalchemy_store
tracker_mlflow | return SqlAlchemyStore(store_uri, artifact_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/store/tracking/sqlalchemy_store.py", line 151, in init
tracker_mlflow | ] = mlflow.store.db.utils.create_sqlalchemy_engine_with_retry(db_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/store/db/utils.py", line 230, in create_sqlalchemy_engine_with_retry
tracker_mlflow | engine = create_sqlalchemy_engine(db_uri)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/mlflow/store/db/utils.py", line 286, in create_sqlalchemy_engine
tracker_mlflow | return sqlalchemy.create_engine(db_uri, pool_pre_ping=True, **pool_kwargs)
tracker_mlflow | File "", line 2, in create_engine
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned
tracker_mlflow | return fn(*args, **kwargs) # type: ignore[no-any-return]
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/sqlalchemy/engine/create.py", line 599, in create_engine
tracker_mlflow | dbapi = dbapi_meth(**dbapi_args)
tracker_mlflow | File "/usr/local/lib/python3.10/site-packages/sqlalchemy/dialects/mysql/pymysql.py", line 75, in import_dbapi
tracker_mlflow | return import("pymysql")
tracker_mlflow | ModuleNotFoundError: No module named 'pymysql'
Tracking information
Code to reproduce issue
Stack trace
REPLACE_ME
The text was updated successfully, but these errors were encountered: