Re: [python-win32] Running a Windows Python service without pythonservice.exe?
test ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a Windows Python service without pythonservice.exe?
test ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a Windows Python service without pythonservice.exe?
test ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a Windows Python service without pythonservice.exe?
On 12/05/2010 4:51 PM, Mark Hammond wrote: test Oops - sorry about the noise :( One-of-the-risks-when-working-on-email-clients ly, Mark ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a Windows Python service without pythonservice.exe?
Mark Hammond mhamm...@skippinet.com.au wrote: See attached sample which works for me - be sure to place it in the same directory as the pipeTestService.py sample (win32/Demos/service). All right, I put it in a file called nativePipeTestService.py, in that directory, and tried it. Here's what I get: $ pwd -W c:/UpLib/1.7.9/python/Lib/site-packages/win32/Demos/service $ python nativePipeTestService.py install Installing service PyNativePipeTestService Service installed $ sc query PyNativePipeTestService SERVICE_NAME: PyNativePipeTestService TYPE : 10 WIN32_OWN_PROCESS STATE : 1 STOPPED (NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN) WIN32_EXIT_CODE: 1077 (0x435) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 $ sc qc PyNativePipeTestService [SC] GetServiceConfig SUCCESS SERVICE_NAME: PyNativePipeTestService TYPE : 10 WIN32_OWN_PROCESS START_TYPE : 3 DEMAND_START ERROR_CONTROL : 1 NORMAL BINARY_PATH_NAME : c:\UpLib\1.7.9\python\python.exe c:\UpLib\1.7.9\python\Lib\site-packages\win32\Demos\service\nativePipeTestService.py LOAD_ORDER_GROUP : TAG: 0 DISPLAY_NAME : Python Native Pipe Test Service DEPENDENCIES : SERVICE_START_NAME : LocalSystem $ python nativePipeTestService.py start Starting service PyNativePipeTestService [] Error starting service: The service did not respond to the start or control request in a timely fashion. $ What should I try next? Bill ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a Windows Python service without pythonservice.exe?
Bill Janssen jans...@parc.com wrote: $ python nativePipeTestService.py start Starting service PyNativePipeTestService [] Error starting service: The service did not respond to the start or control request in a timely fashion. $ I rebooted and tried again, same result. Then I tried setting up a win32trace window first, and ran $ python nativePipeTestService.py Redirecting output to win32trace remote collector $ What shows up in the trace window is this: C:\UpLib\1.7.9\python\Lib\site-packages\win32\libpython win32traceutil.py Collecting Python Trace Output... service is starting... (execute this script with '--help' if that isn't what you want) Something went bad! Traceback (most recent call last): File nativePipeTestService.py, line 51, in module main() File nativePipeTestService.py, line 44, in main servicemanager.StartServiceCtrlDispatcher() error: (1063, 'StartServiceCtrlDispatcher', 'The service process could not connect to the service controller.') This smacks of a registry problem, but I'm unsure where to go from here... Bill ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a Windows Python service without pythonservice.exe?
On 13/05/2010 2:08 AM, Bill Janssen wrote: Bill Janssenjans...@parc.com wrote: $ python nativePipeTestService.py start Starting service PyNativePipeTestService [] Error starting service: The service did not respond to the start or control request in a timely fashion. $ I rebooted and tried again, same result. Then I tried setting up a win32trace window first, and ran $ python nativePipeTestService.py Redirecting output to win32trace remote collector $ What shows up in the trace window is this: C:\UpLib\1.7.9\python\Lib\site-packages\win32\libpython win32traceutil.py Collecting Python Trace Output... service is starting... (execute this script with '--help' if that isn't what you want) Something went bad! Traceback (most recent call last): File nativePipeTestService.py, line 51, inmodule main() File nativePipeTestService.py, line 44, in main servicemanager.StartServiceCtrlDispatcher() error: (1063, 'StartServiceCtrlDispatcher', 'The service process could not connect to the service controller.') This smacks of a registry problem, but I'm unsure where to go from here... When run with no args, the program assumes it is being started as the service - see the first 3 output lines. Execute 'python nativePipeTestService.py install' to install it, then start it as normal (ie, don't run it manually with no args). If you want different cmdline behaviour, the script can be re-worked to catch the error calling StartServiceCtrlDispatcher(), assume the user is running it interactively and take some different action. Mark ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
[python-win32] Windows Error 126 - PyVisa related??
Hi, Please excuse my ignorance as I am a user of just 2 weeks. I just received a new PC with XP 64-bit OS installed. I am having difficulties with running our applications and it appears to be PyVisa related. I have installed the following: Python 2.5.1 (due to our internal software apps support level) pywin32-210.win32-py2.5.exe vcredist_x64.exe (64-bit DLL library?) PyVisa-1.2.win32.exe However, I continue to get the following error stream: Command: python msetup_u Within Python, ^Z exits, ^B or ^S interrupts Initializing Arctic Python . . . . Complete. Traceback (most recent call last): File c:\arctic\pyscripts\msetup_u.py, line 11, in module import GPIB.arb File c:\arctic\pyscripts\GPIB\__init__.py, line 11, in module from visa import * File C:\Python25\Lib\site-packages\visa.py, line 1, in module from pyvisa.visa import * File C:\Python25\Lib\site-packages\pyvisa\visa.py, line 216, in module resource_manager = ResourceManager() File C:\Python25\Lib\site-packages\pyvisa\vpp43.py, line 97, in __new__ it.init(*args, **kwds) File C:\Python25\Lib\site-packages\pyvisa\visa.py, line 212, in init self.session = self.vi = vpp43.open_default_resource_manager() File C:\Python25\Lib\site-packages\pyvisa\vpp43.py, line 750, in open_default_resource_manager visa_library().viOpenDefaultRM(byref(session)) File C:\Python25\Lib\site-packages\pyvisa\vpp43.py, line 167, in __call__ self.load_library() File C:\Python25\Lib\site-packages\pyvisa\vpp43.py, line 133, in load_library self.__lib = windll.visa32 File C:\Python25\Lib\ctypes\__init__.py, line 415, in __getattr__ dll = self._dlltype(name) File C:\Python25\Lib\ctypes\__init__.py, line 340, in __init__ self._handle = _dlopen(self._name, mode) WindowsError: [Error 126] The specified module could not be found Command: Any insight would be greatly appreciated. Thanks, Doug ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a Windows Python service without pythonservice.exe?
Mark Hammond skippy.hamm...@gmail.com wrote: Execute 'python nativePipeTestService.py install' to install it, then start it as normal (ie, don't run it manually with no args). Yes, that's what I tried first. See my message 67901.1273677...@parc.com, just previous to the one you replied to. $ sc start PyNativePipeTestService [SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion. $ Same thing if I try to start it from the System Management GUI tool. Bill ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Windows Error 126 - PyVisa related??
Feist, Doug wrote: Please excuse my ignorance as I am a user of just 2 weeks. I just received a new PC with XP 64-bit OS installed. I am having difficulties with running our applications and it appears to be PyVisa related. I have installed the following: Python 2.5.1 (due to our internal software apps support level) pywin32-210.win32-py2.5.exe vcredist_x64.exe (64-bit DLL library?) PyVisa-1.2.win32.exe Did you install the 32-bit version of Python? (I'm guessing you did.) You seem to have the 32-bit versions of both pywin32 and PyVisa there. If so, you need the 32-bit Visual C++ redistributable (vcredist_x86.exe), not 64-bit. The 64-bit operating systems can run either 32-bit programs or 64-bit programs, but a 32-bit program must use all 32-bit DLLs. There is no way to cross between the two. How did you get a new PC with XP 64? XP 64 is a weird beast. Microsoft never actually built a 64-bit version of XP. What you have there is the Windows Server 2003 64-bit kernel, but they took a text editor to change the version name to XP. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a Windows Python service without pythonservice.exe?
On 13/05/2010 9:25 AM, Bill Janssen wrote: Mark Hammondskippy.hamm...@gmail.com wrote: Execute 'python nativePipeTestService.py install' to install it, then start it as normal (ie, don't run it manually with no args). Yes, that's what I tried first. See my message 67901.1273677...@parc.com, just previous to the one you replied to. Sorry - I missed that 'install' command in that message. $ sc start PyNativePipeTestService [SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion. $ Same thing if I try to start it from the System Management GUI tool. I'm not sure what the problem could be. It appears Python is finding all the modules OK and I can't think of why the service request would be failing. Does the standard old pipeTestService.py still work for you? Mark ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32