mhammond / pywin32

Python for Windows (pywin32) Extensions
5.01k stars 792 forks source link

Error installing service: access denied #2151

Closed vo1s closed 10 months ago

vo1s commented 10 months ago

I have error installing the service:

Installing service pythonService
copying host exe 'C:\Users\vo1s\PycharmProjects\ILIM_FILE_TRANSMITTER1\venv\lib\site-packages\win32\pythonservice.exe' -> 'C:\Users\vo1s\PycharmProjects\ILIM_FILE_TRANSMITTER1\venv\pythonservice.exe'
copying helper dll 'C:\Users\vo1s\PycharmProjects\ILIM_FILE_TRANSMITTER1\venv\lib\site-packages\pywin32_system32\pywintypes39.dll' -> 'C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\pywintypes39.dll'
Error installing service: access denied (5)

I cannot understand why it doesnt have some permissions. Please help.

mhammond commented 10 months ago

This error is coming from Windows - I suspect the fact you are trying to use a service in `\Program Files" is the problem, but I'm really not sure.

The text you deleted from the issue template tells you how to get support - see https://github.com/mhammond/pywin32#support