Hi all, i have been using Pyinstaller to freeze a program in Windows for some time now, i have just upgraded xlrd module (http://pypi.python.org/pypi/xlrd) and the last version (0.7.6) have this line in __init__.py:
__VERSION__ = open(path.join(path.dirname(__file__), 'version.txt')).read().strip() and the corresponding file in C:\Python27\Lib\site-packages\xlrd\version.txt with "0.7.6" as the only content, now my program fails after freeze with this error: Traceback (most recent call last): File "c:\gestion_financiera\build\pyi.win32\gestion_financiera\outPYZ1.pyz/mainwindow", line 230, in on_action_Empresas_del_grupo_triggered File "C:\pyinstaller-1.5\iu.py", line 436, in importHook mod = _self_doimport(nm, ctx, fqname) File "C:\pyinstaller-1.5\iu.py", line 521, in doimport exec co in mod.__dict__ File "c:\gestion_financiera\build\pyi.win32\gestion_financiera\outPYZ1.pyz/empresa_grupo_widget", line 6, in <module> File "C:\pyinstaller-1.5\iu.py", line 436, in importHook mod = _self_doimport(nm, ctx, fqname) File "C:\pyinstaller-1.5\iu.py", line 521, in doimport exec co in mod.__dict__ File "c:\gestion_financiera\build\pyi.win32\gestion_financiera\outPYZ1.pyz/xlrd", line 5, in <module> IOError [Errno 2] No such file or directory: 'c:\\gestion_financiera\\build\\pyi.win32\\gestion_financiera\\outPYZ1.pyz\\version.txt' I have collected datafiles before but i don't know how to collect a file and put it inside the outPYZ1.pyz archive, and i am not sure that putting directly there a file with a common name like "version.txt" would be a good idea anyway, i suppose i should be doing anything else. In the meantime i have changed the xlrd __init__.py to '__VERSION__ = "0.7.6"' but don't seems to me like a good idea keep modifying modules sources to get my application freeze correctly. What should i do? Thanks. Regards, Miguel Angel. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
