pyeiq on imx8mqevk: gtk, gdkpixbuf Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pyeiq on imx8mqevk: gtk, gdkpixbuf Error

1,532 Views
manizillion
Contributor IV

Hi,

I sucessfully installed eiq on latest build , following instructions of the link ..

https://community.nxp.com/community/eiq/blog/2020/06/30/pyeiq-a-python-framework-for-eiq-on-imx-proc... 

imx8mqevk:~# pip install eiq
Collecting eiq
Downloading eiq-2.1.0.tar.gz (30 kB)
Building wheels for collected packages: eiq
Building wheel for eiq (setup.py) ... done
Created wheel for eiq: filename=eiq-2.1.0-py3-none-any.whl size=44290 sha256=f802204f8e550b9e2a5bfd901f381baca548e1af106a9dbd3d6dad24e92eb822
Stored in directory: /home/0/.cache/pip/wheels/95/da/f9/920839b7c68764fccb77b36b79a565ef2200afb240437a121a
Successfully built eiq
Installing collected packages: eiq
Successfully installed eiq-2.1.0
imx8mqevk:~# pip3 install eiq
Requirement already satisfied: eiq in /usr/lib/python3.8/site-packages (2.1.0)
imx8mqevk:~# pyeiq

I do get this error when running pyeiq framework on imx8mqevk,

imx8mqevk:~# pyeiq
Traceback (most recent call last):
File "/usr/bin/pyeiq", line 12, in <module>
from eiq.apps.pyeiq_launcher.config import APPS, DEMOS
File "/usr/lib/python3.8/site-packages/eiq/apps/pyeiq_launcher/config.py", line 4, in <module>
from eiq.apps.switch_image.switch_image import eIQSwitchLabelImage
File "/usr/lib/python3.8/site-packages/eiq/apps/switch_image/switch_image.py", line 12, in <module>
gi.require_versions({'GdkPixbuf': "2.0", 'Gtk': "3.0"})
AttributeError: module 'gi' has no attribute 'require_versions'
imx8mqevk:~#

What is that missing ?

Labels (1)
Tags (3)
0 Kudos
2 Replies

1,426 Views
daiane_angolini
NXP Employee
NXP Employee

Can you, please, confirm if you are using a different BSP for each test?

Which is the BSP you are using?

Which image do you have installed on your board?

0 Kudos

1,085 Views
kenizgandhi
Contributor III

Hello @daiane_angolini ,

Linux version 5.10.9-1.0.0+g32513c25d8c7 (oe-user@oe-host) (aarc1
Machine model: NXP i.MX8MPlus EVK board
I have successfully installed pyeiq using pip3 install pyeiq. But when I write pyeiq I am facing the following error:

Traceback (most recent call last):
File "/usr/bin/pyeiq", line 12, in <module>
from eiq.apps.pyeiq_launcher.config import APPS, DEMOS
File "/usr/lib/python3.8/site-packages/eiq/apps/pyeiq_launcher/config.py", line 4, in <module>
from eiq.apps.switch_image.switch_image import eIQSwitchLabelImage
File "/usr/lib/python3.8/site-packages/eiq/apps/switch_image/switch_image.py", line 16, in <module>
import cv2
ModuleNotFoundError: No module named 'cv2'

Can you please solve this error. 

Thank You. 

Kind Regards,

Keniz

 

SOLVED : it was simple . pip3 install packagename

0 Kudos