omry / omegaconf

Flexible Python configuration system. The last one you will ever need.
BSD 3-Clause "New" or "Revised" License
1.91k stars 104 forks source link

omegaconf 2.1.0 has a non-standard dependency specifier PyYAML>=5.1.*. #1107

Closed Amazon90 closed 1 year ago

Amazon90 commented 1 year ago

Describe the bug https://github.com/oobabooga/text-generation-webui/issues/3261 https://github.com/pypa/pip/issues/12063#issuecomment-1647244895 pip developers told me to contact omagaconf project to fix this issue Please check the issue at the link, thanks.

odelalleau commented 1 year ago

Thanks for reporting, but this has already been fixed in 2.1.1 (see #758)

Amazon90 commented 1 year ago

Thanks for reporting, but this has already been fixed in 2.1.1 (see #758)

ERROR: 
pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fairseq 0.12.2 requires omegaconf<2.1, but you have omegaconf 2.1.1 which is incompatible.
hydra-core 1.0.7 requires omegaconf<2.1,>=2.0.5, but you have omegaconf 2.1.1 which is incompatible.

企业微信截图_20230724194734

It seems that there is a version conflict, but I don't know how to solve this, hope you can help me, thank you.

odelalleau commented 1 year ago

hydra-core 1.0.7 requires omegaconf<2.1,>=2.0.5

Upgrade Hydra to a more recent version. Be aware that this may require some changes to your code though (see https://hydra.cc/docs/upgrades/intro/)

Amazon90 commented 1 year ago

hydra-core 1.0.7 requires omegaconf<2.1,>=2.0.5

Upgrade Hydra to a more recent version. Be aware that this may require some changes to your code though (see https://hydra.cc/docs/upgrades/intro/)

企业微信截图_20230725140132 企业微信截图_20230725140124

Upgrading Hydra does not fix this issue

odelalleau commented 1 year ago

Upgrading Hydra does not fix this issue

I see pip install hydra-core==1.0.7 so I'm a bit confused as to what you mean.

It seems like you may be trying to use fairseq, which appears to be incompatible with Hydra 1.1+

Amazon90 commented 1 year ago

Upgrading Hydra does not fix this issue

I see pip install hydra-core==1.0.7 so I'm a bit confused as to what you mean.

It seems like you may be trying to use fairseq, which appears to be incompatible with Hydra 1.1+

I upgraded hydra-core according to your suggestion, but got an error: fairseq 0.12.2 requires hydra-core<1.1,>=1.0.7 I have no choice but to reinstall back to 1.0.7, the previous problem still exists omegaconf 2.1.0 has a non-standard dependency specifier PyYAML>=5.1.*.

odelalleau commented 1 year ago

Right, so if you really want to not see this message (not sure if it’s an error or just a warning), you could create your own fork of OmegaConf 2.1, grab the fix from #761, install it first, and hopefully fairseq will install without complaining.

omry commented 1 year ago

You can also nudge the fairseq folks about supporting the latest version of Hydra.

songnan1111 commented 4 months ago

I also have the same problem. Have you solved it now? How did you solve it?