ActivityWatch / aw-qt

Tray icon that manages ActivityWatch processes, built with Qt.
Mozilla Public License 2.0
27 stars 29 forks source link

PyInstaller builds crashes on start in Windows #16

Closed ErikBjare closed 7 years ago

ErikBjare commented 7 years ago
Traceback (most recent call last):
  File "site-packages\PyInstaller\loader\rthooks\pyi_rth_qt5plugins.py", line 46, in <module>
  File "c:\python35\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 573, in load_module
ImportError: DLL load failed: Det går inte att hitta den angivna proceduren.
Failed to execute script pyi_rth_qt5plugins

Seems related to this: https://github.com/pyinstaller/pyinstaller/issues/2152

Attempting a fix in: https://github.com/ActivityWatch/aw-qt/commit/597fdf1a225fc9abd7c0c910eb9354e244de0f84

Edit: Also related to [these pyinstaller warnings]

7562 WARNING: lib not found: Qt5Svg.dll dependency of C:\python35\lib\site-packages\PyQt5\Qt\plugins\imageformats\qsvg.dll
7999 WARNING: lib not found: Qt5Svg.dll dependency of C:\python35\lib\site-packages\PyQt5\Qt\plugins\iconengines\qsvgicon.dll
8437 WARNING: lib not found: Qt5PrintSupport.dll dependency of C:\python35\lib\site-packages\PyQt5\Qt\plugins\printsupport\windowsprintersupport.dll
8921 WARNING: lib not found: Qt5PrintSupport.dll dependency of c:\python35\lib\site-packages\PyQt5\QtPrintSupport.pyd
ErikBjare commented 7 years ago

So the fix I tried above didn't quite work. With the help of my new Windows VM however, I managed to get this PR together that builds as it should on my machine: https://github.com/ActivityWatch/aw-qt/pull/17

ErikBjare commented 7 years ago

The PR was merged, now I'm just going to update the subrepo in the bundle and ensure the warnings are gone on Appveyor.

ErikBjare commented 7 years ago

Build is running: https://ci.appveyor.com/project/ErikBjare/activitywatch/build/1.0.252

ErikBjare commented 7 years ago

Warnings are gone, closing.