I did the changes to the setup.py as is in example.I got the Win32Service.exe
built into the bases subdir.
Then I got my application built as exe. When I start it, it jams in the
__main__ function:servicemanager.StartServiceCtrlDispatcher()
Please see log below.
No code changes have been made.The very same code used to work when I built my
app against Win32GUI base, but as mentioned before, then the TCP connection
didn't work...What can be wrong?I have tried to check that dependent packages
would be installed...No other instances are running although log says
contrary??? After trying to run my app, I have to kill it with "taskkill"
command.
Br,Arto---------------------------------------------------------------[02924]
2017/08/17 12:47:42.327 starting logging at level ERROR[02924] 2017/08/17
12:47:43.467 Python exception encountered:[02924] 2017/08/17 12:47:43.467
Internal Message: cannot import service module[02924] 2017/08/17 12:47:43.467
Type => <class 'pywintypes.error'>[02924] 2017/08/17 12:47:43.467 Value
=> (1056, 'StartServiceCtrlDispatcher', 'An instance of the service is already
running.')[02924] 2017/08/17 12:47:43.467 Traceback (most recent call last):
[02924] 2017/08/17 12:47:43.467 File
"C:\Tools\Python34\lib\importlib\_bootstrap.py", line 2237, in _find_and_load
return _find_and_load_unlocked(name, import_)
[02924] 2017/08/17 12:47:43.467 File
"C:\Tools\Python34\lib\importlib\_bootstrap.py", line 2226, in
_find_and_load_unlocked module = _SpecMethods(spec)._load_unlocked()
[02924] 2017/08/17 12:47:43.467 File
"C:\Tools\Python34\lib\importlib\_bootstrap.py", line 1191, in _load_unlocked
return self._load_backward_compatible()
[02924] 2017/08/17 12:47:43.467 File
"C:\Tools\Python34\lib\importlib\_bootstrap.py", line 1161, in
_load_backward_compatible spec.loader.load_module(spec.name)
[02924] 2017/08/17 12:47:43.467 File
"D:\NvtrnTstPy_arto\server\testServer.py", line 88, in <module>
servicemanager.StartServiceCtrlDispatcher()
[02924] 2017/08/17 12:47:43.467 pywintypes.error: (1056,
'StartServiceCtrlDispatcher', 'An instance of the service is already running.')
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users