Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Thib
Beginner
285 Views

Python ie_api

Hi,

I'm trying to install correctly openvino toolkit on raspberry pi4 with unbuntu 18.04 by following this tuto:

https://github.com/openvinotoolkit/openvino/blob/master/build-instruction.md#build-for-raspbian-stre...

When I want to build Python API with the following cmake command:

cmake -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE=`which python3.6` -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.6 ..

It says the following error:

By not providing "FindInferenceEngineDeveloperPackage.cmake" in
CMAKE_MODULE_PATH this project has asked CMake to find a package
configuration file provided by "InferenceEngineDeveloperPackage", but CMake
did not find one.

Could not find a package configuration file provided by
"InferenceEngineDeveloperPackage" with any of the following names:

InferenceEngineDeveloperPackageConfig.cmake
inferenceenginedeveloperpackage-config.cmake

Add the installation prefix of "InferenceEngineDeveloperPackage" to
CMAKE_PREFIX_PATH or set "InferenceEngineDeveloperPackage_DIR" to a
directory containing one of the above files. If
"InferenceEngineDeveloperPackage" provides a separate development package
or SDK, be sure it has been installed.

I have no idea where this package is located.

For opencv I downloaded myself from here:

https://docs.opencv.org/master/d2/de6/tutorial_py_setup_in_ubuntu.html

Did I miss something please?

0 Kudos
2 Replies
Luis_at_Intel
Moderator
262 Views

Hi @Thib,

Looks like you posted this very same question in GitHub repo https://github.com/openvinotoolkit/openvino/issues/1428, I will continue to assist you in there. My response was as follows:

 

"If I am not mistaken I believe your paths above are slightly inaccurate. Are you using Ubuntu Server 18.04 64-bit? If so for Python, v3.6.9 for example, the cmake command would look similar to:

cmake -DENABLE_PYTHON=ON \

-DPYTHON_EXECUTABLE=/usr/bin/python3.6 \

-DPYTHON_LIBRARY=/usr/lib/aarch64-linux-gnu/libpython3.6m.so \

-DPYTHON_INCLUDE_DIR=/usr/include/python3.6 \

..

 

Also make sure to install all additional packages listed in the /inference-engine/ie_bridges/python/requirements.txt file:

pip install -r requirements.txt

Let me know if issue persists or you have any additional questions."

 

Regards,

Luis

 

Luis_at_Intel
Moderator
248 Views

Hi @Thib,

According to issue in GitHub #1248 this has been resolved as per your comment: "Thanks for help, I solved my problem.  It was due to incorrect default paths in the cmake and then make commands". I will go ahead now and close this thread since this issue has been resolved. If you need any additional information or have any other questions, please create a new question as this thread is no longer being monitored.

Best Regards,

Luis

 

Reply