Skip to content

Change use of pip to work around a problem with EL9 native pip

Marco Clemencic requested to merge clemenci/LbNightlyTools:fix-el9-ci-job into master

It seems that the version of pip one can install on el9 via RPM fails to install packages from tar files:

ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pip/_internal/utils/unpacking.py", line 198, 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.9/site-packages/pip/_internal/cli/base_command.py", line 173, in _main
    status = self.run(options, args)
...
  File "/usr/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 249, in unpack_url
    unpack_file(file.path, location, file.content_type)
  File "/usr/lib/python3.9/site-packages/pip/_internal/utils/unpacking.py", line 263, in unpack_file
    untar_file(filename, location)
  File "/usr/lib/python3.9/site-packages/pip/_internal/utils/unpacking.py", line 199, in untar_file
    except tarfile.LinkOutsideDestinationError:
AttributeError: module 'tarfile' has no attribute 'LinkOutsideDestinationError'

Getting pip from python3 -m ensurepip works.

Merge request reports