Hi,
I have trouble packaging wxPython program with McMillan installer. It worked before I made some edit to the program and perhaps installed a new Python and wxPython libraries.
The type error "TypeError: unpack non-sequence" result in file mf.py on line 161. It seems like in mf.py around line 152
hskey = win32api.RegOpenKeyEx(hkey, subkeyname, 0, win32con.KEY_READ)
val = win32api.RegQueryValueEx(hskey, '')
desc = getDescr(val[0])
When val[0] is '2.4.2.4', the call to getDescr() get a "None", and that seems to be the problem.
I have no idea what the code is doing. What's the problem? I tried uninstalling and installing different version of the wxPython a few times and it doesn't seem to help.
The following is the traceback:
checking Analysis
building Analysis because out0.toc non existent
running Analysis out0.toc
Analyzing: C:\Python23\Lib\site-packages\Installer\support\_mountzlib.py
Analyzing: C:\Python23\Lib\site-packages\Installer\support\useUnicode.py
Analyzing: qbplot.pyw
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\Installer\Build.py", line 780, in ?
build(sys.argv[1])
File "C:\Python23\Lib\site-packages\Installer\Build.py", line 40, in build
exec open(spec, 'r').read()+'\n'
File "<string>", line 2, in ?
File "C:\Python23\Lib\site-packages\Installer\Build.py", line 76, in __init__
self.__postinit__()
File "C:\Python23\Lib\site-packages\Installer\Build.py", line 58, in __postinit__
self.assemble()
File "C:\Python23\Lib\site-packages\Installer\Build.py", line 146, in assemble
analyzer.analyze_script(script)
File "C:\Python23\Lib\site-packages\Installer\mf.py", line 363, in analyze_scr
ipt
return self.analyze_r('__main__')
File "C:\Python23\Lib\site-packages\Installer\mf.py", line 283, in analyze_r
newnms = self.analyze_one(name, nm, imptyp)
File "C:\Python23\Lib\site-packages\Installer\mf.py", line 317, in analyze_one
mod = self.doimport(nm, ctx, fqname)
File "C:\Python23\Lib\site-packages\Installer\mf.py", line 384, in doimport
mod = director.getmod(nm)
File "C:\Python23\Lib\site-packages\Installer\mf.py", line 161, in getmod
fnm, (suffix, mode, typ) = stuff
TypeError: unpack non-sequence