[cx-freeze-users] Please help : freezing python script giving error.
Brought to you by:
atuining
From: jack j. <ja...@gm...> - 2011-12-15 10:37:58
|
Hi Anthony I am creating a standalone binary using cxfreeze. When i execute my python script its works fine, but when i executes standalone binary on windows 7 i am facing issues such below. Traceback (most recent call last): File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> File "rb.py", line 1601, in <module> File "rb.py", line 1532, in main File "rb.py", line 342, in do_code_check File "C:\Python27\lib\subprocess.py", line 679, in __init__ File "C:\Python27\lib\subprocess.py", line 893, in _execute_child WindowsError: [Error 2] The system cannot find the file specified here is script, i am pasting snippet of my script rb.py. def do_code_check(changelist, prod): if os.name == 'posix': cxhome_path=r"/shared/path/verification/%s/" % prod else: # windows cxhome_path=r"//na/shared/path/verification/%s/" % prod cxscript = os.path.join(cxhome_path, 'code_verify.py') if os.path.exists(cxscript): * p=subprocess.Popen(['python', os.path.abspath(cxscript), '-c', str(changelist)], \ shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)* *<<<<* Line number 342 rc=p.wait() poutput=p.communicate() (f_out, f_err) = (poutput[0], poutput[1]) succ_string = 'check pass' if poutput[0].startswith(succ_string) == True and rc == 0: return ('success') else: print "verification failed for product %s...." % mscprod sys.exit(1) else: print "Could not found verification script at %s\n" % cxhome_path sys.exit(1) I would like to know are there any issue for windows7 while creating binaries., am i missing some thing here. Please provide me some pointer where i can fix this issue. Its very very urgent as its blocker. Thanking you in advance. Regards, Jack |