[
https://issues.apache.org/jira/browse/IMPALA-13826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939233#comment-17939233
]
ASF subversion and git services commented on IMPALA-13826:
----------------------------------------------------------
Commit 2cf57778922aa0456eba077097be5d8ba8176e9d in impala's branch
refs/heads/master from Laszlo Gaal
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=2cf577789 ]
IMPALA-13826: Migrate from imp to importlib in the config generator
Python has deprecated the 'imp' package in Python 3.4, and removed it in
Python 3.12. The deprecation has also started throwing warnings in
versions before 3.12.
The template generator used a single call to imp.load_source to load the
template Python file. This is now replaced with code snippet published
in Python's official documentation.
Change-Id: I472d093eeaac97a380d444a1756b54f825b2d031
Reviewed-on: http://gerrit.cloudera.org:8080/22582
Reviewed-by: Zoltan Borok-Nagy <[email protected]>
Tested-by: Laszlo Gaal <[email protected]>
> generate_xml_config.py complains that the imp module is deprecated in Python 3
> ------------------------------------------------------------------------------
>
> Key: IMPALA-13826
> URL: https://issues.apache.org/jira/browse/IMPALA-13826
> Project: IMPALA
> Issue Type: Bug
> Reporter: Laszlo Gaal
> Assignee: Laszlo Gaal
> Priority: Major
> Labels: build
>
> Python deprecated the 'imp' module in Python 3.4, and removed it in 3.12.
> In newer environments like Rocky Linux 9 the system default Python version is
> newer than 3.4, so the XML config file generator started issuing warnings
> about the module deprecation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]