Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24267

PyFlink Table API example from docs does not work.

    XMLWordPrintableJSON

Details

    Description

      I followed the following documentation to build and install pyflink from sources.
      https://ci.apache.org/projects/flink/flink-docs-master/docs/flinkdev/building/#build-pyflink

      Then I tried the WordCount.py example from the following documentation.
      https://ci.apache.org/projects/flink/flink-docs-master/docs/dev/python/table_api_tutorial/

      This results in the following error.

      $ python WordCount.py
      Traceback (most recent call last):
        File "WordCount.py", line 2, in <module>
          from pyflink.table.descriptors import Schema, FileSystem
      ImportError: cannot import name 'FileSystem' from 'pyflink.table.descriptors' (/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyflink/table/descriptors.py)
      

      Attachments

        Issue Links

          Activity

            People

              dianfu Dian Fu
              xtsong Xintong Song
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: