Python Forum

Full Version: How to find the list of dependencies not present in the remote artifactory repository
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to find the list of dependencies not present in the remote artifactory repository?
I want to install a package twisted(https://pypi.python.org/pypi/Twisted) which has dependency on Automat(https://pypi.python.org/pypi/Automat/0.5.0).
So I tried this on my office's pc
pip install -i https://artifactoryurl.companyname.net/pypi/simple Twisted

This command returned saying it cannot find Automat in our artifactory dependency on our office's repository's url and so now I want a command which list downs all the dependency which are not present in the local repository. The reason I want this is there is a process by which I can get the required dependencies added to the artifcatory repository server and so I want a complete list at one time.
Have you tried just pip install -U twisted?
When I try command
pip install twisted
the company's firewall blocks it and does not allows us to download. We are require to use our company's repositopry server and can't download the source directly.
Are you able to install pipdeptree. Using pip again. If you succeed, run:

pipeptree -p twisted

Here is what I get:

Output:
Twisted==17.9.0 - Automat [required: >=0.3.0, installed: 0.6.0] - attrs [required: Any, installed: 17.4.0] - six [required: Any, installed: 1.11.0] - constantly [required: >=15.1, installed: 15.1.0] - hyperlink [required: >=17.1.1, installed: 18.0.0] - idna [required: >=2.5, installed: 2.6] - incremental [required: >=16.10.1, installed: 17.5.0] - zope.interface [required: >=4.0.2, installed: 4.4.3] - setuptools [required: Any, installed: 39.0.1]
Maybe you should ask the support team. Do you know if your repo is regularly updated?

If you download the package and extract it ( it is a zip file with a different extension ) you can open the setup.py and under section "install_requires" you will see the requirements. pip has download command instead of install
Thanks this command helps me. Atleast it gives me list of packages that are required.
About the repo, there is a process by which i have to request them to add them to repo and then they add it to the repo so repo is not updated automatically for us to use.
But if Twisted is in the repo its dependencies must be there too. Otherwise, it makes no sense.
In our company, only the packages are inserted which are requested and not its dependencies it seems. That's the reason I have to go though this.

Currently I am trying to figure out out of the dependencies mentioned how to convey to the user that these dependencies are not present in repository url.