Skip to main content
Ahasa.1
Associate
May 13, 2020
Question

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

  • May 13, 2020
  • 2 replies
  • 833 views

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 ?

This topic has been closed for replies.

2 replies

mleo
Visitor II
May 19, 2020

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
Ahasa.1Author
Associate
May 21, 2020

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'