Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2012 18:50:39 -0500
From:      "Gene" <fbsd@brightstar.bomgardner.net>
To:        "FreeBsd-ports" <freebsd-ports@freebsd.org>
Subject:   mail/mailman install problem python 2.6 import urandom
Message-ID:  <20120614234727.M12036@brightstar.bomgardner.net>

next in thread | raw e-mail | index | archive | help
Hi All: 

 Running 8.1 AMD64. I had python 2.6.8 installed. After upgrading several 
 ports, which installed python 2.7.3_2, scripts requiring 2.6 fail due to an 
 inability to import urandom from os. 

 Now I'm not a python person by any means, but I was wondering where its 
 trying to find urandom. Could it be looking for 'dev/urandom'? Or perhaps 
 urandom from ports/math/mpc? 

 In a few scripts I've changed 2.6 to 2.7 and they seem to work. Did 
 installing 2.7 alongside 2.6 break something? 

 Specifically, right now I'm trying to install mail/mailman port which looks 
 for python 2.6. It terminates with the following: 

 ================================================ 
 Compiling /usr/local/mailman/Mailman/versions.py ... 
 Traceback (most recent call last): 
  File "bin/update", line 50, in <module> 
    from Mailman import Utils 
  File "/usr/local/mailman/Mailman/Utils.py", line 32, in <module> 
    import cgi 
  File "/usr/local/lib/python2.6/cgi.py", line 49, in <module> 
    import mimetools 
  File "/usr/local/lib/python2.6/mimetools.py", line 6, in <module> 
    import tempfile 
  File "/usr/local/lib/python2.6/tempfile.py", line 34, in <module> 
    from random import Random as _Random 
  File "/usr/local/lib/python2.6/random.py", line 47, in <module> 
    from os import urandom as _urandom 
 ImportError: cannot import name urandom 
 ================================================= 

 I've googled and searched archives and all I can find is ubuntu problems 
 related to a virtual machine. 

 Does anyone know what's going on? 

 Thanks, 
 Gene

--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120614234727.M12036>