Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
Amazon90 opened this issue Jul 24, 2023 · 9 comments
Closed
Labels
bug Something isn't working

Comments

@Amazon90
Copy link

Describe the bug
oobabooga/text-generation-webui#3261
pypa/pip#12063 (comment)
pip developers told me to contact omagaconf project to fix this issue
Please check the issue at the link, thanks.

@Amazon90 Amazon90 added the bug Something isn't working label Jul 24, 2023
@odelalleau
Copy link
Collaborator

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

@Amazon90
Copy link
Author

Amazon90 commented Jul 24, 2023

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Owner

omry commented Jul 30, 2023

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

@songnan1111
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants