massakam opened a new pull request #7857:
URL: https://github.com/apache/pulsar/pull/7857


   ### Motivation
   
   Recently, building Pulsar Docker image in CI jobs has continued to fail.
   
   - https://github.com/apache/pulsar/pull/7841/checks?check_run_id=1004139002
   - https://github.com/apache/pulsar/pull/7841/checks?check_run_id=1004139058
   - https://github.com/apache/pulsar/pull/7841/checks?check_run_id=1004139130
   - https://github.com/apache/pulsar/pull/7841/checks?check_run_id=1004139009
   
   It seems that the header file "Python.h" does not exist.
   ```
   [INFO]   building 'fastavro._read' extension
   [INFO]   creating build/temp.linux-x86_64-2.7
   [INFO]   creating build/temp.linux-x86_64-2.7/fastavro
   [INFO]   x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g 
-fdebug-prefix-map=/build/python2.7-2.7.16=. -fstack-protector-strong -Wformat 
-Werror=format-security -fPIC -I/usr/include/python2.7 -c fastavro/_read.c -o 
build/temp.linux-x86_64-2.7/fastavro/_read.o
   [INFO]   fastavro/_read.c:4:10: fatal error: Python.h: No such file or 
directory
   [INFO]    #include "Python.h"
   [INFO]             ^~~~~~~~~~
   [INFO]   compilation terminated.
   [INFO]   error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
   [INFO]   ----------------------------------------
   [INFO]
   [INFO]   ERROR: Failed building wheel for fastavro
   ```
   
   ### Modifications
   
   I'm not sure why the build has recently failed, but added `python2.7-dev` 
and `python3.7-dev` to the Docker image.


----------------------------------------------------------------
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]


Reply via email to