hello friends , i just need to test the Cx_freeze , i have in a folder /home/user/Bureau/testexe/ two files : Hello.py , its code is :
#!/usr/bin/python # -*- coding: utf-8 -*- myfile = open('testexe.text','a') print >> myfile, "Hello" myfile.close()
and a second file : makeexe.py which contain :
#makeexe.py #!/usr/bin/python # -*- coding: utf-8 -*- from cx_Freeze import setup, Executable setup( name = "MyTk_application", version = "0.1", description = "An Tkinter script", executables = [Executable("Hello.py")] )
when I run makeexe.py it print in the terminal the next error :
from: can't read /var/mail/cx_Freeze
./makeexe.py: line 6: Erreur de syntaxe près du symbole inattendu « newline »
./makeexe.py: line 6: `setup( '
I just need to know from where this error come from , thank you very much .