Python *.exe file from *.py -


i've python project split in 3 files : main.py, file1.py , file2.py files i've generated *.exe file (main.exe) when start executable file receive error :

   traceback (most recent call last):    file "main.py", line 11, in <module>    file "win32com\client\gencache.pyc", line 649, in rebuild    file "win32com\client\gencache.pyc", line 65, in _savedicts    file "win32com\client\gencache.pyc", line 141, in getgeneratepath    ioerror: [errno 2] no such file or directory: 'd:\\dir1\\python\\dir2\\test\\version\\dist\\library.zip\\ win32com\\gen_py\\__init__.py' 

in main.py i've :

import win32com.client  if win32com.client.gencache.is_readonly == true:    win32com.client.gencache.is_readonly = false    win32com.client.gencache.rebuild() 

but these rows of code i'm not able solve problem. suggestion? thanks


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -