-
Notifications
You must be signed in to change notification settings - Fork 248
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
ValueError error when importing the pip package #40
Comments
@dsinkerii i don't think pytorch is even compatible with python 3.11 |
Oh, i see. I will try to downgrade it and see if this is going to help. Thanks! |
Yep, that was the issue! thanks! |
@lucidrains pytorch 2.0 supports python 3.11, except for the problem reported here is unrelated to pytorch. seems the the message says to use a factory for default initialization of fields. probably like this: @dataclass
class FairseqConfig(FairseqDataclass):
- common: CommonConfig = CommonConfig()
+ common: CommonConfig = field(default_factory=CommonConfig) this is a Python 3.11 compatibility problem that |
Hi there! So im kinda new to all of this, but when i try to import the pip package, i get this error:
does anybody know a way to fix this error? Thanks!
The text was updated successfully, but these errors were encountered: