import random fails because _urandom is unavailable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-defaults (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
To reproduce:
% python -c 'import random'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
from os import urandom as _urandom
ImportError: cannot import name urandom
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-minimal 2.7.3-0ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu6
Architecture: amd64
Date: Fri Apr 27 09:02:38 2012
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_CA.UTF-8
SHELL=/bin/zsh
SourcePackage: python-defaults
UpgradeStatus: Upgraded to precise on 2012-04-26 (0 days ago)
Sorry, I've just discovered this was a result of my python being a virtualenv python. There may still be a bug here, but it's not against python-minimal.