@@ -14,7 +14,7 @@ BINARIES.extend([(os.path.join(yocto_lib_path, fn),'yoctopuce/cdll') for fn in o
1414phidgets_lib_path = os .path .join (get_package_paths ('Phidget22' )[1 ], '.libs' )
1515BINARIES .extend ([(os .path .join (phidgets_lib_path , fn ),'Phidget22/.libs' ) for fn in os .listdir (phidgets_lib_path ) if fn .endswith ('.so' )])
1616
17- # add missing Qt6QmlMeta.so
17+ # add missing QtWebEngine shared libs
1818BINARIES .append ((os .path .join (get_package_paths ('PyQt6' )[1 ], 'Qt6/lib/libQt6QmlMeta.so.6' ), 'PyQt6/Qt6/lib' ))
1919BINARIES .append ((os .path .join (get_package_paths ('PyQt6' )[1 ], 'Qt6/lib/libQt6QmlWorkerScript.so.6' ), 'PyQt6/Qt6/lib' ))
2020
@@ -29,13 +29,9 @@ if not os.path.isdir(path):
2929hiddenimports_list = [
3030 'matplotlib.backends.backend_pdf' ,
3131 'matplotlib.backends.backend_svg' ,
32- # 'PyQt6.QtPositioning', # unclear
32+ 'PyQt6.QtPositioning' ,
3333 'PyQt6.QtWebChannel' , ## Win incl., but did not help
3434 'PyQt6.QtWebEngineCore' , ## Win incl.
35- # 'PyQt6.QtQuick', # links to QmlMeta, but did not help
36- # 'PyQt6.QtWebEngineQuick', # links to QmlMeta, but did not help
37- # 'PyQt6.QtQml', # unclear, but did not help
38- # 'PyQt6.QtQuick3D', # links to QmlMeta, not tried yet
3935 'babel.numbers' # should not be needed as it got fixed in pyinstaller 6.11
4036] + collect_submodules ('dbus_fast' )
4137
@@ -62,10 +58,16 @@ EXCLUDES = [
6258# 'PyQt6.QtWebEngineQuick'
6359]
6460
61+
62+ DATA_FILES = [
63+ # (os.path.join(get_package_paths('PyQt6')[1], 'Qt6/translations/qtwebengine_locales/en-US.pak'), 'locales')
64+ (os .path .join (get_package_paths ('PyQt6' )[1 ], 'Qt6/translations/qtwebengine_locales/en-US.pak' ), 'PyQt6/Qt6/translations/qtwebengine_locale' )
65+ ]
66+
6567a = Analysis (['artisan.py' ],
6668 pathex = [path ],
6769 binaries = BINARIES ,
68- datas = [] ,
70+ datas = DATA_FILES ,
6971 hookspath = [],
7072 runtime_hooks = ['./pyinstaller_hooks/rthooks/pyi_rth_mplconfig.py' ], # overwrites default MPL runtime hook which keeps loading font cache from (new) temp directory
7173# excludes=EXCLUDES,
0 commit comments