Article ID: 000089575 Content Type: Error Messages Last Reviewed: 05/20/2022

Error: “resolvedPylancereportMissingImports” When Importing Notebook_utils on OpenVINO™ Notebooks

Environment

WSL2, Ubuntu 20.04

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Steps to install OpenVINO™ Notebooks

Description
  • Downloaded OpenVINO™ Notebooks
  • Installed required packages:
    python -m pip install --upgrade pip
    pip install -r requirements.txt
  • Encountered the error when importing notebook_utils:
    ERROR: Import "notebook_utils" could not be resolvedPylancereportMissingImports
Resolution

Follow the steps for your OS in the OpenVINO Notebooks Installation Guide

  • Install additional libraries:

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install python3-venv build-essential python3-dev git-all

  • Create a virtual environment:

    python3 -m venv openvino_env

  • Activate the virtual environment:

    source openvino_env/bin/activate

  • Clone the repository:

    git clone --depth=1 https://github.com/openvinotoolkit/openvino_notebooks.git
    cd openvino_notebooks

  • Install the dependencies packages:

    python -m pip install --upgrade pip
    pip install -r requirements.txt

  • Install the virtualenv Kernel in Jupyter:

    python -m ipykernel install --user --name openvino_env

Additional information

Refer to OpenVINO™ Notebooks Installation Guide

Related Products

This article applies to 2 products