Форум сайта python.su
Попробовал собрать исполняемый файл, под Linux, что то оно заругалось на синтаксис :-\
~/tmp/pyinstaller-1.3$ python Makespec.py \
> /home/ivan/tmp/thancad-0.0.8/\
> thancad.py
wrote /home/ivan/tmp/pyinstaller-1.3/thancad/thancad.spec
now run Build.py to build the executable
ivan@Panama:~/tmp/pyinstaller-1.3$ python Build.py \
> /home/ivan/tmp/pyinstaller-1.3/thancad/thancad.spec
checking Analysis
building Analysis because out0.toc non existent
running Analysis out0.toc
Analyzing: support/_mountzlib.py
Analyzing: support/useUnicode.py
Analyzing: /home/ivan/tmp/thancad-0.0.8/thancad.py
Syntax error in /home/ivan/tmp/thancad-0.0.8/p_gchart/thanopt.py
('invalid syntax', ('/home/ivan/tmp/thancad-0.0.8/p_gchart/thanopt.py', 1, 43, ‘import sys, os.path, ConfigParser, Tkinter\r\n’))
Traceback (most recent call last):
File “Build.py”, line 839, in <module>
build(sys.argv)
File “Build.py”, line 76, in build
exec open(spec, ‘r’).read()+'\n'
File “<string>”, line 2, in <module>
File “Build.py”, line 112, in __init__
self.__postinit__()
File “Build.py”, line 94, in __postinit__
self.assemble()
File “Build.py”, line 182, in assemble
analyzer.analyze_script(script)
File “/home/ivan/tmp/pyinstaller-1.3/mf.py”, line 379, in analyze_script
return self.analyze_r('__main__')
File “/home/ivan/tmp/pyinstaller-1.3/mf.py”, line 299, in analyze_r
newnms = self.analyze_one(name, nm, imptyp)
File “/home/ivan/tmp/pyinstaller-1.3/mf.py”, line 333, in analyze_one
mod = self.doimport(nm, ctx, fqname)
File “/home/ivan/tmp/pyinstaller-1.3/mf.py”, line 392, in doimport
mod = parent.doimport(nm)
File “/home/ivan/tmp/pyinstaller-1.3/mf.py”, line 515, in doimport
mod = self.subimporter.getmod(nm)
File “/home/ivan/tmp/pyinstaller-1.3/mf.py”, line 216, in getmod
mod = owner.getmod(nm)
File “/home/ivan/tmp/pyinstaller-1.3/mf.py”, line 71, in getmod
co = compile(open(py, ‘r’).read()+'\n', py, ‘exec’)
File “/home/ivan/tmp/thancad-0.0.8/p_gchart/thanopt.py”, line 1
import sys, os.path, ConfigParser, Tkinter
^
SyntaxError: invalid syntax
============================================================
Использовал вот это:
http://freshmeat.net/projects/pyinstaller/
Пробовал понижать версию питона, на 2.5.1, не помогло..
Офлайн