[python-win32] Windows service using py2exe

Harald Armin Massa[legacy] haraldarminmassa at gmail.com
Tue May 15 11:27:45 CEST 2012


Hello Antony,

please keep discussion on the list, so it may serve as a later
reference for others with similiar problems.

2012/5/14 Antony Joseph <antonyjoseph89 at gmail.com>:
> Hi,
>
> Thanks a lot for your quick response.
>
> I tried, I get the same result
>
> C:\Service>test.exe install
> Installing service Test
> Service installed
>
> C:\Service>test.exe start
> Starting service Test
>
> C:\Service>test.exe debug
> Debugging service Test - press Ctrl+C to stop.
> Traceback (most recent call last):
>  File "boot_service.py", line 185, in <module>
>  File "win32serviceutil.pyc", line 611, in HandleCommandLine
>  File "win32serviceutil.pyc", line 447, in DebugService
>  File "test.pyc", line 28, in __init__
> WindowsError: [Error 267] The directory name is invalid: 'C:\\Service\\test.exe'
>
>
> On 14 May 2012 17:56, Harald Armin Massa[legacy]
> <haraldarminmassa at gmail.com> wrote:
>> Antony,
>>
>>> C:\Documents and Settings\admin\Desktop>test.exe debug
>>> Debugging service Test - press Ctrl+C to stop.
>>> Traceback (most recent call last):
>>>  File "boot_service.py", line 185, in <module>
>>>  File "win32serviceutil.pyc", line 611, in HandleCommandLine
>>>  File "win32serviceutil.pyc", line 447, in DebugService
>>>  File "test.pyc", line 28, in __init__
>>> WindowsError: [Error 267] The directory name is invalid:
>>> 'C:\\Documents and Settings\\admin\\Desktop\\sharefolder\\test.e
>>> xe'

Please check: what ishappining in line 28 of your test.py ? why is the
application trying to access the desktop?

Harald



-- 
LightningTalkMan
a brand of GHUM GmbH
Spielberger Straße 49
70435 Stuttgart
0173/9409607


More information about the python-win32 mailing list