Bug 214820 - "halmount -e /device" gives a Python traceback
Summary: "halmount -e /device" gives a Python traceback
Status: VERIFIED FIXED
Alias: None
Product: openSUSE 10.2
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 1 plus
Hardware: x86 Linux
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Danny Al-Gaaf
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-24 21:47 UTC by Andreas Hanke
Modified: 2007-06-05 11:17 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
The fix. (366 bytes, patch)
2006-10-30 15:33 UTC, Timo Hoenig
Details | Diff
The fix. Take two. (366 bytes, patch)
2006-10-30 15:45 UTC, Timo Hoenig
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Hanke 2006-10-24 21:47:30 UTC
halmount from ivman-0.6.12-17 seems to have some problems:

- "halmount /dev/hdc" works

- "halmount -u /dev/hdc" works

- "halmount -e /dev/hdc", however, always throws the following traceback (whether the device is mounted or not):



$ halmount -e /dev/hdc
Traceback (most recent call last):
  File "/usr/bin/halmount", line 298, in <module>
    m.eject(name)
  File "/usr/bin/halmount", line 246, in eject
    ret = obj.Eject([""], dbus_interface="org.freedesktop.Hal.Device.Volume")
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 25, in __call__
    ret = self._proxy_method (*args, **keywords)
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 102, in __call__
    reply_message = self._connection.send_with_reply_and_block(message, timeout)
  File "dbus_bindings.pyx", line 456, in dbus_bindings.Connection.send_with_reply_and_block
TypeError: exceptions must be strings, classes, or instances, not type



Package versions:

ivman-0.6.12-17
hal-0.5.8_git20060927-11
hal-devel-0.5.8_git20060927-11
hal-gnome-0.5.8_git20060927-11
hal-resmgr-0.1_SVNr114-8
dbus-1-qt3-0.62-24
dbus-1-mono-0.63-16
dbus-1-x11-0.94-4
dbus-1-glib-0.71-14
dbus-1-0.94-4
dbus-1-python-0.71-15
dbus-1-devel-0.94-4
dbus-1-glib-devel-0.71-14
dbus-1-qt3-devel-0.62-24
Comment 1 Timo Hoenig 2006-10-30 15:33:11 UTC
HAL is to blame.

Eject moved from /usr/bin/eject to /bin/eject [1]


[1] snipplet from eject.changes

 88 -------------------------------------------------------------------
 89 Tue Sep 19 16:01:35 CEST 2000 - olh@suse.de
 90 
 91 - move binary to /bin
 92 
Comment 2 Timo Hoenig 2006-10-30 15:33:36 UTC
Created attachment 103043 [details]
The fix.
Comment 3 Andreas Hanke 2006-10-30 15:36:38 UTC
/usr/eject?!

You surely meant /bin/eject.
Comment 4 Timo Hoenig 2006-10-30 15:45:50 UTC
Created attachment 103046 [details]
The fix.  Take two.

Yes, thanks for the watching closely.
Comment 7 Timo Hoenig 2006-10-30 16:44:45 UTC
Please submit a fixed package for Beta1+, so that we can see which other eject issues depend on this.
Comment 12 Danny Al-Gaaf 2006-10-30 17:06:09 UTC
(In reply to comment #1)
> Eject moved from /usr/bin/eject to /bin/eject [1]
> 
> 
> [1] snipplet from eject.changes
> 
>  88 -------------------------------------------------------------------
>  89 Tue Sep 19 16:01:35 CEST 2000 - olh@suse.de
>  90 
>  91 - move binary to /bin
>  92 

I taked a look at Fedora, Mandriva, Debian and some other distributions. SUSE is the only one which moved eject to bin. All other distributions have currently eject in /usr/bin.

Comment 13 Olaf Hering 2006-10-30 17:39:52 UTC
this change is 6 years old. how does it break now?
I cant remember why I moved it. Maybe for this academic /usr can be unavailable.
If you move eject, make sure that all packages get fixed.
And why does everyone use absolete path names anyway?
Comment 14 Andreas Hanke 2006-10-31 00:58:47 UTC
Let's not move the eject binary back from /bin to /usr/bin now, please.

Who knows how many of the thousands of packages in the tree expect it in /bin. There is 1 package (hal) which is known to expect it in /usr/bin, so let's better patch this 1 package.
Comment 15 Danny Al-Gaaf 2006-11-02 11:02:33 UTC
*** Bug 216545 has been marked as a duplicate of this bug. ***
Comment 16 Peter Kuliffay 2006-11-02 12:18:51 UTC
(In reply to comment #15)
> ***  Bug 216545 has been marked as a duplicate of this bug. ***

Is it HW depending?
I was trying installation from the same CD set at different HW (Intel Pentium 4 1.50 GHz, Intel 82845 845 Brookdale Chipset, DVD-ROM GDR8163B). Everything went O.K.

 
Comment 20 Timo Hoenig 2006-11-02 15:29:28 UTC
Still present in Beta 1 plus.

-> Beta 1 plus
Comment 21 Danny Al-Gaaf 2006-11-03 14:13:54 UTC
submitted a new HAL version with correct path, but we need a general upstream fix.