Date: Fri, 19 Mar 2010 15:37:46 +0100 (CET) From: Leif Neland <leif@neland.dk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/144872: Python 2.5 uname() broken Message-ID: <201003191437.o2JEbk6w041806@arnold.neland.dk> Resent-Message-ID: <201003191440.o2JEe2VO071198@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 144872 >Category: ports >Synopsis: Python 2.5 uname() broken >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 19 14:40:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Leif Neland >Release: FreeBSD 9.0-CURRENT i386 >Organization: None >Environment: System: FreeBSD arnold.neland.dk 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Wed Jan 20 00:24:29 CET 2010 root@arnold.neland.dk:/usr/obj/usr/src/sys/ARNOLD i386 >Description: os.uname() broken I found the error in nagios-statd from ports: self.commandlist = commandlist[os.uname()[0]] But even if this bug is worked around this snippet also fails, claiming the functions does not exist, which it does. # Call the appropriate function try: output = getattr(self.functions,line)() except AttributeError: error = "ERROR Function \"" + line + "\" does not exist." nagios-statd had been running for months, but couldn't restart yesterday. ports are rebuilt up-to-date. The bug's not in nagios-statd, but somehow python2.5 broke because of port-updates >How-To-Repeat: #!/usr/bin/env python import os print "os.uname() = " + os.uname() Traceback (most recent call last): File "./uname-test", line 6, in <module> print "os.uname() = " + os.uname() AttributeError: 'module' object has no attribute 'uname' >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003191437.o2JEbk6w041806>