candlerb edited a comment on issue #5518: python functions cannot find python3 interpreter URL: https://github.com/apache/pulsar/issues/5518#issuecomment-548721196 How about adding a setting to broker.conf / standalone.conf? e.g. ``` python_interpreter=/usr/bin/python ``` However I notice at least one place where searching in `$PATH` is currently used: ``` ./pulsar-client-cpp/docker/Dockerfile:ENV PATH="/opt/python/${PYTHON_SPEC}/bin:${PATH}" ``` So I suggest: 1. Default is `python_interpreter=python` 2. If the setting starts with slash, it's an absolute path (avoids some edge-case security issues) 3. Otherwise search for it in `$PATH` as today If you don't want a conf setting, then an environment variable would work for me too (`PYTHON=/usr/bin/python3`)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
