[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Python assistance
I'm looking for some help debugging a Python script called
'discspan.py' (see http://sourceforge.net/projects/discspan/). I'm
trying to use it to create a spanned set of 14 DVD-Rs backing up the ~60
GB of files in the F13 "Everything" supplement repo. Unfortunately this
script crashes at the beginning of the second DVD-R. It crashes at the
same place with the same error under RHEL5.
The script isn't very long (~250 lines). Run it with 'test' to keep from
actually burning discs. User input is simple:
1. copy the script to /usr/local/bin/
2. cd to the directory you want to back up
3. put a blank DVD-R in the drive and allow it to be recognized
4. run 'discspan.py test'
5. answer its prompts:
a. Which directory? '.'
b. <ENTER> to detect the DVD drive's device name
c. Drive speed: '1' (see 'man growisofs')
...long listing of all files in directory...
6. press <ENTER> to begin burning disc #1
...another long progress output...
7. when tray ejects, R&R disc #1 with a blank, wait until recognized
8. press <ENTER> to begin burning disk #2
oops!!!
Anyone feel like taking a look? Edited transcript follows.
--Doc
==================================================================
[doc@lion] /pub/fedora/linux/releases/13/Everything
$ discspan.py test
Which directory would you like to backup?
.
Please put a blank DVD in your drive so I can attempt to autodetect the device name and press Enter
Found a dvd_r in /dev/scd0 (DVDRAM GSA-5163D)
Using /dev/scd0 (DVDRAM GSA-5163D) as your dvd burner, if this is wrong enter a valid one or press Enter to continue
The disc capacity of the disc in /dev/scd0 (DVDRAM GSA-5163D) is 4.37999999989 GB
Enter the speed which your drive and media support and press Enter
1
./x86_64/os/RPM-GPG-KEY-fedora-sparc64
./x86_64/os/RPM-GPG-KEY-fedora-13-SPARC
./x86_64/os/RPM-GPG-KEY-fedora-13-primary
./x86_64/os/RPM-GPG-KEY-fedora
./x86_64/os/RPM-GPG-KEY-fedora-sparc
./x86_64/os/RPM-GPG-KEY-fedora-i386
./x86_64/os/GPL
./x86_64/os/RPM-GPG-KEY-fedora-x86_64
./x86_64/os/Packages/mhash-devel-0.9.9.9-3.fc12.x86_64.rpm
./x86_64/os/Packages/kcheckers-0.8.1-4.fc13.x86_64.rpm
...
./i386/os/Packages/libopensync-plugin-moto-0.22-3.fc12.i686.rpm
./i386/os/Packages/ruby-marc-0.3.3-1.fc13.noarch.rpm
./i386/os/drpms/lxdm-0.2.0-0.3.20100405gitd65ce94.fc13_0.2.0-4.fc13.i686.drpm
./i386/os/repodata/8a20d747882b41aeef1bac93f1925b304a9147e094c5c334f492ac0db6cfbafd-prestodelta.xml.gz
./i386/os/repodata/95ca9747cc7d312809c8980280b591ccd8b8b1d9c50723dd4cd0b815526049ec-primary.sqlite.bz2
./i386/os/repodata/154774805dafaffd6e9b62467f282a3097aa4898864589784e9eee94608790be-comps-f13.xml
./i386/os/repodata/e09837390c30cd2953ee68dcd007497e4aaec09426eeceb1054758a626acb9d2-filelists.sqlite.bz2
./i386/os/repodata/40a37d91de8b51f8e55172241c8e9bb17dd14bca1e3c61fc911241329bfae438-other.sqlite.bz2
./i386/os/repodata/49c22a1901a5badfeb4372307e3ab6124d71dc69d52d6245ca06d47afdb95616-filelists.xml.gz
./i386/os/repodata/repomd.xml
./i386/os/repodata/be70ac9e1031fd34222b2ec6cc8a337bc6fabd1d06969990955c5f358d138e35-primary.xml.gz
./i386/os/repodata/1bc00e0f693f21eea9cdf0837f78ad1ae04a1fab991e42103f98abd74d2b7d66-comps-f13.xml.gz
./i386/os/repodata/439f162503ea93996bfde0f1512d6dad45c263e6b0229c4ed4a62da082d730db-other.xml.gz
Number of dvd's required to burn: 14
Sanity Check
Total files in directory 46851
Total files in all discs: 46851
Ready to burn disc 1/14. Press Enter
Running command : growisofs -Z /dev/scd0 -speed=1 -use-the-force-luke=notray -use-the-force-luke=tty -gui -use-the-force-luke=dummy -V DiscSpanData -A DiscSpan -p Unknown -iso-level 3 -l -r -hide-rr-moved -J -joliet-long -graft-points --path-list /tmp/tmphzEdxO.discspanlist
Executing 'mkisofs -gui -V DiscSpanData -A DiscSpan -p Unknown -iso-level 3 -l -r -hide-rr-moved -J -joliet-long -graft-points --path-list /tmp/tmphzEdxO.discspanlist | builtin_dd of=/dev/scd0 obs=32k seek=0'
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
Using EARTH_AND_MOON_BACKGROUNDS_000.;1 for i386/os/Packages/earth-and-moon-backgrounds-single-0.2-1.fc12.noarch.rpm (earth-and-moon-backgrounds-kdm-0.2-1.fc12.noarch.rpm)
Using EARTH_AND_MOON_BACKGROUNDS_001.;1 for i386/os/Packages/earth-and-moon-backgrounds-kdm-0.2-1.fc12.noarch.rpm (earth-and-moon-backgrounds-dual-0.2-1.fc12.noarch.rpm)
Using EARTH_AND_MOON_BACKGROUNDS_002.;1 for i386/os/Packages/earth-and-moon-backgrounds-dual-0.2-1.fc12.noarch.rpm (earth-and-moon-backgrounds-common-0.2-1.fc12.noarch.rpm)
Using EARTH_AND_MOON_BACKGROUNDS_003.;1 for i386/os/Packages/earth-and-moon-backgrounds-common-0.2-1.fc12.noarch.rpm (earth-and-moon-backgrounds-0.2-1.fc12.noarch.rpm)
Using CONSTANTINE_BACKGROUNDS_EXT000.;1 for i386/os/Packages/constantine-backgrounds-extras-kde-12.1.1-3.fc13.noarch.rpm (constantine-backgrounds-extras-12.1.1-3.fc13.noarch.rpm)
Using COMPIZCONFIG_BACKEND_KCONFI000.;1 for i386/os/Packages/compizconfig-backend-kconfig4-0.8.4-2.fc13.i686.rpm (compizconfig-backend-kconfig-0.8.2-2.fc13.i686.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_000.;1 for i386/os/Packages/childsplay-alphabet_sounds_sv-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_sl-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_001.;1 for i386/os/Packages/childsplay-alphabet_sounds_sl-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_ru-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_002.;1 for i386/os/Packages/childsplay-alphabet_sounds_ru-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_ro-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_003.;1 for i386/os/Packages/childsplay-alphabet_sounds_ro-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_nl-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_004.;1 for i386/os/Packages/childsplay-alphabet_sounds_nl-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_nb-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_005.;1 for i386/os/Packages/childsplay-alphabet_sounds_nb-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_lt-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_006.;1 for i386/os/Packages/childsplay-alphabet_sounds_lt-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_it-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_007.;1 for i386/os/Packages/childsplay-alphabet_sounds_it-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_fr-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_008.;1 for i386/os/Packages/childsplay-alphabet_sounds_fr-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_es-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_009.;1 for i386/os/Packages/childsplay-alphabet_sounds_es-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_en_GB-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_00A.;1 for i386/os/Packages/childsplay-alphabet_sounds_en_GB-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_el-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_00B.;1 for i386/os/Packages/childsplay-alphabet_sounds_el-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_de-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_00C.;1 for i386/os/Packages/childsplay-alphabet_sounds_de-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_ca-1.5-1.fc13.noarch.rpm)
Using CHILDSPLAY_ALPHABET_SOUNDS_00D.;1 for i386/os/Packages/childsplay-alphabet_sounds_ca-1.5-1.fc13.noarch.rpm (childsplay-alphabet_sounds_bg-1.5-1.fc13.noarch.rpm)
Using ASTERISK_SOUNDS_CORE_FR_SIR000.;1 for i386/os/Packages/asterisk-sounds-core-fr-siren7-1.4.16-3.fc13.noarch.rpm (asterisk-sounds-core-fr-siren14-1.4.16-3.fc13.noarch.rpm)
Using ASTERISK_SOUNDS_CORE_FR_G72000.;1 for i386/os/Packages/asterisk-sounds-core-fr-g729-1.4.16-3.fc13.noarch.rpm (asterisk-sounds-core-fr-g722-1.4.16-3.fc13.noarch.rpm)
Using ASTERISK_SOUNDS_CORE_ES_SIR000.;1 for i386/os/Packages/asterisk-sounds-core-es-siren7-1.4.16-3.fc13.noarch.rpm (asterisk-sounds-core-es-siren14-1.4.16-3.fc13.noarch.rpm)
Using ASTERISK_SOUNDS_CORE_ES_G72000.;1 for i386/os/Packages/asterisk-sounds-core-es-g729-1.4.16-3.fc13.noarch.rpm (asterisk-sounds-core-es-g722-1.4.16-3.fc13.noarch.rpm)
Using ASTERISK_SOUNDS_CORE_EN_SIR000.;1 for i386/os/Packages/asterisk-sounds-core-en-siren7-1.4.16-3.fc13.noarch.rpm (asterisk-sounds-core-en-siren14-1.4.16-3.fc13.noarch.rpm)
Using ASTERISK_SOUNDS_CORE_EN_G72000.;1 for i386/os/Packages/asterisk-sounds-core-en-g729-1.4.16-3.fc13.noarch.rpm (asterisk-sounds-core-en-g722-1.4.16-3.fc13.noarch.rpm)
0.02% done, estimate finish Sun Jun 6 04:19:30 2010
0.04% done, estimate finish Sun Jun 6 04:19:30 2010
...
0.33% done, estimate finish Sun Jun 6 04:24:33 2010
0.35% done, estimate finish Sun Jun 6 04:24:14 2010
/dev/scd0: "Current Write Speed" is 4.1x1352KBps.
0.37% done, estimate finish Sun Jun 6 04:23:57 2010
...
99.98% done, estimate finish Sun Jun 6 04:33:31 2010
Total translation table size: 0
Total rockridge attributes bytes: 307233
Total directory bytes: 522240
Path table size(bytes): 48
Max brk space used 2d2000
2278358 extents written (4449 MB)
/dev/scd0: flushing cache
/dev/scd0: updating RMA
/dev/scd0: closing session
:-[ CLOSE SESSION failed with SK=5h/ASC=72h/ACQ=03h]: Input/output error
Running command : eject
Insert Empty Disc 2/14 and Press Enter
Running command : growisofs -Z /dev/scd0 -speed=1 -use-the-force-luke=notray -use-the-force-luke=tty -gui -use-the-force-luke=dummy -V DiscSpanData -A DiscSpan -p Unknown -iso-level 3 -l -r -hide-rr-moved -J -joliet-long -graft-points --path-list /tmp/tmpM8xsM7.discspanlist
Executing 'mkisofs -gui -V DiscSpanData -A DiscSpan -p Unknown -iso-level 3 -l -r -hide-rr-moved -J -joliet-long -graft-points --path-list /tmp/tmpM8xsM7.discspanlist | builtin_dd of=/dev/scd0 obs=32k seek=0'
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
Using JAKARTA_COMMONS_HTTPCLIENT_000.;1 for i386/os/Packages/jakarta-commons-httpclient-manual-3.1-0.5.fc12.i686.rpm (jakarta-commons-httpclient-javadoc-3.1-0.5.fc12.i686.rpm)
Using JAKARTA_COMMONS_HTTPCLIENT_001.;1 for i386/os/Packages/jakarta-commons-httpclient-javadoc-3.1-0.5.fc12.i686.rpm (jakarta-commons-httpclient-demo-3.1-0.5.fc12.i686.rpm)
Using JAKARTA_COMMONS_HTTPCLIENT_002.;1 for i386/os/Packages/jakarta-commons-httpclient-demo-3.1-0.5.fc12.i686.rpm (jakarta-commons-httpclient-3.1-0.5.fc12.i686.rpm)
Using JAKARTA_COMMONS_FILEUPLOAD_000.;1 for i386/os/Packages/jakarta-commons-fileupload-javadoc-1.2.1-1.fc13.i686.rpm (jakarta-commons-fileupload-1.2.1-1.fc13.i686.rpm)
Using JAKARTA_COMMONS_CONFIGURATI000.;1 for i386/os/Packages/jakarta-commons-configuration-javadoc-1.4-7.fc12.noarch.rpm (jakarta-commons-configuration-1.4-7.fc12.noarch.rpm)
Using JAKARTA_COMMONS_COLLECTIONS000.;1 for i386/os/Packages/jakarta-commons-collections-tomcat5-3.2.1-3.fc12.i686.rpm (jakarta-commons-collections-testframework-javadoc-3.2.1-3.fc12.i686.rpm)
Using JAKARTA_COMMONS_COLLECTIONS001.;1 for i386/os/Packages/jakarta-commons-collections-testframework-javadoc-3.2.1-3.fc12.i686.rpm (jakarta-commons-collections-testframework-3.2.1-3.fc12.i686.rpm)
Using JAKARTA_COMMONS_COLLECTIONS002.;1 for i386/os/Packages/jakarta-commons-collections-testframework-3.2.1-3.fc12.i686.rpm (jakarta-commons-collections-javadoc-3.2.1-3.fc12.i686.rpm)
Using JAKARTA_COMMONS_COLLECTIONS003.;1 for i386/os/Packages/jakarta-commons-collections-javadoc-3.2.1-3.fc12.i686.rpm (jakarta-commons-collections-3.2.1-3.fc12.i686.rpm)
Using HARTKE_AURULENT_SANS_FONTS000.R;1 for i386/os/Packages/hartke-aurulent-sans-fonts-common-20070504-3.fc12.noarch.rpm (hartke-aurulent-sans-fonts-20070504-3.fc12.noarch.rpm)
Using GSTREAMER_PLUGINS_BAD_FREE_000.;1 for i386/os/Packages/gstreamer-plugins-bad-free-extras-0.10.18-2.fc13.i686.rpm (gstreamer-plugins-bad-free-devel-docs-0.10.18-2.fc13.i686.rpm)
Using GSTREAMER_PLUGINS_BAD_FREE_001.;1 for i386/os/Packages/gstreamer-plugins-bad-free-devel-docs-0.10.18-2.fc13.i686.rpm (gstreamer-plugins-bad-free-devel-0.10.18-2.fc13.i686.rpm)
Using GSTREAMER_PLUGINS_BAD_FREE_002.;1 for i386/os/Packages/gstreamer-plugins-bad-free-devel-0.10.18-2.fc13.i686.rpm (gstreamer-plugins-bad-free-0.10.18-2.fc13.i686.rpm)
Using GLOBUS_SCHEDULER_EVENT_GENE000.;1 for i386/os/Packages/globus-scheduler-event-generator-progs-2.1-2.fc13.i686.rpm (globus-scheduler-event-generator-doc-2.1-2.fc13.noarch.rpm)
Using GLOBUS_SCHEDULER_EVENT_GENE001.;1 for i386/os/Packages/globus-scheduler-event-generator-doc-2.1-2.fc13.noarch.rpm (globus-scheduler-event-generator-devel-2.1-2.fc13.i686.rpm)
Using GLOBUS_SCHEDULER_EVENT_GENE002.;1 for i386/os/Packages/globus-scheduler-event-generator-devel-2.1-2.fc13.i686.rpm (globus-scheduler-event-generator-2.1-2.fc13.i686.rpm)
Using GLOBUS_GRIDFTP_SERVER_CONTR000.;1 for i386/os/Packages/globus-gridftp-server-control-devel-0.42-1.fc13.i686.rpm (globus-gridftp-server-control-0.42-1.fc13.i686.rpm)
Using GLOBUS_GRAM_JOB_MANAGER_SCR000.;1 for i386/os/Packages/globus-gram-job-manager-scripts-doc-2.5-1.fc13.noarch.rpm (globus-gram-job-manager-scripts-2.5-1.fc13.noarch.rpm)
Using GLOBUS_GRAM_JOB_MANAGER_CAL000.;1 for i386/os/Packages/globus-gram-job-manager-callout-error-doc-0.2-2.fc13.noarch.rpm (globus-gram-job-manager-callout-error-devel-0.2-2.fc13.i686.rpm)
Using GLOBUS_GRAM_JOB_MANAGER_CAL001.;1 for i386/os/Packages/globus-gram-job-manager-callout-error-devel-0.2-2.fc13.i686.rpm (globus-gram-job-manager-callout-error-0.2-2.fc13.i686.rpm)
Using GLOBUS_AUTHZ_CALLOUT_ERROR_000.;1 for i386/os/Packages/globus-authz-callout-error-doc-0.5-1.fc13.noarch.rpm (globus-authz-callout-error-devel-0.5-1.fc13.i686.rpm)
Using GLOBUS_AUTHZ_CALLOUT_ERROR_001.;1 for i386/os/Packages/globus-authz-callout-error-devel-0.5-1.fc13.i686.rpm (globus-authz-callout-error-0.5-1.fc13.i686.rpm)
Using FLIGHT_OF_THE_AMAZON_QUEEN_000.;1 for i386/os/Packages/flight-of-the-amazon-queen-cd-1.0-4.fc12.noarch.rpm (flight-of-the-amazon-queen-1.0-4.fc12.noarch.rpm)
:-( /dev/scd0: 2297888 blocks are free, 2298242 to be written!
:-( write failed: No space left on device
mkisofs: Broken pipe. cannot fwrite 663552*1
There was an error running growisofs -Z /dev/scd0 -speed=1 -use-the-force-luke=notray -use-the-force-luke=tty -gui -use-the-force-luke=dummy -V DiscSpanData -A DiscSpan -p Unknown -iso-level 3 -l -r -hide-rr-moved -J -joliet-long -graft-points --path-list /tmp/tmpM8xsM7.discspanlist.
--- end of transcript ---
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.