[Bug 565375] Re: Doesn't work on Debian, because using is_alive instead of isAlive
Dimitri John Ledkov
launchpad at surgut.co.uk
Mon Mar 31 14:11:42 UTC 2014
Well, we use python3 now.
** Changed in: usb-creator (Ubuntu)
Status: Triaged => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to usb-creator in Ubuntu.
https://bugs.launchpad.net/bugs/565375
Title:
Doesn't work on Debian, because using is_alive instead of isAlive
Status in “usb-creator” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: usb-creator
using trunk version, compiled on Debian testing, I have the following
errors:
<pre>
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/site-packages/usbcreator/install.py", line 148, in run
self._failure(_('An uncaught exception was raised:\n%s') % str(e))
File "/usr/lib/python2.5/site-packages/usbcreator/install.py", line 93, in _failure
if self.progress_thread and self.progress_thread.is_alive():
AttributeError: 'progress' object has no attribute 'is_alive'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/usbcreator/frontends/gtk/frontend.py", line 660, in quit
self.backend.cancel_install()
File "/usr/lib/python2.5/site-packages/usbcreator/backends/udisks/backend.py", line 310, in cancel_install
Backend.cancel_install(self)
File "/usr/lib/python2.5/site-packages/usbcreator/backends/base/backend.py", line 189, in cancel_install
if self.install_thread and self.install_thread.is_alive():
AttributeError: 'install' object has no attribute 'is_alive'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/usbcreator/frontends/gtk/frontend.py", line 660, in quit
self.backend.cancel_install()
File "/usr/lib/python2.5/site-packages/usbcreator/backends/udisks/backend.py", line 310, in cancel_install
Backend.cancel_install(self)
File "/usr/lib/python2.5/site-packages/usbcreator/backends/base/backend.py", line 189, in cancel_install
if self.install_thread and self.install_thread.is_alive():
AttributeError: 'install' object has no attribute 'is_alive'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/usbcreator/frontends/gtk/frontend.py", line 660, in quit
self.backend.cancel_install()
File "/usr/lib/python2.5/site-packages/usbcreator/backends/udisks/backend.py", line 310, in cancel_install
Backend.cancel_install(self)
File "/usr/lib/python2.5/site-packages/usbcreator/backends/base/backend.py", line 189, in cancel_install
if self.install_thread and self.install_thread.is_alive():
AttributeError: 'install' object has no attribute 'is_alive'
</pre>
This is due to the use of is_alive method which is not available in python < 2.6 (see http://groups.google.com/group/robotframework-devel/msg/7d1ec233dc392670?pli=1).
Solution: in usbcreator/install.py, replace all is_alive by isAlive.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/565375/+subscriptions
More information about the foundations-bugs
mailing list