Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QWT widgets will not import from Qt5 designer #8

Open
geovogel opened this issue Dec 23, 2018 · 1 comment
Open

QWT widgets will not import from Qt5 designer #8

geovogel opened this issue Dec 23, 2018 · 1 comment

Comments

@geovogel
Copy link

geovogel commented Dec 23, 2018

On the Raspberry pi trying to import QWT widgets from a ".ui" designer file into a python 3 script results in an import error (for example);

Traceback (most recent call last):
File "/home/pi/Google Drive/PythonCode/Google_API/WidgetTest.py", line 10, in
Ui_MainWindow, QtBaseClass = uic.loadUiType(DesignerFile)
File "/usr/lib/python3/dist-packages/PyQt5/uic/init.py", line 201, in loadUiType
exec(code_string.getvalue(), ui_globals)
File "", line 67, in
ImportError: No module named 'qwt_analog_clock'

Notes: Widgets can be generated in the python script but not imported through .ui
Pi distribution is Raspberian "Stretch"
Python version is 3.5.3
QT Designer version = 5.7.1
PyQt5 version is 5.7+dfsg-5
Sip Version is 4.18.1+dfsg-2

Python Script;

#!/usr/bin/env python3
import sys
from PyQt5 import Qwt
from PyQt5.QtWidgets import *
from PyQt5 import uic
DesignerFile = "QWTwidgetTest.ui"
app = QApplication(sys.argv)
Ui_MainWindow, QtBaseClass = uic.loadUiType(DesignerFile)
ui = Ui_MainWindow()
window = QMainWindow()
ui.setupUi(window)
window.show()
sys.exit(app.exec_())

image

@GauiStori
Copy link
Owner

GauiStori commented Dec 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants