Replies: 1 comment 4 replies
-
You can debug it by executing the commands inside the ubuntu:20.04 container. docker run -it -v $PWD:/pulsar ubuntu:20.04 Regarding the 1st question, I think it's caused by pulsar/docker/pulsar/Dockerfile Line 80 in e16a35d The directory might not be java-17-openjdk-amd64. Regarding the 2nd question, yes, it doesn't contain $ pip3 install grpcio
Collecting grpcio
Downloading grpcio-1.47.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB)
|████████████████████████████████| 4.5 MB 16 kB/s
Requirement already satisfied: six>=1.5.2 in /usr/lib/python3/dist-packages (from grpcio) (1.14.0)
Installing collected packages: grpcio
Successfully installed grpcio-1.47.0 Regarding the 4th question, first you should install Maybe you can set the $ ls /usr/include/python3.8/Python.h
/usr/include/python3.8/Python.h
$ cat 1.c
#include <Python.h>
int main() {
return 0;
}
$ gcc 1.c
1.c:1:10: fatal error: Python.h: No such file or directory
1 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
$ C_INCLUDE_PATH=/usr/include/python3.8 gcc 1.c
$ echo $?
0 |
Beta Was this translation helpful? Give feedback.
-
UPDATED: These issues should be all answered by #12944 (comment).
When debugging #12944, I encounter several strange failures. Here I'll share them and see if others encounter them also.
NOTE: These failures don't exist in CI. Thus I think they're strange.
cannot create /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security: Directory nonexistent
After add
RUN mkdir -p /usr/lib/jvm/java-17-openjdk-amd64/conf/security
beforeRUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security
indocker/pulsar/Dockerfile
andtest/docker-images/java-test-image/Dockerfile
, this issue vanished.FileNotFoundError: [Errno 2] No such file or directory: 'cc'
See details in #12944 (comment).
Does
ubuntu:20.04
containcc
? If so, why does it fail on my local env. If not, why does it succeed in CI?gcc
in theapt install
list, it can findcc
, but later it fails withPython.h not found
.python-dev
in theapt install
list, it still fails withPython.h not found
.cc @lhotari @nodece @michaeljmarshall
Beta Was this translation helpful? Give feedback.
All reactions