Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed openvino notebook using docker. But check_install.py failed #2013

Open
gooishin opened this issue May 10, 2024 · 6 comments
Open
Assignees
Labels
category: NPU OpenVINO NPU plugin PSE Escalate to PSE for further investigate support_request

Comments

@gooishin
Copy link

gooishin commented May 10, 2024

Describe the bug
I get this message after install using docker.
Docker install command: docker build -t openvino_notebooks .

Successfully built f30e6fa7e919
Successfully tagged openvino_notebooks:latest

Docker run command:
docker run -it -v /etc/group:/etc/group --device=/dev/dri --group-add=$(stat -c "%g" /dev/dri/render* | head -n 1) --group-add=$(stat -c "%g" /dev/dri/card* | head -n 1) -p 8888:8888 openvino_notebooks

But when i run check_install.py, it shows some error

(app-root) bash-4.4$ python check_install.py 
System information:
Python executable: /opt/app-root/bin/python
Pip version: 23.3.2
OpenVINO source: /opt/app-root/lib64/python3.8/site-packages/openvino
OpenVINO IE version: 2024.1.0-15008-f4afc983258-releases/2024/1
OpenVINO environment activated: NOT OK
Jupyter kernel installed for openvino_env: NOT OK
Python version: 3.8 OK
OpenVINO pip package installed: OK
OpenVINO import succeeds: OK
OpenVINO development tools installed: OK
OpenVINO not installed globally: OK
No broken requirements: OK

It appears that you are not running Python in an `openvino_env` 
environment. It is possible use the notebooks in a different 
environment, but if you run into trouble, please follow the instructions 
in the README to install and activate the `openvino_env` environment.

The Python version in openvino_env does not match the openvino_env Jupyter kernel.
This may not be an issue. If you experience issues, please follow the instructions
in the README to reinstall the kernel.

The README.md file is located in the openvino_notebooks directory 
and at https://github.com/openvinotoolkit/openvino_notebooks

i'm using docker, how do I create and source the environment?

Expected behavior
check_install.py pass

Screenshots
If applicable, add screenshots to help explain your problem.

Installation instructions (Please mark the checkbox)
[ x ] I followed the installation guide at https://github.com/openvinotoolkit/openvino_notebooks/wiki/Docker

** Environment information **
As stated above

Additional context
Just a feedback, when run docker container, there is no check_install.py script, i copy it manually into jupyter notebook via web browser.

@gooishin
Copy link
Author

I was trying to run notebook hello-npu, but it only shows CPU. Hence im using check_install.py . If i install openvino natively, query device able to get CPU, GPU and NPU.

@brmarkus
Copy link

You might need to add --device=/dev/accel to the docker run command line - which I saw here: "https://dlstreamer.github.io/get_started/install/install_guide_ubuntu.html#step-5-run-intel-dl-streamer-pipeline-framework-container"

@gooishin
Copy link
Author

You might need to add --device=/dev/accel to the docker run command line - which I saw here: "https://dlstreamer.github.io/get_started/install/install_guide_ubuntu.html#step-5-run-intel-dl-streamer-pipeline-framework-container"

I tried with --device=/dev/accel , still only able to detect CPU

@Iffa-Intel
Copy link

Iffa-Intel commented May 16, 2024

@gooishin Try upgrading your Docker version to the latest version using the command:
sudo apt-get update
sudo apt-get upgrade docker-ce

I assume you already set the Docker to be run as non-root user.
However, try to run the command with sudo: "sudo docker build -t openvino_notebooks"
as in this case #2012 these solved building issues.

Then, run it again.

CPU
image

CPU & GPU
image

@gooishin
Copy link
Author

@Iffa-Intel , i have updated the docker-ce and reinstall using sudo. But still im only able to see CPU.
command:

docker run -it --name test_notebooks -v /etc/group:/etc/group --device=/dev/dri --device=/dev/accel --group-add=$(stat -c "%g" /dev/dri/render* | head -n 1) -p 8888:8888 openvino_notebooks

This is notebook hello-npu. Expecting to see CPU, GPU and NPU here.
image

@Iffa-Intel Iffa-Intel added the PSE Escalate to PSE for further investigate label May 17, 2024
@avitial avitial self-assigned this May 21, 2024
@avitial
Copy link

avitial commented May 23, 2024

@gooishin can you share the CPU SKU/Model you are using? Post the output of lscpu. In the meantime I am trying the steps on MTL platform and see if I can reproduce the issue, stay tuned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: NPU OpenVINO NPU plugin PSE Escalate to PSE for further investigate support_request
Projects
None yet
Development

No branches or pull requests

5 participants