ImportError: cannot import name urandom from os
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Release Notes for Ubuntu |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
python2.7 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
1) Description: Ubuntu precise (development branch)
Release: 12.04
2) python2.7 2.7.3~rc1-1ubuntu2, libpython2.7 2.7.3~rc1-1ubuntu2, python2.7-minimal 2.7.3~rc1-1ubuntu2
(tribune)
Traceback (most recent call last):
File "/home/
load_
File "/home/
return get_distributio
File "/home/
return ep.load()
File "/home/
entry = __import_
File "/home/
from pip.backwardcompat import u, walk_packages, console_to_str
File "/home/
from urllib2 import URLError, HTTPError
File "/usr/lib/
import httplib
File "/usr/lib/
import mimetools
File "/usr/lib/
import tempfile
File "/usr/lib/
from random import Random as _Random
File "/usr/lib/
from os import urandom as _urandom
ImportError: cannot import name urandom
(tribune)
Python 2.7.2+ (default, Aug 16 2011, 07:24:41)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.urandom
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'urandom'
Downgrading all three packages to 2.7.2-13ubuntu5 makes pip work again, and importing urandom from os succeeds as well.
description: | updated |
description: | updated |
Changed in python2.7 (Ubuntu): | |
status: | Invalid → Confirmed |
Changed in python2.7 (Ubuntu): | |
status: | Confirmed → Invalid |
Status changed to 'Confirmed' because the bug affects multiple users.