[MacPorts] #35685: python27 @2.7.3_0 cannot import module 'random'

MacPorts noreply at macports.org
Wed Aug 15 14:02:08 PDT 2012


#35685: python27 @2.7.3_0 cannot import module 'random'
----------------------------+-----------------------------------------------
 Reporter:  borisd@…        |       Owner:  macports-tickets@…                   
     Type:  defect          |      Status:  new                                  
 Priority:  Normal          |   Milestone:                                       
Component:  ports           |     Version:  2.1.2                                
 Keywords:                  |        Port:                                       
----------------------------+-----------------------------------------------
 After fresh install of macports on Mountain Lion, python27 gives the
 following error:

 {{{
 Python 2.7.2 (default, Jun 20 2012, 16:23:33)
 [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on
 darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import random
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.py",
 line 47, in <module>
     from os import urandom as _urandom
 ImportError: cannot import name urandom
 }}}

 Not sure if it's related, but the version reported by python is also
 wrong: 2.7.2, while the installed and activated port should be 2.7.3.

-- 
Ticket URL: <https://trac.macports.org/ticket/35685>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list