This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new 8068bd3e14e [SPARK-40461][INFRA] Set upperbound for pyzmq 24.0.0 for 
Python linter
8068bd3e14e is described below

commit 8068bd3e14eaab471fd231a115403069ae99e9ff
Author: Hyukjin Kwon <gurwls...@apache.org>
AuthorDate: Fri Sep 16 10:08:59 2022 +0900

    [SPARK-40461][INFRA] Set upperbound for pyzmq 24.0.0 for Python linter
    
    This PR sets the upperbound for `pyzmq` as `<24.0.0` in our CI Python 
linter job. The new release seems having a problem 
(https://github.com/zeromq/pyzmq/commit/2d3327d2e50c2510d45db2fc51488578a737b79b).
    
    To fix the linter build failure. See 
https://github.com/apache/spark/actions/runs/3063515551/jobs/4947782771
    
    ```
          /tmp/timer_created_0ftep6.c: In function ‘main’:
          /tmp/timer_created_0ftep6.c:2:5: warning: implicit declaration of 
function ‘timer_create’ [-Wimplicit-function-declaration]
              2 |     timer_create();
                |     ^~~~~~~~~~~~
          x86_64-linux-gnu-gcc -pthread tmp/timer_created_0ftep6.o 
-L/usr/lib/x86_64-linux-gnu -o a.out
          /usr/bin/ld: tmp/timer_created_0ftep6.o: in function `main':
          /tmp/timer_created_0ftep6.c:2: undefined reference to `timer_create'
          collect2: error: ld returned 1 exit status
          no timer_create, linking librt
          ************************************************
          building 'zmq.libzmq' extension
          creating build/temp.linux-x86_64-cpython-39/buildutils
          creating build/temp.linux-x86_64-cpython-39/bundled
          creating build/temp.linux-x86_64-cpython-39/bundled/zeromq
          creating build/temp.linux-x86_64-cpython-39/bundled/zeromq/src
          x86_64-linux-gnu-g++ -pthread -std=c++11 -pthread -Wno-unused-result 
-Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong 
-Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DZMQ_HAVE_CURVE=1 
-DZMQ_USE_TWEETNACL=1 -DZMQ_USE_EPOLL=1 -DZMQ_IOTHREADS_USE_EPOLL=1 
-DZMQ_POLL_BASED_ON_POLL=1 -Ibundled/zeromq/include -Ibundled 
-I/usr/include/python3.9 -c buildutils/initlibzmq.cpp -o 
build/temp.linux-x86_64-cpython-39/buildutils/initlibzmq.o
          buildutils/initlibzmq.cpp:10:10: fatal error: Python.h: No such file 
or directory
             10 | #include "Python.h"
                |          ^~~~~~~~~~
          compilation terminated.
          error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
          [end of output]
    
      note: This error originates from a subprocess, and is likely not a 
problem with pip.
      ERROR: Failed building wheel for pyzmq
    ERROR: Could not build wheels for pyzmq, which is required to install 
pyproject.toml-based projects
    ```
    
    No, test-only.
    
    CI in this PRs should validate it.
    
    Closes #37904 from HyukjinKwon/fix-linter.
    
    Lead-authored-by: Hyukjin Kwon <gurwls...@apache.org>
    Co-authored-by: Hyukjin Kwon <gurwls...@gmail.com>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
    (cherry picked from commit 254bd80278843b3bc13584ca2f04391a770a78c7)
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 .github/workflows/build_and_test.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/build_and_test.yml 
b/.github/workflows/build_and_test.yml
index 8260dea589f..4adcad0b34c 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -399,7 +399,7 @@ jobs:
         #   See also https://issues.apache.org/jira/browse/SPARK-35375.
         # Pin the MarkupSafe to 2.0.1 to resolve the CI error.
         #   See also https://issues.apache.org/jira/browse/SPARK-38279.
-        python3.9 -m pip install 'sphinx<3.1.0' mkdocs numpy 
pydata_sphinx_theme ipython nbsphinx numpydoc 'jinja2<3.0.0' 'markupsafe==2.0.1'
+        python3.9 -m pip install 'sphinx<3.1.0' mkdocs numpy 
pydata_sphinx_theme ipython nbsphinx numpydoc 'jinja2<3.0.0' 
'markupsafe==2.0.1' 'pyzmq<24.0.0'
         python3.9 -m pip install sphinx_plotly_directive 'pyarrow<5.0.0' 
pandas 'plotly>=4.8'
         python3.9 -m pip install ipython_genutils # See SPARK-38517
         python3.9 -m pip install 'docutils<0.18.0' # See SPARK-39421


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to