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.

pypy3 with OpenVINO

timofeev__vasil
Beginner
699 Views

Please help me, i can`t load cv2 and ie into pypy3 

Variables (setupvars) are loaded

Ubuntu 18.04 LTS

 

[setupvars.sh] OpenVINO environment initialized
(venv) imt@imt-G7-7790:~/cs$ pypy3
Python 3.6.9 (1608da62bfc7, Dec 23 2019, 10:50:04)
[PyPy 7.3.0 with GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'
>>>> 
(venv) imt@imt-G7-7790:~/cs$ source /opt/intel/openvino/bin/setupvars.sh
[setupvars.sh] OpenVINO environment initialized
(venv) imt@imt-G7-7790:~/cs$ pypy3
Python 3.6.9 (1608da62bfc7, Dec 23 2019, 10:50:04)
[PyPy 7.3.0 with GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cv2'
>>>> 
(venv) imt@imt-G7-7790:~/cs$ 

 

0 Kudos
5 Replies
JAIVIN_J_Intel
Employee
699 Views

Hi Vasil,

Have you tried using python3 instead of pypy3?

It is recommended to use the supported python versions

Regards,

Jaivin

0 Kudos
timofeev__vasil
Beginner
699 Views

Hello!

Sure with python3 it works, but i want more...

i don't understand how to show pypy3 to look for cv2 and ie libraries! load variables seems to has no effect

Thank you!

0 Kudos
timofeev__vasil
Beginner
699 Views

Hello!

Sure with python3 it works, but i want more...

i don't understand how to show pypy3 to look for cv2 and ie libraries! load variables seems to has no effect

Thank you!

0 Kudos
JAIVIN_J_Intel
Employee
699 Views

Hi Vasil,

As mentioned in the documentation OpenVINO on Ubuntu* 18.04 supports only 2.7, 3.5, 3.6 and 3.7 standard versions of Python. The PyPy3 implementation of Python may not be compatible with OpenVINO.

Thanks,

Jaivin

0 Kudos
timofeev__vasil
Beginner
699 Views

Hi James!

sorry for the bad explication, the problem was not the run-time failure by using pypy but that a can't set local variables for pypy to see cv2 and ie. 

Thanks

Vasili

0 Kudos
Reply