You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Laszlo Gaal (Jira)" <ji...@apache.org> on 2020/04/23 17:09:00 UTC
[jira] [Resolved] (IMPALA-9668) OSError: Cannot call rmtree on a
symbolic link when creating python virtualenv
[ https://issues.apache.org/jira/browse/IMPALA-9668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Laszlo Gaal resolved IMPALA-9668.
---------------------------------
Fix Version/s: Impala 4.0
Resolution: Fixed
> OSError: Cannot call rmtree on a symbolic link when creating python virtualenv
> ------------------------------------------------------------------------------
>
> Key: IMPALA-9668
> URL: https://issues.apache.org/jira/browse/IMPALA-9668
> Project: IMPALA
> Issue Type: Sub-task
> Reporter: huangtianhua
> Assignee: Laszlo Gaal
> Priority: Major
> Fix For: Impala 4.0
>
>
> I build impala on aarch64 and use cloudera/native-toolchain according https://cwiki.apache.org/confluence/display/IMPALA/Building+native-toolchain+from+scratch+and+using+with+Impala, then an error raised:
> INFO:bootstrap_virtualenv:Creating python virtualenv
> INFO:root:Removing existing package directory /home/jenkins/impala/toolchain/python-2.7.16
> Traceback (most recent call last):
> File "/home/jenkins/impala/bin/../infra/python/bootstrap_virtualenv.py", line 399, in <module>
> setup_virtualenv_if_not_exists()
> File "/home/jenkins/impala/bin/../infra/python/bootstrap_virtualenv.py", line 373, in setup_virtualenv_if_not_exists
> create_virtualenv()
> File "/home/jenkins/impala/bin/../infra/python/bootstrap_virtualenv.py", line 89, in create_virtualenv
> python_cmd = download_toolchain_python()
> File "/home/jenkins/impala/bin/../infra/python/bootstrap_virtualenv.py", line 206, in download_toolchain_python
> package.download()
> File "/home/jenkins/impala/bin/bootstrap_toolchain.py", line 295, in download
> shutil.rmtree(unpack_dir)
> File "/usr/lib/python2.7/shutil.py", line 255, in rmtree
> onerror(os.path.islink, path, sys.exc_info())
> File "/usr/lib/python2.7/shutil.py", line 253, in rmtree
> raise OSError("Cannot call rmtree on a symbolic link")
> {color:red}OSError: Cannot call rmtree on a symbolic link{color}
> ERROR in /home/jenkins/impala/bin/impala-python at line 31:
> Generated: /home/jenkins/impala/logs/extra_junit_xml_logs/generate_junitxml.buildall.impala-python.20200417_08_14_56.xml
> I found the error introduced by IMPALA-9626, it try to delete a link path, I think it should be error on x86 too? The second problem of IMPALA-9626 is that the python package on s3 built only for x86, it doesn't works for aarch64, right?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org