Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
49 Views

pypy3 with OpenVINO

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
Highlighted
Employee
49 Views

Hi Vasil,

Have you tried using python3 instead of pypy3?

It is recommended to use the supported python versions

Regards,

Jaivin

0 Kudos
Highlighted
49 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
Highlighted
49 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
Highlighted
Employee
49 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
Highlighted
49 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