Bug in frozen linbot.py

Andreas Jung ajung at sz-sb.de
Thu May 6 02:49:26 EDT 1999


I tried to freeze the great linkchecker LINBOT (Version 1.0) with
Python 1.5.2 under Solaris 7. The frozen binary has some problem finding
its plugins files:

tedint@/tmp/linbot-1.0(34)% ./linbot http://tedint/ojs/de/inh.htm
checking site....
        base: http://tedint/ojs/de/
        Getting robots.txt for tedint
        Robot Restriced
done.
Generating reports...
        sitemap
Traceback (innermost last):
  File "linbot.py", line 171, in ?
    nav_bar(plugins)
  File "plugins/rptlib.py", line 196, in nav_bar
    report = __import__('plugins.' + plugin, globals(), locals(),
[plugin])
ImportError: No module named sitemap


truss-ing the binary shows the reason for the failure:

stat("/usr/local/packages/python1.5/lib/python1.5/site-packages/plugins.sitemap",
0xFFBEE530) Err#2 ENOENT
open("/usr/local/packages/python1.5/lib/python1.5/site-packages/plugins.sitemap.so",
O_RDONLY) Err#2 ENOENT
open("/usr/local/packages/python1.5/lib/python1.5/site-packages/plugins.sitemapmodule.so",
O_RDONLY) Err#2 ENOENT
open("/usr/local/packages/python1.5/lib/python1.5/site-packages/plugins.sitemap.py",
O_RDONLY) Err#2 ENOENT
open("/usr/local/packages/python1.5/lib/python1.5/site-packages/plugins.sitemap.pyc",
O_RDONLY) Err#2 ENOENT

I'm not really sure either it's a problem of freeze or a problem of
linbot. Using the python interpreter with the same setup works fine.

Kind regards,
Andreas

                                _\|//_
                               (' O-O ')
------------------------------ooO-(_)-Ooo--------------------------------------
   Andreas Jung, Saarbrücker Zeitung Verlag und Druckerei GmbH
   Saarbrücker Daten-Innovations-Center
   Gutenbergstr. 11-23, D-66103 Saarbrücken, Germany
   Phone: +49-(0)681-502-1528, Fax: +49-(0)681-502-1509
   Email: ajung at sz-sb.de (PGP key available)
-------------------------------------------------------------------------------





More information about the Python-list mailing list