facebookresearch / fairseq

Facebook AI Research Sequence-to-Sequence Toolkit written in Python.
MIT License
29.78k stars 6.3k forks source link

fairseq package isn't working with python 3.11.8 as it supposed to be. #5457

Open K-S-King opened 3 months ago

K-S-King commented 3 months ago

Description

I am currently experiencing issues running fairseq version 0.12.2 on Python 3.11.8. Despite fairseq being compatible with Python versions 3.6 and above, I've encountered problems that seem to be specific to Python 3.11.

Steps to Reproduce

  1. Install fairseq version 0.12.2 on Python 3.11.8.
  2. Run a standard fairseq training command or script.
  3. Observe any errors or unexpected behavior.

Expected Behavior

fairseq should operate without any compatibility issues, allowing for smooth training and execution of models.

Actual Behavior

(Describe the errors or issues encountered, including any error messages or logs)

Environment

Additional Context

(Include any other relevant information such as modifications to config.py, custom settings, or related dependencies)

Any insights or solutions to address these compatibility issues would be greatly appreciated.

shaun95 commented 3 months ago

I also experience issues running fairseq on Python 3.11 on Ubuntu. There is an attempt to make some local fixes on fairseq and omegaconf at this link https://github.com/facebookresearch/fairseq/issues/5191 and https://github.com/facebookresearch/fairseq/pull/5359 but after spending a day on it, it didn't work on my end.