From: htrd90 at zepler.org (Toby Dickenson)
Date: Tue, 04 May 1999 21:53:55 GMT
Subject: Freeze bug?
Message-ID: <37323a53.784594@news.freeserve.net>
Content-Length: 2078
X-UID: 1781                                                

I've been seeing an exception freezing a Windows COM server, although it does
not seem to be Windows related. Freezing a one-liner script fails with the
exception below. This is in 1.5.2, with build 124 of Mark's win32 extensions.

Any thoughts?

The script is:

import win32com.server.dispatcher

With the command line:

%pythonex%\python %pythonex%\tools\freeze\freeze.py -x pywintypes -x
pythoncom -x win32dbg mysscript.py



(Using Python source directory)
Traceback (innermost last):
File "q:\python\tools\freeze\freeze.py", line 461, in ?
main()
File "q:\python\tools\freeze\freeze.py", line 337, in main
mf.run_script(scriptfile)
File "q:\python\tools\freeze\modulefinder.py", line 94, in run_script
self.load_module('__main__', fp, pathname, stuff)
File "q:\python\tools\freeze\modulefinder.py", line 263, in
load_module
self.scan_code(co, m)
File "q:\python\tools\freeze\modulefinder.py", line 283, in scan_code
self.import_hook(name, m)
File "q:\python\tools\freeze\modulefinder.py", line 107, in
import_hook
m = self.load_tail(q, tail)
File "q:\python\tools\freeze\modulefinder.py", line 169, in load_tail
m = self.import_module(head, mname, m)
File "q:\python\tools\freeze\modulefinder.py", line 235, in
import_module
m = self.load_module(fqname, fp, pathname, stuff)
File "q:\python\tools\freeze\modulefinder.py", line 263, in
load_module
self.scan_code(co, m)
File "q:\python\tools\freeze\modulefinder.py", line 305, in scan_code
self.scan_code(c, m)
File "q:\python\tools\freeze\modulefinder.py", line 305, in scan_code
self.scan_code(c, m)
File "q:\python\tools\freeze\modulefinder.py", line 283, in scan_code
self.import_hook(name, m)
File "q:\python\tools\freeze\modulefinder.py", line 106, in
import_hook
q, tail = self.find_head_package(parent, name)
File "q:\python\tools\freeze\modulefinder.py", line 154, in
find_head_package
q = self.import_module(head, qname, parent)
File "q:\python\tools\freeze\modulefinder.py", line 224, in
import_module
self.badmodules[fqname][parent.__name__] = None
AttributeError: 'None' object has no attribute '__name__'






