FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-27-2010, 07:46 PM
"Joseph L. Casale"
 
Default Python Script Issue

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,
jlc

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-27-2010, 07:50 PM
Brian Mathis
 
Default Python Script Issue

On Sat, Feb 27, 2010 at 3:46 PM, Joseph L. Casale <jcasale@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, except confirm that I don't know

anything about python



Anyone got any ideas?

Thanks,

jlc


Try the python mailing list, irc channel, support area of the site you downloaded the script, or any other place where it would be even remotely on-topic.


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-27-2010, 07:51 PM
Benjamin Donnachie
 
Default Python Script Issue

On 27 February 2010 20:46, Joseph L. Casale <jcasale@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

http://www.google.co.uk/search?q=python+atexit
http://docs.python.org/library/atexit.html
http://python.active-venture.com/lib/atexit-example.html
http://www.python.org/doc/3.0.1/library/atexit.html

Or even http://mail.python.org/mailman/listinfo/python-list

Ben
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-27-2010, 07:56 PM
"Joseph L. Casale"
 
Default Python Script Issue

>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 lower volume, so I will just have to wait and see what the guys
there have to say.

Thanks for the idea though,
jlc

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 04:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org