From 4c9df6ce299e71b12d64c104e90cbf4ff408e6e3 Mon Sep 17 00:00:00 2001 From: MAKOMO Date: Wed, 18 Sep 2024 20:54:51 +0200 Subject: [PATCH] typos --- src/artisan-linux.spec | 20 ++++++-------------- src/artisanlib/main.py | 3 +-- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/src/artisan-linux.spec b/src/artisan-linux.spec index 96dd4fc8b..636096f50 100644 --- a/src/artisan-linux.spec +++ b/src/artisan-linux.spec @@ -36,22 +36,14 @@ EXCLUDES = [ 'PyQt6.QtTest', 'PyQt6.QtTextToSpeech', # the following are required by QtWebEngineWidgets and thus by QtWebEngine for the HTML2PDF export -# 'PyQt6.QtQuick', -# 'PyQt6.QtQml', -# 'PyQt6.OpenGL', -# 'PyQt6.QtWebChannel', -# 'PyQt6.QtPositioning', -# 'PyQt6.QtWebEngineQuick' + 'PyQt6.QtQuick', + 'PyQt6.QtQml', + 'PyQt6.OpenGL', + 'PyQt6.QtWebChannel', + 'PyQt6.QtPositioning', + 'PyQt6.QtWebEngineQuick' ] - 'QtQuick', - 'QtQuickWidgets', - 'QtQml', - 'QtQmlModels', - 'QtWebChannel', - 'QtPositioning', - 'QtOpenGL' - a = Analysis(['artisan.py'], pathex=[path], diff --git a/src/artisanlib/main.py b/src/artisanlib/main.py index 4932c249d..377622fba 100644 --- a/src/artisanlib/main.py +++ b/src/artisanlib/main.py @@ -135,8 +135,7 @@ from PyQt6.QtWebEngineWidgets import QWebEngineView # @Reimport @UnresolvedImport @UnusedImport # pylint: disable=import-error,no-name-in-module from PyQt6.QtWebEngineCore import QWebEngineProfile QtWebEngineSupport = True - except ImportError as e: - print(e) + except ImportError: # on the RPi platform there is no native package PyQt-WebEngine nor PyQt6-WebEngine for Raspebarry 32bit pass from PyQt6 import sip # @Reimport @UnresolvedImport @UnusedImport