Issue267

Title Nuitka fails to execute PySide applications using QAbstractTableModel
Priority bug Status chatting
Superseder Nosy List cryzed
Assigned To Keywords

Created on 2015-11-22.15:26:08 by cryzed, last changed by cryzed.

Files
File name Uploaded Type Edit Remove
test.7z cryzed, 2015-11-22.15:26:08 application/x-7z-compressed
Messages
msg1707 (view) Author: cryzed Date: 2015-11-24.10:57:11
This would require me to recompile Shiboken and Nuitka. Are there plans to
support this out of the box at some point?
msg1705 (view) Author: kayhayen Date: 2015-11-24.09:19:15
PySide needs patches to work properly with compiled method. Check the mailing 
archives for them.
msg1704 (view) Author: cryzed Date: 2015-11-22.15:26:08
The versions used are: Python 3.4.3 (32 bit), PySide 1.2.1 Nuitka 0.5.16 and
Windows 7. I start Nuitka the following way:

Nuitka --standalone --show-modules --verbose --debug --jobs=4 main.py >
nuitka_log.txt 2>&1

When opening the resulting executable I receive the error message:

Traceback (most recent call last):
  File "D:\Documents\Code\PyCharm\test\main.dist\main.py", line 16, in <module>
  File "D:\Documents\Code\PyCharm\test\main.dist\main.py", line 10, in main
  File "D:\Documents\Code\PyCharm\test\main.dist\application\main_window.py",
line 18, in __init__
  File "D:\Documents\Code\PyCharm\test\main.dist\application\table_model.py",
line 65, in add
NotImplementedError: pure virtual method 'QAbstractTableModel.rowCount()' not
implemented.

The method is of course overridden in my QAbstractTableModel subclass and the
script runs without errors when running it with the regular Python interpreter.
It almost seems like the generated code fails to include some of the methods in
my subclass. Attached is the nuitka_log.txt, source code and the main.build and
main.dist directories compiled with the line above using MinGW. I compressed the
folder with 7zip to around 10mb, I hope you have a way to unpack that format. On
request I can upload it somewhere else or in a different format.
History
Date User Action Args
2015-11-24 10:57:11cryzedsetstatus: resolved -> chatting
messages: + msg1707
2015-11-24 09:19:16kayhayensetstatus: unread -> resolved
messages: + msg1705
2015-11-22 15:26:08cryzedcreate