Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Novice
337 Views

Openvino module not found in devcloud

Jump to solution

Openvino module not found in dev cloud's jupyter lab using terminal even after installing  it using the following link.

https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_conda.html

0 Kudos

Accepted Solutions
Moderator
255 Views

Hi,


Could you please try this also :


1)     Activate the conda environment that is problematic, and check the correct executable path for the environment


>>>import sys

>>> sys.executable


Do the same in the notebook by choosing the same environment kernel and check whether the executable path is different or not.


2)     From command line, check the path where kernel.json of your problematic conda environment is located.


jupyter kernelspec list

 

For instance on Linux it will be: /home/{username}/.local/share/jupyter/kernels/{environment name}


Open the kernel.json located in that folder and replace the incorrect executable path, as shown below.

{

"argv": [

"REPLACE-THIS-WITH-THE-CORRECT-EXECUTABLE-PATH",

"-m",

"ipykernel_launcher",

"-f",

"{connection_file}"

],

"display_name": "heterodimers",

"language": "python"

}


Try this and let us know the updates.


Thanks ,

Raeesa


View solution in original post

0 Kudos
9 Replies
Moderator
326 Views

Hi,

 

Thank you for posting in Intel DevCloud Forum.

Please make sure that the environment path is correct.

Open a new terminal and activate the environment.

$conda activate <env-name>

$which python

If the path is different, export it manually :

$export PATH= ~/.conda/envs/<env-name>/bin/:$PATH

Also, please try installing it in a fresh environment and check whether downloading and extracting is done properly.

 

Thanks and Regards,

Raeesa

 

0 Kudos
Novice
321 Views

Hi 

I am able to import openvino in terminal. but with the same env getting error in notebook

 

0 Kudos
Moderator
313 Views

Hi,


Please connect to DevCloud again and make sure that export command is correct and check whether its working fine .If issue still persists, share the export command or screenshot.


Also, you can try installing it in a new environment.


Thanks


0 Kudos
Novice
309 Views

My PATH variable is resetting and changed to default every time when I refresh the page. I am attaching two screenshots, where in terminal its working as expected but the same env is not working in notebook.

0 Kudos
Moderator
270 Views

Hi,


We were not able to reproduce the issue from our end . Could you please try exporting the environment path in notebook ?


Thanks


0 Kudos
Novice
266 Views

Hi 

Still issue is persisting please find below error

 

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-82b2d7f92c72> in <module>()
----> 1 from openvino.inference_engine import IECore

/home/u49312/.conda/envs/onnx/lib/python3.7/openvino/inference_engine/__init__.py in <module>()
----> 1 from .ie_api import *
      2 __all__ = ['IENetwork', "TensorDesc", "IECore", "Blob", "PreProcessInfo", "get_version"]
      3 __version__ = get_version()
      4 

ie_api.pyx in init openvino.inference_engine.ie_api()

constants.pyx in init openvino.inference_engine.constants()

ModuleNotFoundError: No module named 'numpy'
0 Kudos
Moderator
260 Views

Can you install the numpy package in your environment :

conda install numpy

and try the import statement again.


Thanks


0 Kudos
Moderator
256 Views

Hi,


Could you please try this also :


1)     Activate the conda environment that is problematic, and check the correct executable path for the environment


>>>import sys

>>> sys.executable


Do the same in the notebook by choosing the same environment kernel and check whether the executable path is different or not.


2)     From command line, check the path where kernel.json of your problematic conda environment is located.


jupyter kernelspec list

 

For instance on Linux it will be: /home/{username}/.local/share/jupyter/kernels/{environment name}


Open the kernel.json located in that folder and replace the incorrect executable path, as shown below.

{

"argv": [

"REPLACE-THIS-WITH-THE-CORRECT-EXECUTABLE-PATH",

"-m",

"ipykernel_launcher",

"-f",

"{connection_file}"

],

"display_name": "heterodimers",

"language": "python"

}


Try this and let us know the updates.


Thanks ,

Raeesa


View solution in original post

0 Kudos
Moderator
228 Views

Hi,


Glad that your issue got resolved. We are discontinuing monitoring this thread.

Please raise a new thread if you encounter any further issues. We would be happy to help you.


Thanks and Regards,

Raeesa


0 Kudos