Skip to content
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

PackageInfo: Invalid constraint (PyYAML (>=5.1.*)) found in omegaconf-2.1.0 dependencies, skipping #4206

Closed
3 tasks done
gygabyte017 opened this issue Jun 24, 2021 · 7 comments
Labels
status/duplicate Duplicate issues

Comments

@gygabyte017
Copy link

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Windows 10
  • Poetry version: 1.2.0a

Issue

In any project, the command:

poetry add omegaconf

leads to this error:

PackageInfo: Invalid constraint (PyYAML (>=5.1.*)) found in omegaconf-2.1.0 dependencies, skipping

so that the dependency pyyaml is not installed and therefore the package omegaconf will not work.

However with pip install omegaconf the package is installed correctly together with its dependency pyyaml. What may be wrong?

@gygabyte017 gygabyte017 added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jun 24, 2021
@finswimmer
Copy link
Member

Hello @gygabyte017,

this was reported earlier in:

TL;DR: >=5.1.* is invalid and should be fixed by the maintainer of the package to >=5.1

fin swimmer

@HaukurPall
Copy link

Is there a workaround? I use Fairseq (https://github.com/facebookresearch/fairseq/) which depends on this broken omegaconf specification. This project is not released frequently and is heavily integrated into this version of omegaconf.

@MeWannaSleep
Copy link

@HaukurPall Hi, Have you find any workaround?

@HaukurPall
Copy link

@MeWannaSleep instead of using poetry I used pip :)

@SakarDev
Copy link

@MeWannaSleep instead of using poetry I used pip :)

But i already use pip and still getting same error!
pip install fairseq

@dimbleby
Copy link
Contributor

you are using a closed issue on the poetry bug tracker to report an issue that you see when not using poetry. This is absurd.

I expect more recent pip is parsing version specifiers more accurately - and therefore now agrees with poetry that the invalid constraint is indeed invalid. Take your bug report to the project that provides the bad constraint.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

6 participants