Control: tags -1 - patch Control: tags -1 + moreinfo Am 22.05.2013 19:35, schrieb mike dentifrice: > Package: python2.7-minimal > Version: 2.7.3-6 > Severity: normal > Tags: patch > > Greetings, > > When a program ([pyroscope] in my precise case) needs to use > /usr/lib/python2.7/random.py, it fails to import urandom. > > [pyroscope]: https://code.google.com/p/pyroscope/ > > Here's the error message: > > File "/usr/lib/python2.7/random.py", line 47, in <module> > from os import urandom as _urandom > ImportError: cannot import name urandom > > That's because /usr/lib/python2.7/os.py contains no such definition. Appending > the following to os.py fixes the issue:
no, this is wrong. Please find out why the import fails. $ python -c 'from os import urandom as _urandom; print len(_urandom(42))' 42 so this just works. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org