cancel
Showing results for 
Search instead for 
Did you mean: 

I use this : LSB Version: core-5.0-noarch:core-5.0-arm Distributor ID: openstlinux-weston Description: ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 2.6-openstlinux-20-02-19 Release: 2.6-openstlinux-20-02-19

Ahasa.1
Associate

I wan to install and develop userinterface programs using, tkinter and PyQt5 frameworks. but can not install both tkinter and pyqt5 , can you help please ?

2 REPLIES 2
mleo
Senior II

Hi @Ahasa.1​ 

Searching package repositories (see article https://wiki.st.com/stm32mpu/wiki/Package_repository_for_OpenSTLinux_distribution) I found following installable packages:

...

python-pyqt5 - Python Qt5 Bindings

python3-pyqt5 - Python Qt5 Bindings

(result of "apt-cache search qt5")

python-tkinter - Python Tcl/Tk bindings

python3-tkinter - Python Tcl/Tk bindings

(result of "apt-cache search tkinker")

Are these packages what you were looking for?

Milan

Ahasa.1
Associate

I installed python3-pyqt5 and python3-tkinter but the problem not solved and still give following errors,

tkinter error:

  import tkinter as tk

 File "/usr/lib/python3.5/tkinter/__init__.py", line 35, in <module>

 import _tkinter # If this fails your Python may not be configured for Tk

ImportError: No module named '_tkinter'

pyqt5 error:

 from PyQt5.QtWidgets import QApplication, QWidget

ImportError: No module named 'PyQt5'