Just wondering if anybody came across a similar problem.
I am using RedHat ES4, python 2.3.
Everything seems fine until I try to execute the file when I get a NameError on Analysis.

Thanks!
Mark

The top of the script I am trying to compile is:

import socket
import cgi, re, sys, getopt
import MySQLdb

My script to make the executable is

Python=/usr/bin/python
rm -f MySQL_Status_Server.spec
rm -rf build*
rm -f warn*
$Python /usr/local/pyinstaller_1.1/Makespec.py -d MySQL_Status_Server.spec  
$Python /usr/local/pyinstaller_1.1/Build.py MySQL_Status_Server.spec 
./distMySQL_Status_Server/MySQL_Status_Server
------------------------------------------------------------------------------------------------------------------------------------
The output of this script is:
wrote /home/-------/MySQL_Status_Server.spec
now run Build.py to build the executable
checking Analysis
building Analysis because out0.toc non existent
running Analysis out0.toc
Analyzing: /usr/local/pyinstaller_1.1/support/_mountzlib.py
Analyzing: /usr/local/pyinstaller_1.1/support/useUnicode.py
Analyzing: MySQL_Status_Server.spec
Warnings written to /home/-------/warnMySQL_Status_Server.txt
checking PYZ
rebuilding out1.toc because out1.pyz is missing
building PYZ out1.toc
checking PKG
rebuilding out3.toc because out3.pkg is missing
building PKG out3.pkg
checking ELFEXE
rebuilding out2.toc because MySQL_Status_Server missing
building ELFEXE out2.toc
checking COLLECT
building out4.toc because out4.toc missing
building COLLECT out4.toc
./distMySQL_Status_Server/MySQL_Status_Server is thisfile
 is _MEIPASS2 (workpath)
./distMySQL_Status_Server/ is homepath
Extracting binaries
Manipulating evironment
PYTHONPATH=./distMySQL_Status_Server
importing modules from CArchive
iu
archive
Installing import hooks
out1.pyz
Running scripts
Traceback (most recent call last):
  File "<string>", line 1, in ?
NameError: name 'Analysis' is not defined
 RC: -1 from MySQL_Status_Server
OK.
-------------------------------------------------------
The warning file contains:
W: no module named org (top-level import by copy)
W: delayed  __import__ hack detected at line 0 - encodings (/usr/lib/python2.3/encodings
/__init__.pyc)
W: delayed conditional __import__ hack detected at line 0 - encodings (/usr/lib/python2.
3/encodings/__init__.pyc)
W: __all__ is built strangely at line 0 - re (/usr/lib/python2.3/re.pyc)
W: delayed  eval hack detected at line 0 - os (/usr/lib/python2.3/os.pyc)
W: __all__ is built strangely at line 0 - __future__ (/usr/lib/python2.3/__future__.pyc)
W: delayed conditional exec statement detected at line 0 - iu (/usr/local/pyinstaller_1.
1/iu.pyc)
W: delayed conditional exec statement detected at line 0 - iu (/usr/local/pyinstaller_1.
1/iu.pyc)




_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to