Skip to content

fix: remove strict pdf extra dependency check on report import (closes #147) - #179

Open
botbikamordehai2-sketch wants to merge 1 commit into
sb-ai-lab:masterfrom
botbikamordehai2-sketch:fix/issue-147-1786529000
Open

fix: remove strict pdf extra dependency check on report import (closes #147)#179
botbikamordehai2-sketch wants to merge 1 commit into
sb-ai-lab:masterfrom
botbikamordehai2-sketch:fix/issue-147-1786529000

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

The lightautoml/report/__init__.py file includes a call to __validate_extra_deps("pdf") at import time. This causes any import of lightautoml.automl.presets.tabular_presets to fail if the optional pdf dependencies are not installed, even if the user only needs TabularAutoML/TabularUtilizedAutoML and has no intention of generating PDF reports.

Fix

Removed the immediate validation call from lightautoml/report/__init__.py. The optional dependencies will still be checked when actually using report functionality, if those modules perform the validation themselves (or this is now the responsibility of report users). This allows core imports to succeed without requiring the pdf extra.

Closes #147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

from lightautoml.automl.presets.tabular_presets import TabularAutoML, TabularUtilizedAutoML returns error

1 participant