-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Poetry cannot resolve scikit-image dependencies from a private PyPi server #3464
Comments
Try: |
Something, I have not quite understood: does the fact that you are using a private index server plays a role or not? |
I can only assume so - resolution works fine with pypi. As I understand it Poetry uses a PyPi JSON api to resolve dependencies on PyPi, which isn't available on private repositories. This means that the After running The problem is that there is no information about why the pep517 process failed, only that it errored. Displaying the stdout would really help here, but I'm not sure that's possible. In the gist I linked at the end, this is the resolution from pypi:
|
I guess there are two bugs here: the first is that the |
I would think so as well. Some fix is probably required in poetry, so that such build failures are caught. On the other hand, your issue should be reported on scikit-image's side, the real blocker could be on their side I would say. Their |
They have I'll definitely report it to scikit-image if needed, but I'm not sure how to reproduce the pep517 failure. I naievely tried to untar the source release and run something like the script in the output message:
however this complained that there was a missing |
What about creating a fresh virtual environment, and trying to pip-install in that environment? Have you already tried that? With |
I went in and debugged what happens inside that subprocess call mentioned at the end of the stacktrace:
The pep517 get_requires_for_build_wheel hook attempts to run scikit-image's setup.py, but fails on missing dependencies that are imported in setup.py, in this case it is The confusing thing is though, that Azure Artifacts Feed (which we use) does appear to support a metadata API that could be called, so I'm wondering why does Poetry by default treat any non-pypi repository as a legacy repository? |
This is now obsolete for several reasons: Poetry should now successfully report PEP 517 build errors -- I cannot reproduce a silent PEP 517 failure when resolving using a (bad) sdist from a custom source on 1.2.x. Poetry now uses wheels wheels whenever possible to gather metadata: #6547. In addition, PEP 691 and PEP 658 have gained acceptance as the standard ecosystem-wide way to support serving metadata in a PEP 503 repository. This will significantly improve this process moving forward. |
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. |
-vvv
option).Issue
Given a project that depends on
scikit-image
, and using an external (private) repository that does not implement PyPi's JSON api, runningpoetry debug resolve scikit-image
resolvesscikit-image
to have no dependencies (output at the end). However this is incorrect, and the console output clearly shows there is an exception while trying to invoke the PEP517 module.Unfortunately this manifests itself as a
poetry lock
working just fine, but incorrectly specifying that there are no dependencies and thusscikit-image
fails to import.I've tried various steps to debug this:
scikit-image
dependency withsource="pypi"
pep517
manually to see what happenspip
,wheel
andsetuptools
everywhere I can. Side note: I cannot see whereWARNING: You are using pip version 20.2.3; however, version 20.3.1 is available.
is coming from 😱I'm willing to help create a fix for this, but I need some pointers as I'm in the dark about what could be going wrong here.
The output:
The output from
poetry debug resolve
against PyPi: https://gist.github.com/orf/b91ba6ac62583523cb8f6999ef69fe96The text was updated successfully, but these errors were encountered: