build .pyc prob
- by Apache
hi experts, i build .py as follow
python /root/pyinstaller-1.4/Makespec.py test.py
then
python /root/pyinstaller-1.4/Build.py test.spec
this working fine
then i test to build with my .pyc as follow
python /root/pyinstaller-1.4/Makespec.py test.pyc
then
python /root/pyinstaller-1.4/Build.pyc test.spec
but its generating error as follow
checking Analysis
building because inputs changed
running Analysis outAnalysis0.toc
Analyzing: /root/pyinstaller-1.4/support/_mountzlib.py
Analyzing: /root/pyinstaller-1.4/support/useUnicode.py
Analyzing: test.pyc
Traceback (most recent call last):
File "/root/pyinstaller-1.4/Build.py", line 1160, in
main(args[0], configfilename=opts.configfile)
File "/root/pyinstaller-1.4/Build.py", line 1148, in main
build(specfile)
File "/root/pyinstaller-1.4/Build.py", line 1111, in build
execfile(spec)
File "test.spec", line 3, in
pathex=['/root/test'])
File "/root/pyinstaller-1.4/Build.py", line 245, in init
self.postinit()
File "/root/pyinstaller-1.4/Build.py", line 196, in postinit
self.assemble()
File "/root/pyinstaller-1.4/Build.py", line 314, in assemble
analyzer.analyze_script(script)
File "/root/pyinstaller-1.4/mf.py", line 559, in analyze_script
co = compile(string.replace(stuff, "\r\n", "\n"), fnm, 'exec')
TypeError: compile() expected string without null bytes
why this error occur, cannot we build using .pyc, or there is other way to build it,