Michael Smith created IMPALA-12013:
--------------------------------------

             Summary: Included pkg_resources fails in Python 2 when file in 
HOME directory contains special character
                 Key: IMPALA-12013
                 URL: https://issues.apache.org/jira/browse/IMPALA-12013
             Project: IMPALA
          Issue Type: Bug
            Reporter: Michael Smith


The pkg_resources.py we include when creating a Python 2 tarball of 
impala-shell fails with
{code:java}
Traceback (most recent call last):
  File "/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/impala_shell.py", line 
42, in <module>
    from impala_client import ImpalaHS2Client, StrictHS2Client, \
  File "/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/lib/impala_client.py", 
line 23, in <module>
    from bitarray import bitarray
  File 
"/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/ext-py2/bitarray-2.3.0-py2.7-linux-x86_64.egg/bitarray/__init__.py",
 line 14, in <module>
    
  File 
"/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/ext-py2/bitarray-2.3.0-py2.7-linux-x86_64.egg/bitarray/_bitarray.py",
 line 7, in <module>
  File 
"/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/ext-py2/bitarray-2.3.0-py2.7-linux-x86_64.egg/bitarray/_bitarray.py",
 line 3, in __bootstrap__
  File 
"/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/legacy/pkg_resources.py", line 
2669, in <module>
    working_set = WorkingSet()
  File 
"/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/legacy/pkg_resources.py", line 
410, in __init__
    self.add_entry(entry)
  File 
"/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/legacy/pkg_resources.py", line 
425, in add_entry
    for dist in find_distributions(entry, True):
  File 
"/Impala/shell/build/impala-shell-4.3.0-SNAPSHOT/legacy/pkg_resources.py", line 
1709, in find_on_path
    if lower.endswith('.egg-info'):
{code}
when the user's HOME directory contains a file with a special character in the 
name (such as an em dash). This was introduced when adding
{code:java}
from __future__ import print_function, unicode_literals
{code}
to pkg_resources.py; that file doesn't work with Python 3, so adding this was 
unnecessary.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to