script to create dvd sized folders for backup

Richard Shaw hobbes1069 at gmail.com
Sat Sep 10 00:00:37 UTC 2011


On Fri, Sep 9, 2011 at 6:16 PM, Antonio Olivares
<olivares14031 at yahoo.com> wrote:
> Thank you Richard.  Had tried to run it, but got dbus error messages :(  I was not sure to send this, but I believe that without proof it does no good.  Here's what I get:
>
> [olivares at GHSE213-033561 ~]$ discspan.py --dir=~/Music/ --volume-name=MUSIC --iso-dir=~/tmp/
> Using /etc/discspan.ini as config file.
> You must enter a valid directory.
> Directory option is not valid.
> Which directory would you like to backup? (Or Q to quit)
> ~/Music
> You must enter a valid directory.
> Which directory would you like to backup? (Or Q to quit)
> Music
> Traceback (most recent call last):
>  File "/usr/bin/discspan.py", line 383, in <module>
>    iso = Iso(interface, s)
>  File "/usr/bin/discspan.py", line 193, in __init__
>    self.drive = self.system.wait_for_media()
>  File "/usr/bin/discspan.py", line 125, in wait_for_media
>    drive = self.find_drives()
>  File "/usr/bin/discspan.py", line 76, in find_drives
>    hal_obj = bus.get_object('org.freedesktop.Hal', '/org/freedesktop/Hal/Manager')
>  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 244, in get_object
>    follow_name_owner_changes=follow_name_owner_changes)
>  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 241, in __init__
>    self._named_service = conn.activate_name_owner(bus_name)
>  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 183, in activate_name_owner
>    self.start_service_by_name(bus_name)
>  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 281, in start_service_by_name
>    'su', (bus_name, flags)))
>  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
>    message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files

Ok, first the easy part... Try adding the options without the '='. If
that works then I need to update the help :) I can't believe I missed
that! Or else something has changed with the optparse module in
python, which could be.

Second, I'm guessing you pulled the archive from SF and not my rpm.
You're probably missing the dbus-python package. I know it works for
me on F15 (at least with --test, which really tests ALL of discspan
and just passes test to growisofs).

I would delete the archive and install the rpm I linked to previously.
NOTE: This also gets rid of the .py extension since it's installed
system wide as a "binary".

Richard


More information about the users mailing list