Skip to content

error #334

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

Open
jjwwno opened this issue Apr 19, 2025 · 2 comments
Open

error #334

jjwwno opened this issue Apr 19, 2025 · 2 comments

Comments

@jjwwno
Copy link

jjwwno commented Apr 19, 2025

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

@JimAchterbergLUMC
Copy link

JimAchterbergLUMC commented Apr 23, 2025

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.

@robsdavis
Copy link
Contributor

Thanks for submitting the issue @jjwwno.

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.

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

No branches or pull requests

3 participants