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
{{ message }}
Repository navigation
ValueError: mutable default <class 's3prl.upstream.roberta.roberta_model.EncDecBaseConfig'> for field encoder is not allowed: use default_factory #522
Thanks for reporting, it seems like a python version related to the newer 3.11.
Since we only test the python version until 3.10.
Could you verify if downgrading the python version help?
Thanks for reporting, it seems like a python version related to the newer 3.11. Since we only test the python version until 3.10. Could you verify if downgrading the python version help?
Thank you! This problems is solved when I downgraded the Python version to 3.10.
Hi @leo19941227 , may I ask if there are plans on py3.11?
We are facing some CI issues regarding the support with py3.11 on the same error mentioned in the issue (https://github.com/espnet/espnet/actions/runs/10461525936/job/28970044192?pr=5862). It would be probably simple to fix by setting default_class to the default config (I think the issue is from the original fairseq code actually...)
Following is an example:
# Original code
encoder: EncDecBaseConfig = EncDecBaseConfig()
# New code
encoder: EncDecBaseConfig = field(default_factory=EncDecBaseConfig)
I can help start a PR for it if you think it would be good. Thanks for your attention!
Activity
leo19941227 commentedon Dec 21, 2023
Hi @haoyunlf ,
Thanks for reporting, it seems like a python version related to the newer
3.11.Since we only test the python version until
3.10.Could you verify if downgrading the python version help?
haoyunlf commentedon Dec 22, 2023
Thank you! This problems is solved when I downgraded the Python version to 3.10.
leo19941227 commentedon Dec 22, 2023
Cool! I will leave this issue open until we add support for
3.11ftshijt commentedon Aug 20, 2024
Hi @leo19941227 , may I ask if there are plans on py3.11?
We are facing some CI issues regarding the support with py3.11 on the same error mentioned in the issue (https://github.com/espnet/espnet/actions/runs/10461525936/job/28970044192?pr=5862). It would be probably simple to fix by setting
default_classto the default config (I think the issue is from the original fairseq code actually...)Following is an example:
I can help start a PR for it if you think it would be good. Thanks for your attention!
Some references:
leo19941227 commentedon Aug 20, 2024
Hi @ftshijt ,
Thanks for pointing out the issue and the solution! I am good with the modification. Let's start the PR and I can merge it and publish a new Pypi now.
ftshijt commentedon Aug 20, 2024
Thanks for your timely response! I will start one after some local tests.