Jennifer88huang commented on a change in pull request #5536: Documentation updates, mainly for Python API URL: https://github.com/apache/pulsar/pull/5536#discussion_r341952961
########## File path: site2/docs/functions-develop.md ########## @@ -35,6 +35,20 @@ def process(input): ``` For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-functions/python-examples/native_exclamation_function.py). +Note that functions can be written in python2 or python3, but Pulsar Review comment: > Note > You can write Pulsar Functions in python2 or python3. However, Pulsar only looks for `python` as the interpreter. > If you're running Pulsar Functions on Ubuntu system that only supports `python3`, you might fail to start the functions. In this case, you can create a symlink. Your system will fail if you have ever installed any other package that depends on Python 2.x. A solution is under development in [Issue 5518](https://github.com/apache/pulsar/issues/5518). ```bash sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 ``` ---------------------------------------------------------------- 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
