[Bug 989856] Re: import random fails because _urandom is unavailable

2012-05-02 Thread Adam Victor Nazareth Brandizzi
Hi, Joe.

I just ran virtualenv over the same installation and it worked:

$ virtualenv ~/lib/virtualenv/netunong
Overwriting /home/adam/lib/virtualenv/netunong/lib/python2.7/site.py with new 
content
New python executable in /home/adam/lib/virtualenv/netunong/bin/python
Installing 
distribute..done.
Installing pipdone.
Overwriting /home/adam/lib/virtualenv/netunong/bin/activate with new content
Overwriting /home/adam/lib/virtualenv/netunong/bin/activate_this.py with new 
content

Since I have all of them in the same dir, I just ran:

$ ls | xargs -I{} virtualenv {}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989856

Title:
  import random fails because _urandom is unavailable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/989856/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 989856] Re: import random fails because _urandom is unavailable

2012-05-02 Thread Joe Jasinski
Thank you very much Victor, I'll give that a shot.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989856

Title:
  import random fails because _urandom is unavailable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/989856/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 989856] Re: import random fails because _urandom is unavailable

2012-05-02 Thread Joe Jasinski
Seems to have worked.   Thank you Adam.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989856

Title:
  import random fails because _urandom is unavailable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/989856/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 989856] Re: import random fails because _urandom is unavailable

2012-05-01 Thread Joe Jasinski
Thanks for the info about rebuilding the virtualenv.  Is there any way
to get around the error without remaking each virtualenv?  I have a few
dozen of them and would hate to have to rebuild all of them unless
absolutely necessary

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989856

Title:
  import random fails because _urandom is unavailable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/989856/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 989856] Re: import random fails because _urandom is unavailable

2012-04-28 Thread Ana Nelson
I found this same error after upgrading to precise pangolin and
activating my virtualenv. I was able to work around it by creating a
fresh virtualenv which worked as expected, I just had to reinstall all
python libs into the new virtualenv.

Error messages I saw:

When trying to run nosetests:

  File /usr/lib/python2.7/multiprocessing/process.py, line 309, in __init__
self._authkey = AuthenticationString(os.urandom(32))
AttributeError: 'module' object has no attribute 'urandom'

When trying to run pip:

  File /usr/lib/python2.7/random.py, line 47, in module
from os import urandom as _urandom
ImportError: cannot import name urandom

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989856

Title:
  import random fails because _urandom is unavailable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/989856/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 989856] Re: import random fails because _urandom is unavailable

2012-04-27 Thread Brendan Cully
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989856

Title:
  import random fails because _urandom is unavailable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/989856/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 989856] Re: import random fails because _urandom is unavailable

2012-04-27 Thread Brendan Cully
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.

** Changed in: python-defaults (Ubuntu)
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/989856

Title:
  import random fails because _urandom is unavailable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/989856/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs