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.04Regarding 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.0Regarding 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 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 nonexistentAfter add
RUN mkdir -p /usr/lib/jvm/java-17-openjdk-amd64/conf/securitybeforeRUN echo networkaddress.cache.ttl=1 >> /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.securityindocker/pulsar/Dockerfileandtest/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.04containcc? If so, why does it fail on my local env. If not, why does it succeed in CI?gccin theapt installlist, it can findcc, but later it fails withPython.h not found.python-devin theapt installlist, it still fails withPython.h not found.cc @lhotari @nodece @michaeljmarshall
All reactions