Open syaffers opened 1 year ago
@syaffers Can you install pytorch-lightning
?
pip install pytorch-lightning
@harupy Aha, that did the trick it seems. I went to the lightning website and that was the recommended library to install. I guess we can add this as a new feature to be added so that new users can use lightning
without needing to install pytorch_lightining
Is pytorch_lightining
deprecated?
No, I don't believe so. Actually I had some issues just by installing pytorch_lightning
alongside this new lightning
library even if I installed v1.7.7
(which is compatible with mlflow
). I has to reset my virtual environment and reinstall the packages (except lightning
) and I'm able to autolog metrics again.
Edit: changed log to autolog since I didn't test the manual log functions.
@BenWilson2 @dbczumar @harupy @WeichenXu123 Please assign a maintainer and start triaging this issue.
Issues Policy acknowledgement
Willingness to contribute
Yes. I can contribute a fix for this bug independently.
MLflow version
System information
Describe the problem
A module import error was encountered when calling the
mlflow.pytorch.autolog()
function in a recent installation of mlflow and lightning.ai (previously called pytorch-lightning) library. This is due to the change in the package name of the lightning library which mlflow still assumes ispytorch_lightning
but is nowlightning
.Tracking information
MLflow version: 1.30.0 Tracking URI: http://localhost:5000 Artifact URI: data/1/be290c11e1074b3bb7c69537387a5eb2/artifacts
Code to reproduce issue
Stack trace
Other info / logs
requirements.txt:
What component(s) does this bug affect?
area/artifacts
: Artifact stores and artifact loggingarea/build
: Build and test infrastructure for MLflowarea/docs
: MLflow documentation pagesarea/examples
: Example codearea/model-registry
: Model Registry service, APIs, and the fluent client calls for Model Registryarea/models
: MLmodel format, model serialization/deserialization, flavorsarea/recipes
: Recipes, Recipe APIs, Recipe configs, Recipe Templatesarea/projects
: MLproject format, project running backendsarea/scoring
: MLflow Model server, model deployment tools, Spark UDFsarea/server-infra
: MLflow Tracking server backendarea/tracking
: Tracking Service, tracking client APIs, autologgingWhat interface(s) does this bug affect?
area/uiux
: Front-end, user experience, plotting, JavaScript, JavaScript dev serverarea/docker
: Docker use across MLflow's components, such as MLflow Projects and MLflow Modelsarea/sqlalchemy
: Use of SQLAlchemy in the Tracking Service or Model Registryarea/windows
: Windows supportWhat language(s) does this bug affect?
language/r
: R APIs and clientslanguage/java
: Java APIs and clientslanguage/new
: Proposals for new client languagesWhat integration(s) does this bug affect?
integrations/azure
: Azure and Azure ML integrationsintegrations/sagemaker
: SageMaker integrationsintegrations/databricks
: Databricks integrations