-
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
Sub dependencies not being installed when explicitly providing a repository via source #9294
Comments
We are seeing a similar issue. In our case, it's A few notes if it helps:
Hope this helps. |
Also, this is most likely related to #9266 (comment) |
Thanks for pointing out the related issues. I did the following steps in some order I don't remember but it is working now:
Are those the recommended steps to solve this issue? If so I assume this is a workaround and will be fixed in the next bugfix/minor version?! Or does every developer or CI server using poetry needs to do the steps described above (or use pipx instead of the installer script?)? |
this all is covered in the existing issues |
I'm not sure that step is necessary, clearing the cache and upgrading pkginfo seems sufficient |
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. |
Description
When specifying a source in the pyproject.toml and set the priority to default or primary on package installation certain sub dependencies will not be installed for some reason. By not installing those dependencies I get a broken environment with ModuleNotFound errors all over the place.
For example when trying to install the package 'opentelemetry-api' only the package will get installed but not its dependencies like 'importlib-metadata', 'deprecated' etc..
However testing the same without a source block (or with some other priority) the mentioned dependencies will get installed.
Workarounds
There is no workaround as far as I know when you need a private repository.
Poetry Installation Method
install.python-poetry.org
Operating System
MacOS
Poetry Version
Poetry (version 1.8.2)
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: