Ticket #460 (closed defect: fixed)
"resname undefined error" when using -r/--resource option
|Reported by:||Maarten Damen <m.damen@…>||Owned by:||htgoebel|
Description (last modified by htgoebel) (diff)
In the latest trunk version (and maybe before) the --resource option is broken. There are a few obvious typos which I was able to fix, but I ran into more issues later on. The typos are in the Build.py file:
if len(res) > 1: restype = res else: restype = None if len(res) > 2: resname = res else: restype = None if len(res) > 3: reslang = res else: restype = None
This causes a resname undefined error. After fixing this issue (by renaming the redundant restype assignments), I ran into the following issue:
File "C:\Tools\pyinstaller\PyInstaller?\utils\winresource.py", line 131, in _GetResources
if types: types = set(types)
TypeError?: unhashable type: 'list'
Not sure how this is meant to be functioning, I had a deep dive in the code. But it would be nice if someone from the PyInstaller? dev team could have a look at this issue.
- Owner changed from matysek to htgoebel
- Status changed from new to assigned
- Description modified (diff)
- Summary changed from -r/--resource option broken to "resname undefined error" when using -r/--resource option