I got the same error in my virtualenv when I upgraded from 11.10 to 12.04 Turned out to be the python2.7-minimal didn't get properly upgrade, so /usr/bin/python is 2.7.3, but /usr/bin/python2.7 is 2.7.2
`aptitude reinstall python2.7-minimal` then recreate the virtualenv fixed the problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/954595 Title: ImportError: cannot import name urandom from os To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/954595/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs