You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Dawid Wysakowicz (Jira)" <ji...@apache.org> on 2021/04/01 19:41:00 UTC

[jira] [Created] (FLINK-22095) Creating python release binaries does not work

Dawid Wysakowicz created FLINK-22095:
----------------------------------------

             Summary: Creating python release binaries does not work
                 Key: FLINK-22095
                 URL: https://issues.apache.org/jira/browse/FLINK-22095
             Project: Flink
          Issue Type: Bug
          Components: Release System
    Affects Versions: 1.13.0
            Reporter: Dawid Wysakowicz
             Fix For: 1.13.0


The {{create_binary_release.sh}} fails for creating python binary release:

{code}
[7/7] Cythonizing pyflink/fn_execution/table/window_aggregate_fast.pyx
/home/dwysakowicz/projects/flink/flink-python/dev/.conda/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/dwysakowicz/projects/flink/flink-python/pyflink/fn_execution/table/window_aggregate_fast.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
find: 'deps/tmp': No such file or directory
Traceback (most recent call last):
  File "setup.py", line 264, in <module>
    subprocess.check_output([collect_licenses_file_sh, TEMP_PATH, TEMP_PATH])
  File "/home/dwysakowicz/projects/flink/flink-python/dev/.conda/lib/python3.7/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/home/dwysakowicz/projects/flink/flink-python/dev/.conda/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/dwysakowicz/projects/flink/tools/releasing/collect_license_files.sh', 'deps', 'deps']' returned non-zero exit status 1.
{code}

One problem that I was able to fix myself is a wrong path in {{apache-flink-libraries/setup.py}}:

{code}
            collect_licenses_file_sh = os.path.abspath(os.path.join(
                this_directory, "..", "tools", "releasing", "collect_license_files.sh"))
{code}

should be:

{code}
{code}
            collect_licenses_file_sh = os.path.abspath(os.path.join(
                this_directory, "..", "..", "tools", "releasing", "collect_license_files.sh"))
{code}
{code}



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