Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-25000

Pip 9.0.3-23 should require Python with tarfile.data_filter

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-8.8.0.z, rhel-8.9.0.z
    • python-pip
    • None
    • None
    • None
    • rhel-sst-pt-python-ruby-nodejs
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Using pip to install or download modules packages as tarballs fails.

      Please provide the package NVR for which bug is seen:

      python3-pip-9.0.3-23.el8

      How reproducible:

      Steps to reproduce

      1. Install python3-pip-9.0.3-23
      2. pip download docopt
      3. Fail

      Expected results

      pip download and pip install work.

      Actual results

      Exception:
      
      Traceback (most recent call last):
      
        File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 565, in untar_file
      
          tarfile.data_filter(member.replace(name=fn), location)
      
      AttributeError: module 'tarfile' has no attribute 'data_filter' During handling of the above exception, another exception occurred: Traceback (most recent call last):
      
        File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
      
          status = self.run(options, args)
      
        File "/usr/lib/python3.6/site-packages/pip/commands/download.py", line 198, in run
      
          requirement_set.prepare_files(finder)
      
        File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 381, in prepare_files
      
          ignore_dependencies=self.ignore_dependencies))
      
        File "/usr/lib/python3.6/site-packages/pip/req/req_set.py", line 623, in _prepare_file
      
          session=self.session, hashes=hashes)
      
        File "/usr/lib/python3.6/site-packages/pip/download.py", line 822, in unpack_url
      
          hashes=hashes
      
        File "/usr/lib/python3.6/site-packages/pip/download.py", line 664, in unpack_http_url
      
          unpack_file(from_path, location, content_type, link)
      
        File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 622, in unpack_file
      
          untar_file(filename, location)
      
        File "/usr/lib/python3.6/site-packages/pip/utils/__init__.py", line 566, in untar_file
      
          except tarfile.LinkOutsideDestinationError:
      
      AttributeError: module 'tarfile' has no attribute 'LinkOutsideDestinationError'

              python-maint python-maint
              timothy.c.brackett Timothy Brackett (Inactive)
              python-maint python-maint
              bot rhel-cs-apps-subsystem-qe bot rhel-cs-apps-subsystem-qe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: