freeze.py

Daniel Andersson daniel.andersson at centrumeh.com
Mon Sep 11 10:05:08 CEST 2000


Hi

Im having problems with the freeze tool in 2.0b1. I have
tried it on both Windows2k and solaris and they both spit
out this:

>python freeze.py -o /export/home/brutal/freeze hello.py 
Traceback (most recent call last):
  File "freeze.py", line 457, in ?
    main()
  File "freeze.py", line 321, in main
    mf.import_hook(mod)
  File "modulefinder.py", line 106, in import_hook
    q, tail = self.find_head_package(parent, name)
  File "modulefinder.py", line 147, in find_head_package
    q = self.import_module(head, qname, parent)
  File "modulefinder.py", line 233, in import_module
    m = self.load_module(fqname, fp, pathname, stuff)
  File "modulefinder.py", line 261, in load_module
    self.scan_code(co, m)
  File "modulefinder.py", line 281, in scan_code
    self.import_hook(name, m)
  File "modulefinder.py", line 106, in import_hook
    q, tail = self.find_head_package(parent, name)
  File "modulefinder.py", line 147, in find_head_package
    q = self.import_module(head, qname, parent)
  File "modulefinder.py", line 233, in import_module
    m = self.load_module(fqname, fp, pathname, stuff)
  File "modulefinder.py", line 261, in load_module
    self.scan_code(co, m)
  File "modulefinder.py", line 281, in scan_code
    self.import_hook(name, m)
  File "modulefinder.py", line 106, in import_hook
    q, tail = self.find_head_package(parent, name)
  File "modulefinder.py", line 147, in find_head_package
    q = self.import_module(head, qname, parent)
  File "modulefinder.py", line 233, in import_module
    m = self.load_module(fqname, fp, pathname, stuff)
  File "modulefinder.py", line 261, in load_module
    self.scan_code(co, m)
  File "modulefinder.py", line 303, in scan_code
    self.scan_code(c, m)
  File "modulefinder.py", line 281, in scan_code
    self.import_hook(name, m)
  File "modulefinder.py", line 106, in import_hook
    q, tail = self.find_head_package(parent, name)
  File "modulefinder.py", line 147, in find_head_package
    q = self.import_module(head, qname, parent)
  File "modulefinder.py", line 233, in import_module
    m = self.load_module(fqname, fp, pathname, stuff)
  File "modulefinder.py", line 261, in load_module
    self.scan_code(co, m)
  File "modulefinder.py", line 289, in scan_code
    assert lastname is not None
AssertionError


I have also tried freeze.py on an old 1.5.2 linux install
and it worked fine there. What gives?

cheers

/Daniel




More information about the Python-list mailing list