Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6555 Discussions

Configure the Model Optimizer step failed in OpenVino installation

Awais_Akhtar
Beginner
1,279 Views

Hi

I follow the instruction to install the openvino2021.4.582 from

https://docs.openvinotoolkit.org/2021./openvino_docs_install_guides_installing_openvino_linux.html

But my step failed at configuring the Model Optimizer in the command

sudo ./install_prerequisites.sh

This gives the error as

Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 290, in run
    with self._build_session(options) as session:
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 69, in _build_session
    if options.cache_dir else None
  File "/usr/lib/python3.6/posixpath.py", line 80, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not int
Error on or near line 69; exiting with status 1

Awais_Akhat_1-1634556459388.png

 

I tried the tf2,onnx installed but error persist please tell how to resolve this thanks.

0 Kudos
2 Replies
IntelSupport
Community Manager
1,252 Views

 

Hi Awais_Akhtar,

Thanks for reaching out. Firstly, make sure you are following all the system requirements to install the OpenVINO toolkit. Then, before running any OpenVINO script, make sure you are in the OpenVINO environment by running the setupvars.sh. Meanwhile, have you tried to reinstall the toolkit? I would advise you to reinstall the toolkit and follow all the steps carefully.

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

 

If the issue persists after reinstallation, please share your system environment for us to test it on our side.

 

Regards,

Aznie


0 Kudos
IntelSupport
Community Manager
1,196 Views

Hi Awais_Akhtar,

This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.


Regards,

Aznie


0 Kudos
Reply