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
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/synthcity/plugins/core/models/mlp.py", line 13, in
from synthcity.plugins.core.models.factory import get_nonlin
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/synthcity/plugins/core/models/factory.py", line 8, in
from tsai.models.InceptionTime import InceptionTime
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/tsai/models/InceptionTime.py", line 7, in
from ..imports import *
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/tsai/imports.py", line 57, in
from fastcore.dispatch import *
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/fastcore/dispatch.py", line 2, in getattr
raise ImportError(
ImportError: Could not import 'path' from fastcore.dispatch - this module has been moved to the fasttransform package.
To migrate your code, please see the migration guide at: https://answerdotai.github.io/fasttransform/fastcore_migration_guide.html
The text was updated successfully, but these errors were encountered:
I've run into the same issue. As the error mentions, fastcore.dispatch has been moved to another package in fastcore version 1.8.0. As a temporary workaround you can manually pin the fastcore package version to <1.8.0.
The problem is that there are breaking changes in fastai/fastcore's latest release that break tsai which is a dependency of synthcity.
As has been pointed by @JimAchterbergLUMC the problem can be circumvented by fixing the dependencies fastcore<1.8 and fastai<2.8 after install synthcity into you environment. I will fix this in the requirements asap and then will remove this pin as soon as tsai fix the issue at the source by migrating to the latest fastcore.
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/synthcity/plugins/core/models/mlp.py", line 13, in
from synthcity.plugins.core.models.factory import get_nonlin
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/synthcity/plugins/core/models/factory.py", line 8, in
from tsai.models.InceptionTime import InceptionTime
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/tsai/models/InceptionTime.py", line 7, in
from ..imports import *
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/tsai/imports.py", line 57, in
from fastcore.dispatch import *
File "/root/miniconda3/envs/dsj/lib/python3.10/site-packages/fastcore/dispatch.py", line 2, in getattr
raise ImportError(
ImportError: Could not import 'path' from fastcore.dispatch - this module has been moved to the fasttransform package.
To migrate your code, please see the migration guide at: https://answerdotai.github.io/fasttransform/fastcore_migration_guide.html
The text was updated successfully, but these errors were encountered: