Hi Martin,

I have tried the following and it seems to have worked. In hook-pywintypes.py I replaced:

datas = [(get_module_file_attribute('pywintypes'), '.')]

with:

*import sys*
datas = [(get_module_file_attribute('pywintypes*%d%d*' % *sys.version_info[:2]*), '.')]

so hookutils looks for pywintypes27.dll not pywintypes.dll

I got the idea from the earlier version of hook_pywintypes.py. Do you think this a good solution?

All the best,
Grant


On 18/09/12 08:32, Grant Paton-Simpson wrote:
Hi Martin,

I am reposting this under a fresh topic so it doesn't get lost.

I can see from https://github.com/pyinstaller/pyinstaller/commits/develop/PyInstaller/hooks/hook-pywintypes.py <https://github.com/pyinstaller/pyinstaller/commits/develop/PyInstaller/hooks/hook-pywintypes.py> that you are the person who has been working on hook-pywintypes this year. Thanks for your work to improve pyinstaller.

What would you advise I do to prevent the following error: "WARNING: file already exists but should not: C:/DOCUMEN~1/GRANTP~1/LOCALS~ 1/Temp/_MEI1922\.\pywintypes27.dll" ? Should I revert to the version of hook-pywintypes.py in May 30th?

Or is there a better solution which you are planning to add to the hook?

Sorry for being so persistent - I need the dev version of pyinstaller to work so I can put out a release of my SOFA Statistics application. If you recall, it seems that version 2.0 has been triggering anti-trojan warnings on a couple of virus scanners. Thus my attempt to use the dev version.

All the best,
Grant
--
You received this message because you are subscribed to the Google Groups "PyInstaller" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyinstaller/-/sS-VJGRoNyYJ.
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.

--
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.

Reply via email to