[ https://issues.apache.org/jira/browse/RANGER-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17925525#comment-17925525 ]
Krzysztof Sobolewski commented on RANGER-5133: ---------------------------------------------- [~madhan] I see. Is this documented somewhere? We found [some page with requirements|https://cwiki.apache.org/confluence/display/RANGER/Ranger+Installation+Guide#RangerInstallationGuide-Prerequisites], but it says that Ranger requires Java 7+, so it seems outdated :) > BTW, can you update the description with the version of Python used in your > deployment? We deploy inside Docker containers and it depends on the base distro image. We try to keep the base relatively up-to-date to limit our CVE exposure, and when we install Python in those containers, we usually pull the latest stable version. And sometimes the scripts stop working, and if they don't, we get user complaints that there are warnings in the logs. > Clarify requirements regarding Python version > --------------------------------------------- > > Key: RANGER-5133 > URL: https://issues.apache.org/jira/browse/RANGER-5133 > Project: Ranger > Issue Type: Task > Components: admin, tagsync, usersync > Affects Versions: 2.5.0 > Reporter: Krzysztof Sobolewski > Priority: Major > > There are plenty of Python scripts in Ranger, but it's unclear to me what > version of Python they should be running on. Our deployment environment > contains a fairly recent version of Python 3 (because Python 2 is long EOL), > and, for example, the database scripts do not work. For example, we had to > make the following change: > {code:java} > fcp = ConfigParser() > fcp.optionxform = str > - fcp.readfp(config) > + fcp.read_file(config) > {code} > That's because `readfp` is no longer available in newer Python versions. Or, > the escape syntax in strings has changed and newer Python spews a lot of > warnings about it (the old syntax is about to be removed in the future). > So my request here is to clarify that and/or fixup the scripts so they work > on current version of Python. Thanks! -- This message was sent by Atlassian Jira (v8.20.10#820010)