pycoral
pycoral copied to clipboard
Can't build pycoral, includes not found
Hello,
I try to build pycoral on opensuse. I cloned the git, but at a "make CPU=k8 build" it failed:
src/coral_wrapper.cc:15:10: fatal error: numpy/arrayobject.h: No such file or directory
#
include <numpy/arrayobject.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
src/main/tools/linux-sandbox-pid1.cc:437: waitpid returned 2
src/main/tools/linux-sandbox-pid1.cc:457: child exited with code 1
src/main/tools/linux-sandbox.cc:204: child exited normally with exitcode 1
Target //src:_pywrap_coral failed to build
The numpy-devel-package is installed, the file are located at /usr/lib64/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h
How can I tell the build process where to find the numpy includes?
Regards
Daniel
@Spanni26
Not exactly sure how to reproduce this issue on different x86_64 platform. But these are docker builds things should fairly straight forward if you use docker.
Can you follow steps below and see if you still have similar issue.
cd pycoral make docker-shell make CPU=k8 (in the docker shell)
Hello,
I can't use docker cause I build on a build server (open build service), which has no connection to the internet. I downloaded all the dependencies this package needs, so it doesn't claim any missing packages.
There is another error about wrong include path also. I will open another issue about that.
@Spanni26 Did you try to include /usr/lib64/python3.6/site-packages/numpy/core/include/numpy/ in your PATH environment ?
Which "PATH" do you mean? ISt the a variable for python includes?
Am 28.05.2021 um 08:17 schrieb Manoj:
@Spanni26 https://github.com/Spanni26 Did you try to include /usr/lib64/python3.6/site-packages/numpy/core/include/numpy/ in your PATH environment ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/google-coral/pycoral/issues/26#issuecomment-850169374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2I5HCOIBSRYRSLVQAVCMDTP4YQLANCNFSM44USDO2A.
Which "PATH" do you mean?
In your system's PATH environment and in your build's environment.
Although the recommended way to build is still Docker as it will take care of all the deps and includes.
I can't use docker cause I'm in an environment without internet access. "set |grep include" finds nothing, so no include-path is set in my environment.