--- On Fri, 9/9/11, Richard Shaw <hobbes1069(a)gmail.com> wrote:
From: Richard Shaw <hobbes1069(a)gmail.com>
Subject: Re: script to create dvd sized folders for backup
To: "Community support for Fedora users" <users(a)lists.fedoraproject.org>
Date: Friday, September 9, 2011, 5:00 PM
On Fri, Sep 9, 2011 at 6:16 PM,
Antonio Olivares
<olivares14031(a)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@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
--
Sorry Richard, I tried your suggestions, but it still bombs out:
[olivares@GHSE213-033561 ~]$ discspan.py --dir ~/Music --iso-dir ~/tmp/
Using /etc/discspan.ini as config file.
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
[root@GHSE213-033561 ~]# yum list dbus-python
Loaded plugins: langpacks, presto, refresh-packagekit
updates/metalink | 14 kB 00:00
updates | 4.7 kB 00:00
updates/primary_db | 4.5 MB 00:14
Installed Packages
dbus-python.x86_64 0.83.0-8.fc15 @koji-override-0/$releasever
[root@GHSE213-033561 ~]# yum install dbus-python -y
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Package dbus-python-0.83.0-8.fc15.x86_64 already installed and latest version
Nothing to do
Any other suggestions. In the meantime, I will try the other suggestions so I can save
what I can to later put a test version/beta version on this machine.
Thanks for helping though.
Regards,
Antonio