You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2021/08/23 11:56:00 UTC

[jira] [Created] (FLINK-23922) -pyexec is not working correctly

Chesnay Schepler created FLINK-23922:
----------------------------------------

             Summary: -pyexec is not working correctly
                 Key: FLINK-23922
                 URL: https://issues.apache.org/jira/browse/FLINK-23922
             Project: Flink
          Issue Type: Bug
          Components: API / Python, Client / Job Submission
            Reporter: Chesnay Schepler


Pointing pyflink to specific python interpreter via the -pyexec CLI argument does not seem to work properly:

{code}
2021-08-23 13:45:30,626 INFO  CliFrontend  [] -  Program Arguments:
2021-08-23 13:45:30,630 INFO  CliFrontend   [] -     run
2021-08-23 13:45:30,630 INFO  CliFrontend  [] -     -pyexec
2021-08-23 13:45:30,630 INFO  CliFrontend  [] -     python3
2021-08-23 13:45:30,631 INFO  CliFrontend  [] -     --python
2021-08-23 13:45:30,632 INFO  CliFrontend  [] -     examples/python/table/batch/word_count.py
...
2021-08-23 13:52:17,793 DEBUG CliFrontend  [] - Effective configuration after Flink conf, custom commandline, and program options: {..., python.executable=python3, ...}
...
2021-08-23 13:52:18,496 INFO  PythonDriver [] - RuntimeError: Python versions prior to 3.6 are not supported for PyFlink [sys.version_info(major=2, minor=7, micro=18, releaselevel='final', serial=0)].
{code}

{code}
$ python3 --version
Python 3.8.5
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)