[
https://issues.apache.org/jira/browse/IMPALA-13558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe McDonnell resolved IMPALA-13558.
------------------------------------
Fix Version/s: Impala 4.5.0
Resolution: Fixed
> Work around bad Ubuntu 20.04 python 2.7 update
> ----------------------------------------------
>
> Key: IMPALA-13558
> URL: https://issues.apache.org/jira/browse/IMPALA-13558
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Affects Versions: Impala 4.5.0
> Reporter: Joe McDonnell
> Assignee: Joe McDonnell
> Priority: Blocker
> Fix For: Impala 4.5.0
>
>
> Ubuntu 20.04 introduced a bug in their Python 2.7's tarfile functionality
> with 2.7.18-1~20.04.5 (see
> [https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/2089071] ). This
> breaks Impala builds with a message like this:
> {noformat}
> Traceback (most recent call last):
> File "bin/../infra/python/bootstrap_virtualenv.py", line 521, in <module>
> setup_virtualenv_if_not_exists(venv_dir, options.python3)
> File "bin/../infra/python/bootstrap_virtualenv.py", line 482, in
> setup_virtualenv_if_not_exists
> create_virtualenv(venv_dir, is_py3)
> File "bin/../infra/python/bootstrap_virtualenv.py", line 138, in
> create_virtualenv
> file = tarfile.open(virtualenv_tarball, "r:gz")
> 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))
> tarfile.ReadError: invalid header{noformat}
> We need to work around this issue to unblock precommit. On the Ubuntu bug
> listed above, there is a workaround tarfile.py that could be copied into
> place.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]