On Thu, 05 Mar 2009 17:39:23 +0100, Krzysztof Jakubczyk <[email protected]> wrote: >> Hi, >> I am using pyInstaller with win32 on windows Vista 64x Ultimate and I >> have following problem: >> >> OSError: [Errno 13] Permission denied: 'C:/Program Files >> (x86)/<appname>\\support' >> RC: -1 from win32comgenpy. >> >> one of the rthooks - win32comgenpy wants to create support directory in >> the directory where I installed the program - in program files, but I >> don't have write access to this directory - application crashes. >> >> >> > >> >> > Sorry, no question asked :) > Does anyone know why is creating the file really needed?? > I'm just using win32com.shell (getting folder paths)
PyInstaller can't know what you are really doing with win32com. As soon as it sees an import of that module, it must do everything needed to make *all* functionalities of win32com work, and this includes exeucting that rthook. In fact, the rthook is broken as you notice. You have a couple of alternatives here: 1) Fix the rthook and submit a patch *hint* *hint* 2) Comment out the rthook in your own PyInstaller (see rthooks.dat) and see if everything works for you 3) Use ctypes to do what you're doing (it's a single win32 API call so it's not really worth brining in the whole win32com or pywin32 for it). -- Giovanni Bajo Develer S.r.l. http://www.develer.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
