#61: Fatal error on STORE_DEREF + suggested solution
--------------------------+-------------------------------------------------
Id: 61 | Status: new
Component: PyInstaller | Modified: Tue Jul 4 07:10:54 2006
Severity: blocker | Milestone:
Priority: normal | Version: PyInstaller SVN (unreleased)
Owner: giovannibajo | Reporter: openticket
--------------------------+-------------------------------------------------
I've got a module where the following python code:
{{{
from LmtBooksPanes import
LmtLhMappedBooksPanel,LmtBooksMappedHierarchyPanel
}}}
generates the following assembly:
{{{
69 52 LOAD_CONST 5 (('LmtLhMappedBooksPanel',
'LmtBooksMappedHierarchyPanel'))
55 IMPORT_NAME 6 (LmtBooksPanes)
58 IMPORT_FROM 7 (LmtLhMappedBooksPanel)
61 STORE_DEREF 4 (LmtLhMappedBooksPanel)
64 IMPORT_FROM 8 (LmtBooksMappedHierarchyPanel)
67 STORE_DEREF 1 (LmtBooksMappedHierarchyPanel)
70 POP_TOP
}}}
The analysis of the code bails out with the following error:
{{{
File "c:\python23\Installer\mf.py", line 603, in scan_code
m.append((lastname+'.'+name, nested, conditional))
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
}}}
I've peeked at mf.py and it seems that the STORE_DEREF at position 61 is
the culprit. Since STORE_DEREF is not in STORE_OPS, it resets the lastname
tu Null.
I think that STORE_DEREF should be added to STORE_OPS in mf.py.
--
Ticket URL: <http://pyinstaller.hpcf.upr.edu/cgi-bin/trac.cgi/ticket/61>
PyInstaller <http://pyinstaller.hpcf.upr.edu>
PyInstaller
_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller