Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1628 Discussions

Openvino module not found in devcloud

NSVR
Novice
2,666 Views

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
1 Solution
RaeesaM_Intel
Moderator
2,584 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
RaeesaM_Intel
Moderator
2,655 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
NSVR
Novice
2,650 Views

Hi 

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

 

0 Kudos
RaeesaM_Intel
Moderator
2,642 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
NSVR
Novice
2,638 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
RaeesaM_Intel
Moderator
2,599 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
NSVR
Novice
2,595 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
RaeesaM_Intel
Moderator
2,586 Views

Can you install the numpy package in your environment :

conda install numpy

and try the import statement again.


Thanks


0 Kudos
RaeesaM_Intel
Moderator
2,585 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


0 Kudos
RaeesaM_Intel
Moderator
2,557 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
Reply