Re: Windows service in production?

2015-03-20 Thread Raymond Cote
Years and years ago we found a module called ntsvc which allows us to run as a 
Service on Windows.
We’ve been using it since well before 2011 to build 32-bit services on Windows 
with py2exe.
If you contact me directly, I’ll dig it out of our source tree and post it on a 
shared location.

Alternatively, you may want to look at a service manager such as: 
https://nssm.cc
This allows you to run a standard executable as a Windows Service.
We’ve just started looking down this path ourselves since we’re looking to move 
to Python 3.x and want to reduce our dependencies as much as possible.
—Ray


 On Mar 19, 2015, at 2:58 AM, jyothi.n...@gmail.com wrote:
 
 On Tuesday, August 16, 2011 at 10:02:02 AM UTC+5:30, snorble wrote:
 Anyone know of a Python application running as a Windows service in
 production? I'm planning a network monitoring application that runs as
 a service and reports back to the central server. Sort of a heartbeat
 type agent to assist with this server is down, go check on it type
 situations.
 
 If using Visual Studio and C# is the more reliable way, then I'll go
 that route. I love Python, but everything I read about Python services
 seems to have workarounds ahoy for various situations (or maybe that's
 just Windows services in general?). And there seem to be multiple
 layers of workarounds, since it takes py2exe (or similar) and there
 are numerous workarounds required there, depending on which libraries
 and functionality are being used. Overall, reading about Windows
 services in Python is not exactly a confidence inspiring experience.
 If I knew of a reference example of something reliably running in
 production, I'd feel better than copying and pasting some code from a
 guy's blog.
 
 Have you got any resolution for creating a service in windows 7 32bit
 --
 https://mail.python.org/mailman/listinfo/python-list



signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
https://mail.python.org/mailman/listinfo/python-list


Fix for no module named _sysconfigdata while compiling

2015-02-26 Thread Raymond Cote
Thought I might help someone else address a problem I ran into this afternoon.
While compiling Python 2.7.9 on CentOS 6, I received the error: no module named 
_sysconfigdata

Googling found a number of other people having this problem — but the other 
issues were all after the Python was installed — not while building. In digging 
through their advice, I saw a number of them spoke about having multiple 
versions of Python installed. In my case, I already had a custom Python 2.7.3 
installed on this machine — and I was upgrading over it to Python 2.7.9.

I found that renaming my custom /opt/python2.7 directory and then building the 
new release in the same directory, that the problem went away.

Summary:

Compiling Python 2.7.9 resulted in error: no module named _sysconfigdata while 
compiling.
My configuration: ./configure --prefix=/opt/python2.7 --enable-unicode=ucs4 
--enable-shared  LDFLAGS=-Wl,-rpath /opt/python2.7/lib

make;make alt install

Remove the existing /opt/python2.7 directory which had Python 2.7.3.
Now all builds and installs properly.
—Ray


signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: supervisor 3.0a6 and Python2.6

2009-03-19 Thread Raymond Cote

George Trojan wrote:

1. Is supervisor still developed?
I note that, although the information on the site is pretty old, there 
have been some respository checkins in Feb and March of this year:

   http://lists.supervisord.org/pipermail/supervisor-checkins/
-r
--
http://mail.python.org/mailman/listinfo/python-list


Re: please solve

2008-10-12 Thread Raymond Cote

shweta mani wrote:

hi folks,
i have been assigned a project on Python. i need to execute a remote
shell script file from a windows machine through SSH twisted or
paramiko. if it is a normal file then directly with the command  sh
filename.sh it is getting executed.
self.conn.sendRequest(self, 'exec', common.NS(sh test1.sh), wantReply
= 1)
You could take a look at the Fabric project for some ideas as to how to 
do this:

  http://www.nongnu.org/fab/documentation.html

--R
--
http://mail.python.org/mailman/listinfo/python-list