You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Latest Poutyne breaks deepparse==0.9.13. Poutyne have dependency in requirements.txt to torchmetrics package without any specific version. There has been released new version of torchmetrics 15 hours ago (v1.6.0). Deepparse package works fine before that.
I recommend to use specific versions in Python packages to avoid these issues.
To Reproduce
Install deepparse==0.9.13 and use any existing code
Expected behavior
Should work without any issues
Logs
annotation | File "/app/src/main.py", line 9, in <module>
annotation | from deepparse.parser.address_parser import AddressParser
annotation | File "/opt/venv/lib/python3.12/site-packages/deepparse/__init__.py", line 4, in <module>
annotation | from .validations import *
annotation | File "/opt/venv/lib/python3.12/site-packages/deepparse/validations.py", line 3, in <module>
annotation | import poutyne
annotation | File "/opt/venv/lib/python3.12/site-packages/poutyne/__init__.py", line 21, in <module>
annotation | from .framework import *
annotation | File "/opt/venv/lib/python3.12/site-packages/poutyne/framework/__init__.py", line 22, in <module>
annotation | from .experiment import *
annotation | File "/opt/venv/lib/python3.12/site-packages/poutyne/framework/experiment.py", line 20, in <module>
annotation | from poutyne.framework.model_bundle import ModelBundle
annotation | File "/opt/venv/lib/python3.12/site-packages/poutyne/framework/model_bundle.py", line 55, in <module>
annotation | from poutyne.framework.model import Model
annotation | File "/opt/venv/lib/python3.12/site-packages/poutyne/framework/model.py", line 35, in <module>
annotation | from poutyne.framework.metrics import flatten_metric_names, get_callables_and_names, get_metric, rename_doubles
annotation | File "/opt/venv/lib/python3.12/site-packages/poutyne/framework/metrics/__init__.py", line 24, in <module>
annotation | from .predefined import *
annotation | File "/opt/venv/lib/python3.12/site-packages/poutyne/framework/metrics/predefined/__init__.py", line 2, in <module>
annotation | from .fscores import *
annotation | File "/opt/venv/lib/python3.12/site-packages/poutyne/framework/metrics/predefined/fscores.py", line 46, in <module>
annotation | from poutyne.framework.metrics.predefined.bincount import _bincount
annotation | File "/opt/venv/lib/python3.12/site-packages/poutyne/framework/metrics/predefined/bincount.py", line 43, in <module>
annotation | from torchmetrics.utilities.imports import _TORCH_GREATER_EQUAL_1_12
annotation | ImportError: cannot import name '_TORCH_GREATER_EQUAL_1_12' from 'torchmetrics.utilities.imports' (/opt/venv/lib/python3.12/site-packages/torchmetrics/utilities/imports.py). Did you mean: '_TORCH_GREATER_EQUAL_2_1'?
annotation exited with code 1
Describe the bug
Latest Poutyne breaks deepparse==0.9.13. Poutyne have dependency in requirements.txt to torchmetrics package without any specific version. There has been released new version of torchmetrics 15 hours ago (v1.6.0). Deepparse package works fine before that.
I recommend to use specific versions in Python packages to avoid these issues.
To Reproduce
Install deepparse==0.9.13 and use any existing code
Expected behavior
Should work without any issues
Logs
Desktop
Additional info
See links:
The text was updated successfully, but these errors were encountered: