Re: [CentOS] Python Script Issue

2010-03-01 Thread Benjamin Donnachie
On 28 February 2010 06:54, John R Pierce pie...@hogranch.com wrote: atexit.py should be part of the base python RPM in EL5    # rpm -qf /usr/lib/python2.4/atexit.py    python-2.4.3-27.el5 Did this get solved in the end? Ben ___ CentOS mailing list

Re: [CentOS] Python Script Issue

2010-03-01 Thread Joseph L. Casale
Did this get solved in the end? Ben Nope:) I started writing a Perl script to accomplish what I need yesterday. Given I have zero experience with python, it was the easier solution although I would have loved to stick with a provided solution in the event I end up overlooking something. Thanks

[CentOS] Python Script Issue

2010-02-27 Thread Joseph L. Casale
Hey Guys, I am trying to get a python script running but I get the following error: atexit.register(atexit_handler) NameError: global name 'atexit' is not defined A Google search doesn't really help me, except confirm that I don't know anything about python:) Anyone got any ideas? Thanks,

Re: [CentOS] Python Script Issue

2010-02-27 Thread Brian Mathis
On Sat, Feb 27, 2010 at 3:46 PM, Joseph L. Casale jcas...@activenetwerx.com wrote: Hey Guys, I am trying to get a python script running but I get the following error: atexit.register(atexit_handler) NameError: global name 'atexit' is not defined A Google search doesn't really help me,

Re: [CentOS] Python Script Issue

2010-02-27 Thread Benjamin Donnachie
On 27 February 2010 20:46, Joseph L. Casale jcas...@activenetwerx.com wrote:    atexit.register(atexit_handler) NameError: global name 'atexit' is not defined Have you remembered import atexit ? A Google search doesn't really help me, except confirm that I don't know anything about python:)

Re: [CentOS] Python Script Issue

2010-02-27 Thread Joseph L. Casale
Have you remembered import atexit ? I did see the python docs link and saw that line, this script for cluster server is known to work as is. Although it lacked the import, I already tried that and it never helped, which is what confirmed I didn't know squat wrt to python:) The cluster list has

Re: [CentOS] Python Script Issue

2010-02-27 Thread Benjamin Donnachie
On 27 February 2010 20:56, Joseph L. Casale jcas...@activenetwerx.com wrote: I did see the python docs link and saw that line, this script for cluster server is known to work as is. I haven't got ready access to a CentOS box - what version of Python are you using? atexit is only available in

Re: [CentOS] Python Script Issue

2010-02-27 Thread Joseph L. Casale
I haven't got ready access to a CentOS box - what version of Python are you using? atexit is only available in v2.1.3 and later Hi, Its 2.4, stock... Thanks, jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Python Script Issue

2010-02-27 Thread JohnS
On Sat, 2010-02-27 at 20:46 +, Joseph L. Casale wrote: Hey Guys, I am trying to get a python script running but I get the following error: atexit.register(atexit_handler) NameError: global name 'atexit' is not defined A Google search doesn't really help me, except confirm that I

Re: [CentOS] Python Script Issue

2010-02-27 Thread JohnS
On Sat, 2010-02-27 at 20:46 +, Joseph L. Casale wrote: Hey Guys, I am trying to get a python script running but I get the following error: atexit.register(atexit_handler) NameError: global name 'atexit' is not defined A Google search doesn't really help me, except confirm that I

Re: [CentOS] Python Script Issue

2010-02-27 Thread Joseph L. Casale
Sorry about that... http://www.python.org/doc/2.5.2/lib/module-atexit.html Which I forgot to post but Benjamin already linked it to you, opps. Well after rereading it I see that the second note of recommended things not to do has been done:) Given I don't python, I dare not criticize:)

Re: [CentOS] Python Script Issue

2010-02-27 Thread Benjamin Donnachie
On 27 February 2010 22:56, Joseph L. Casale jcas...@activenetwerx.com wrote: there are people running some variant of it, and it's a perfect solution for my need:( How did you get the script onto your box? Python can be very picky with whitespace. Ben

Re: [CentOS] Python Script Issue

2010-02-27 Thread John Stan
On Sat, Feb 27, 2010 at 5:56 PM, Joseph L. Casale jcas...@activenetwerx.com wrote: Sorry about that... http://www.python.org/doc/2.5.2/lib/module-atexit.html Which I forgot to post but Benjamin already linked it to you, opps. Well after rereading it I see that the second note of recommended

Re: [CentOS] Python Script Issue

2010-02-27 Thread Joseph L. Casale
How did you get the script onto your box? Python can be very picky with whitespace. I just browsed the git repo at rh's site and used wget with a -O. I tried with git now, and the file was identical. I am looking into building that rpm, hanging up on --record-rpm Thanks, jlc

Re: [CentOS] Python Script Issue

2010-02-27 Thread Benjamin Donnachie
On 28 Feb 2010, at 01:21, Joseph L. Casale jcas...@activenetwerx.com wrote: I just browsed the git repo at rh's site and used wget with a -O. What's the URL? Determined to get it working now! :-) Ben ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] Python Script Issue

2010-02-27 Thread Agile Aspect
On Sat, Feb 27, 2010 at 2:56 PM, Joseph L. Casale jcas...@activenetwerx.com wrote: Sorry about that... http://www.python.org/doc/2.5.2/lib/module-atexit.html Which I forgot to post but Benjamin already linked it to you, opps. Well after rereading it I see that the second note of recommended

Re: [CentOS] Python Script Issue

2010-02-27 Thread Joseph L. Casale
What's the URL? Determined to get it working now! :-) Ben, Its http://git.fedorahosted.org/git/fence.git and down in there is a fence_ifmib.py. Thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Python Script Issue

2010-02-27 Thread Joseph L. Casale
Its http://git.fedorahosted.org/git/fence.git and down in there is a fence_ifmib.py. Sorry hit send to fast. You'll also need the files that the cluster group sticks in /usr/lib/fence such as fencing.py|pyc|pyo and fencing_snmp.py|pyc|pyo Thanks ___

Re: [CentOS] Python Script Issue

2010-02-27 Thread Joseph L. Casale
If you want help with the code, post code - or put it sock in it. It's off topic and unsolicited noise - which means you're wasting our bandwidth. Off topic for cluster suite, a base included package? Sorry for imposing on your list:) ___ CentOS

Re: [CentOS] Python Script Issue

2010-02-27 Thread John R Pierce
Agile Aspect wrote: EIther you have the atexit.py file or you don't. If you don't have it, then go get it by downloading the source code Python 2.4 from the http://www.python.org. atexit.py should be part of the base python RPM in EL5 # rpm -qf /usr/lib/python2.4/atexit.py