Re: Python 3.5 amd64 and win32service

2016-10-06 Thread Nagy László Zsolt
>> "C:\Users\Laci\AppData\Local\Programs\Python\Python35\lib\site-packages\win32\PythonService.exe" > I wanted you to run the above executable, not python.exe. If it fails > you'll get more information about why it's failing when run directly > then when the service controller runs it. Since you'r

Re: Python 3.5 amd64 and win32service

2016-10-06 Thread eryk sun
On Thu, Oct 6, 2016 at 5:23 AM, Nagy László Zsolt wrote: > "C:\Users\Laci\AppData\Local\Programs\Python\Python35\lib\site-packages\win32\PythonService.exe" I wanted you to run the above executable, not python.exe. If it fails you'll get more information about why it's failing when run directly th

Re: Python 3.5 amd64 and win32service

2016-10-05 Thread Nagy László Zsolt
> > The MWE I provided is so simple. By now, It should be obvious what is > missing from it. :-( > > The problem is NOT with my code. I just installed a new virtual machine, and installed python3.5 amd64 + pypiwin32 on it. On that machine, the test service works perfectly! So it is with my machin

Re: Python 3.5 amd64 and win32service

2016-10-05 Thread Nagy László Zsolt
> On Wed, Oct 5, 2016 at 7:43 AM, Nagy László Zsolt > wrote: >> It did not help. I still get the same error message (service did not >> respond in time). > Can you run the service executable directly? From the command line > check `sc qc TestService`. Run the BINARY_PATH_NAME executable, e.g.

Re: Python 3.5 amd64 and win32service

2016-10-05 Thread eryk sun
On Wed, Oct 5, 2016 at 7:43 AM, Nagy László Zsolt wrote: > It did not help. I still get the same error message (service did not > respond in time). Can you run the service executable directly? From the command line check `sc qc TestService`. Run the BINARY_PATH_NAME executable, e.g. for /f "

Re: Python 3.5 amd64 and win32service

2016-10-05 Thread Nagy László Zsolt
>> But again, that is not related to the question. Why does it not work? >> What is missing? > If you mean why running the service doesn't work, it should once you > run the post-install script that copies pywintypes35.dll to the > Windows System32 directory. This DLL is required by PythonService.

Re: Python 3.5 amd64 and win32service

2016-10-04 Thread eryk sun
On Wed, Oct 5, 2016 at 6:18 AM, Nagy László Zsolt wrote: > But again, that is not related to the question. Why does it not work? > What is missing? If you mean why running the service doesn't work, it should once you run the post-install script that copies pywintypes35.dll to the Windows System32

Re: Python 3.5 amd64 and win32service

2016-10-04 Thread Nagy László Zsolt
>> def main(self): >> self.ReportServiceStatus(win32service.SERVICE_RUNNING) >> while not self.stop_requested.is_set(): >> time.sleep(1) # So something useful here > Why don't you use the Windows Event (hWaitStop) with > WaitForSingleObject instead of an additional

Re: Python 3.5 amd64 and win32service

2016-10-04 Thread eryk sun
On Tue, Oct 4, 2016 at 7:33 AM, Nagy László Zsolt wrote: > >>> Is it possible to write a win32 service with 64 bit python 3.5? The >>> pywin32 package does exist on 3.5 64bit, but missing some modules: >> Try pip installing the "pypiwin32" package. > That worked, thanks. > > Do you have an explana

Re: Python 3.5 amd64 and win32service

2016-10-04 Thread Nagy László Zsolt
>> Is it possible to write a win32 service with 64 bit python 3.5? The >> pywin32 package does exist on 3.5 64bit, but missing some modules: > Try pip installing the "pypiwin32" package. That worked, thanks. Do you have an explanation why to official build ( https://sourceforge.net/projects/pywi

Re: Python 3.5 amd64 and win32service

2016-10-03 Thread eryk sun
On Mon, Oct 3, 2016 at 1:26 PM, Nagy László Zsolt wrote: > > Is it possible to write a win32 service with 64 bit python 3.5? The > pywin32 package does exist on 3.5 64bit, but missing some modules: Try pip installing the "pypiwin32" package. -- https://mail.python.org/mailman/listinfo/python-lis

Python 3.5 amd64 and win32service

2016-10-03 Thread Nagy László Zsolt
Hello, Is it possible to write a win32 service with 64 bit python 3.5? The pywin32 package does exist on 3.5 64bit, but missing some modules: >>> import win32service Traceback (most recent call last): File "", line 1, in ImportError: DLL load failed:The specified module could not be found.