On 31 May 2012 21:01, Massi wrote:
> Hi everyone,
>
> I'm having an issue trying to use pyinstaller to convert my script
> into an executable. The problem occurs when I install the software (on
> windows 7) in a folder which requires the admin rights (in my case C:
> \Program Files (x86)). When I launch the program I get the following
> error:
>
> Traceback (most recent call last):
>  File "<string>", line 31, in <module>
>  File "MyProg\build\pyi.win32\MyProg\outPYZ1.pyz/os", line 150, in
> makedirs
>  File "MyProg\build\pyi.win32\MyProg\outPYZ1.pyz/os", line 157, in
> makedirs
> WindowsError: [Error 5] Accesso negato: 'C:/Program Files (x86)/MyProg\
> \support'
>
> By running the program as admin everything works and it turns out that
> it tries to create in the installation folder the directory support/
> gen_py and an empty __init__.py file into it, but since it has not the
> necessary rights it fails to start. Since this does not depends on my
> script I wonder if it is somehow related to pyinstaller. Any hints? or
> are there any workaround to force the resulting executable to not
> require admin privileges?
> Thanks in advance!

As usual, the best solution is: "do not install into c:\Program Files".

:-)

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

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