Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19919

Unable to install a python module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: PyPI
    • Labels:
      None
    • Severity:
      Medium

      Description

      Artifactory 6.10.14

      I am unable to install a python module using pip.

      Python 3.7.3 Windows 10

      Three repos:

      rem - maps to pypi

      loc - not used yet

      vir - that maps rem into it

      requirements.txt
      --index-url https://xxxx:xxx@jfrog.dom.com/artifactory/api/pypi/vir/simple
      PyYAML==3.11
       

      1. pip install -v -r requirements.txt
        Created temporary directory: C:\Users\x\AppData\Local\Temp\pip-ephem-wheel-cache-_hul2dm5
        Created temporary directory: C:\Users\x\AppData\Local\Temp\pip-req-tracker-eu1tgkuw
        Created requirements tracker 'C:\\Users
        x
        AppData
        Local
        Temp
        pip-req-tracker-eu1tgkuw'
        Created temporary directory: C:\Users\x\AppData\Local\Temp\pip-install-ubsm3umk
        Looking in indexes: https://x:****@jfrog.dom.com/artifactory/api/pypi/vir/simple
        Collecting PyYAML==3.11 (from -r requirements.txt (line 2))
          1 location(s) to search for versions of PyYAML:
          * https://x:****@jfrog.dom.com/artifactory/api/pypi/vir/simple/pyyaml/
          Getting page https://x:****@jfrog.dom.com/artifactory/api/pypi/vir/simple/pyyaml/
          Found credentials in url for jfrog.dom.com
          Starting new HTTPS connection (1): jfrog.dom.com:443
          https://jfrog.dom.com:443 "GET /artifactory/api/pypi/vir/simple/pyyaml/ HTTP/1.1" 404 None
          Could not fetch URL https://x:****@jfrog.dom.com/artifactory/api/pypi/vir/simple/pyyaml/: 404 Client Error: Not Found for url: https://jfrog.dom.com/artifactory/api/pypi/vir/simple/pyyaml/ - skipping
          Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
          Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
          Given no hashes to check 0 links for project 'PyYAML': discarding no candidates
          ERROR: Could not find a version that satisfies the requirement PyYAML==3.11 (from -r requirements.txt (line 2)) (from versions: none)
        Cleaning up...
        Removed build tracker 'C:\\Users
        x
        AppData
        Local
        Temp
        pip-req-tracker-eu1tgkuw'
        ERROR: No matching distribution found for PyYAML==3.11 (from -r requirements.txt (line 2))
        Exception information:
        Traceback (most recent call last):
          File "c:\users\x\appdata\local\programs\python\python37\lib\site-packages\pip_internal\cli\base_command.py", line 188, in main
            status = self.run(options, args)
          File "c:\users\x\appdata\local\programs\python\python37\lib\site-packages\pip_internal\commands\install.py", line 345, in run
            resolver.resolve(requirement_set)
          File "c:\users\x\appdata\local\programs\python\python37\lib\site-packages\pip_internal\legacy_resolve.py", line 196, in resolve
            self._resolve_one(requirement_set, req)
          File "c:\users\x\appdata\local\programs\python\python37\lib\site-packages\pip_internal\legacy_resolve.py", line 359, in _resolve_one
            abstract_dist = self._get_abstract_dist_for(req_to_install)
          File "c:\users\x\appdata\local\programs\python\python37\lib\site-packages\pip_internal\legacy_resolve.py", line 307, in _get_abstract_dist_for
            self.require_hashes
          File "c:\users\x\appdata\local\programs\python\python37\lib\site-packages\pip_internal\operations\prepare.py", line 134, in prepare_linked_requirement
            req.populate_link(finder, upgrade_allowed, require_hashes)
          File "c:\users\x\appdata\local\programs\python\python37\lib\site-packages\pip_internal\req\req_install.py", line 211, in populate_link
            self.link = finder.find_requirement(self, upgrade)
          File "c:\users\x\appdata\local\programs\python\python37\lib\site-packages\pip_internal\index.py", line 1228, in find_requirement
            'No matching distribution found for %s' % req
        pip._internal.exceptions.DistributionNotFound: No matching distribution found for PyYAML==3.11 (from -r requirements.txt (line 2))
        1 location(s) to search for versions of pip:

      pip search works:

      1. pip search PyYAML -v --index https://x:x@jfrog.dom.com/artifactory/api/pypi/vir/simple
        Found credentials in url for jfrog.dom.com
        Starting new HTTPS connection (1): jfrog.dom.com:443
        https://jfrog.dom.com:443 "POST /artifactory/api/pypi/vir/simple HTTP/1.1" 200 None
        pyyaml-tags (1.0.4)            - PyYAML custom tags
        ...
        ...

      And the .pypi tree in the vir repo has: PyYAML.html in it.

      The Artifactory log:

       

      2019-08-14 21:33:11,583 [https-jsse-nio-8443-exec-363] [INFO ] (o.a.r.HttpRepo      :432) - rem downloading https://pypi.python.org/simple/pyyaml/ Unknown content length
      2019-08-14 21:33:11,608 [https-jsse-nio-8443-exec-363] [INFO ] (o.a.r.HttpRepo      :445) - rem downloaded  https://pypi.python.org/simple/pyyaml/ 33.46 KB at 1,418.05 KB/sec
      2019-08-14 21:33:11,919 [https-jsse-nio-8443-exec-381] [INFO ] (o.a.r.HttpRepo      :432) - rem downloading https://pypi.python.org/simple/pip/ Unknown content length
      2019-08-14 21:33:11,935 [https-jsse-nio-8443-exec-381] [INFO ] (o.a.r.HttpRepo      :445) - rem downloaded  https://pypi.python.org/simple/pip/ 33.52 KB at 2,095.07 KB/sec

       This url: https://x:x@jfrog.dom.com/artifactory/api/pypi/vir/simple/

       

      returns a large html page of hyperlinks (anchors) to what looks like a complete pypi repo.

       

      If I pick one say: https://jfrog.com.com/artifactory/api/pypi/vir/simple/pyyaml-tags/

      it returns 404

       

      FIXED -

       

      Please close this.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            adrianblakey1 Adrian Blakey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-19919 -
                SYNCHRONIZED
                • Last Sync Date: