From owner-freebsd-ports@FreeBSD.ORG Fri Jun 15 15:36:03 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C38DF106564A for ; Fri, 15 Jun 2012 15:36:03 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7DCBF8FC15 for ; Fri, 15 Jun 2012 15:36:03 +0000 (UTC) Received: by yhgm50 with SMTP id m50so2972280yhg.13 for ; Fri, 15 Jun 2012 08:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ks3hnFbIYvSKPUJcHaYXoRo5a706X0XacGTCZYqeI4w=; b=rJq64TEePi25jH9Db4qnAWyZhHGtBB7EXOk/9i8y326dLxO5bVXUITMJhRTuaWX83v H0L9ccTalP0vdsNFwV2N7xd8M1s9nwtobG1i1bOIhqiiTkRsrHOD4ovOSPmnut0LwqID bOiRxZffK3M+hUtVvnsLheCx0+Fi+WhEmzHs0Jul4qb3s68QWqYmaVX4wVSKqSsiw5ek +fbmQeepgs4Kpe4PicXnrduEr4VlGZeuId+HJjidpzX4EAm+ZOFHNA4VvoiAaqkbo1LF iBd/2GXu1QoI/5CZlfyxuPqJhs9PpRPRSJNuP0zG41PxdFdVeu3wLT93rWcRUcLFPUuY n2EA== MIME-Version: 1.0 Received: by 10.50.104.170 with SMTP id gf10mr2416847igb.52.1339774559422; Fri, 15 Jun 2012 08:35:59 -0700 (PDT) Received: by 10.231.136.1 with HTTP; Fri, 15 Jun 2012 08:35:59 -0700 (PDT) In-Reply-To: <20120614234727.M12036@brightstar.bomgardner.net> References: <20120614234727.M12036@brightstar.bomgardner.net> Date: Fri, 15 Jun 2012 17:35:59 +0200 Message-ID: From: Daniel Nebdal To: Gene Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBsd-ports Subject: Re: mail/mailman install problem python 2.6 import urandom X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2012 15:36:03 -0000 That's slightly bizarre - urandom should be in the os module. Just to verif= y: mr16613: > uname -srm FreeBSD 9.0-STABLE amd64 mr16613: > python2.7 --version Python 2.7.3 mr16613: > python2.7 -c 'from os import urandom as _urandom ; print str(_urandom)' Out of curiosity, could you try something in python? Start python2.7 , and enter import os dir(os) That ought to display a long list of things in the os module, including ura= ndom. On Fri, Jun 15, 2012 at 1:50 AM, Gene wrot= e: > Hi All: > > =A0Running 8.1 AMD64. I had python 2.6.8 installed. After upgrading sever= al > =A0ports, which installed python 2.7.3_2, scripts requiring 2.6 fail due = to an > =A0inability to import urandom from os. > > =A0Now I'm not a python person by any means, but I was wondering where it= s > =A0trying to find urandom. Could it be looking for 'dev/urandom'? Or perh= aps > =A0urandom from ports/math/mpc? > > =A0In a few scripts I've changed 2.6 to 2.7 and they seem to work. Did > =A0installing 2.7 alongside 2.6 break something? > > =A0Specifically, right now I'm trying to install mail/mailman port which = looks > =A0for python 2.6. It terminates with the following: > > =A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =A0Compiling /usr/local/mailman/Mailman/versions.py ... > =A0Traceback (most recent call last): > =A0File "bin/update", line 50, in > =A0 =A0from Mailman import Utils > =A0File "/usr/local/mailman/Mailman/Utils.py", line 32, in > =A0 =A0import cgi > =A0File "/usr/local/lib/python2.6/cgi.py", line 49, in > =A0 =A0import mimetools > =A0File "/usr/local/lib/python2.6/mimetools.py", line 6, in > =A0 =A0import tempfile > =A0File "/usr/local/lib/python2.6/tempfile.py", line 34, in > =A0 =A0from random import Random as _Random > =A0File "/usr/local/lib/python2.6/random.py", line 47, in > =A0 =A0from os import urandom as _urandom > =A0ImportError: cannot import name urandom > =A0=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > =A0I've googled and searched archives and all I can find is ubuntu proble= ms > =A0related to a virtual machine. > > =A0Does anyone know what's going on? > > =A0Thanks, > =A0Gene > > -- > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"