Python Forum
How to find the list of dependencies not present in the remote artifactory repository
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find the list of dependencies not present in the remote artifactory repository
#1
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.
Reply
#2
Have you tried just pip install -U twisted?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
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.
Reply
#4
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
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#5
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.
Reply
#6
But if Twisted is in the repo its dependencies must be there too. Otherwise, it makes no sense.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#7
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Program to find Mode of a list PythonBoy 6 999 Sep-12-2023, 09:31 AM
Last Post: PythonBoy
  find random numbers that are = to the first 2 number of a list. Frankduc 23 3,015 Apr-05-2023, 07:36 PM
Last Post: Frankduc
  Is it possible to see dependencies before installing a package? quazirfan 4 1,030 Dec-06-2022, 02:50 PM
Last Post: snippsat
  Find (each) element from a list in a file tester_V 3 1,157 Nov-15-2022, 08:40 PM
Last Post: tester_V
  read a text file, find all integers, append to list oldtrafford 12 3,372 Aug-11-2022, 08:23 AM
Last Post: Pedroski55
  find some word in text list file and a bit change to them RolanRoll 3 1,482 Jun-27-2022, 01:36 AM
Last Post: RolanRoll
  How to find the second lowest element in the list? Anonymous 3 1,906 May-31-2022, 01:58 PM
Last Post: Larz60+
  Check if a value is present in each group Menthix 8 2,591 May-16-2022, 12:25 PM
Last Post: Menthix
  Python Program to Find the Total Sum of a Nested List vlearner 8 4,790 Jan-23-2022, 07:20 PM
Last Post: menator01
  Anaconda pip install mpyc Error pip-script.py is not present Anldra12 2 7,724 Dec-13-2021, 06:59 PM
Last Post: Anldra12

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020