Nuitka: Error loading QtWidgets.pyd

@kayhayen

Created another little test for you, in this case I dont use * to import modules, you can reproduce it:

NS: nuitka3 main.py --show-progress --recurse-all --standalone --plugin-enable=qt-plugins didn’t make any difference, you’ll still get:

D:\sources\personal\python\apps\nuitka_tests\pyqt\test2\main.dist>main.exe
Traceback (most recent call last):
  File "D:\sources\personal\python\apps\nuitka_tests\pyqt\test2\main.dist\main.py", line 3, in <module>
ImportError: LoadLibraryEx 'D:\sources\personal\python\apps\nuitka_tests\pyqt\test2\main.dist\PyQt5\QtWidgets.pyd' failed

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 38 (36 by maintainers)

Most upvoted comments

The factory branch is good now, it worked for me.

The thing of not having a reproducer is that sometimes there can be more than one issue. I am personally shocked at the breadth of issues. I am willing to include this in a hotfix should it prove useful. I do not think the change is all that much.

For the caching, I need to think more. Maybe, Nuitka ought to produce just one file, for a project, that can be provided to speed up repeated distribution building, and its user decision to use it or not.

The thing is, if you installed something new, how would the cache know it’s invalid. It is effectively unknowable for an algorithm. Taking file checksums will at least know when to trust it to be somewhat good enough. Alternatively, I need to consider the parallel runnings of depends.exe, why is it so slow anyway?