*** This bug is a duplicate of bug 2089071 ***
    https://bugs.launchpad.net/bugs/2089071

** This bug has been marked a duplicate of bug 2089071
   tarfile.py regression: "ReadError: invalid header"

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/2089176

Title:
  Python tarfile module invalid header

Status in python2.7 package in Ubuntu:
  Confirmed

Bug description:
  When installing .tar.gz packages with pip on python2.7 the attempt to
  install them fails after upgrade to python2.7 amd64 2.7.18-1~20.04.5

  installation of the same packages with python2.7 2.7.18-1~20.04.4 was
  successful.

  
  Reproducer:

  sudo apt-get install -y python2.7 python2.7-dev python-pip-whl
  sudo ln -sf python2.7 /usr/bin/python
  export PYTHONPATH=`echo /usr/share/python-wheels/pip-*py2*.whl`
  sudo --preserve-env=PYTHONPATH python -m pip install --upgrade pip setuptools 
wheel

  pip install --pre tlslite-ng

  Results in:
  Collecting tlslite-ng==0.8.0-beta5
    Downloading tlslite-ng-0.8.0b5.tar.gz (1.3 MB)
  ERROR: Exception:
  Traceback (most recent call last):
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/base_command.py", 
line 223, in _main
      status = self.run(options, args)
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/req_command.py", line 
180, in wrapper
      return func(self, options, args)
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/commands/install.py", 
line 321, in run
      reqs, check_supported_wheels=not options.target_dir
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/resolution/legacy/resolver.py",
 line 180, in resolve
      discovered_reqs.extend(self._resolve_one(requirement_set, req))
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/resolution/legacy/resolver.py",
 line 385, in _resolve_one
      dist = self._get_dist_for(req_to_install)
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/resolution/legacy/resolver.py",
 line 337, in _get_dist_for
      dist = self.preparer.prepare_linked_requirement(req)
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", 
line 480, in prepare_linked_requirement
      return self._prepare_linked_requirement(req, parallel_builds)
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", 
line 505, in _prepare_linked_requirement
      self.download_dir, hashes,
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/operations/prepare.py", 
line 263, in unpack_url
      unpack_file(file.path, location, file.content_type)
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/utils/unpacking.py", line 
270, in unpack_file
      untar_file(filename, location)
    File 
"/usr/local/lib/python2.7/dist-packages/pip/_internal/utils/unpacking.py", line 
187, in untar_file
      tar = tarfile.open(filename, mode)
    File "/usr/lib/python2.7/tarfile.py", line 1708, in open
      return func(name, filemode, fileobj, **kwargs)
    File "/usr/lib/python2.7/tarfile.py", line 1762, in gzopen
      t = cls.taropen(name, mode, fileobj, **kwargs)
    File "/usr/lib/python2.7/tarfile.py", line 1738, in taropen
      return cls(name, mode, fileobj, **kwargs)
    File "/usr/lib/python2.7/tarfile.py", line 1602, in __init__
      self.firstmember = self.next()
    File "/usr/lib/python2.7/tarfile.py", line 2385, in next
      raise ReadError(str(e))
  ReadError: invalid header

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/2089176/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to