cdg2bin run problems

Help
2012-02-13
2013-04-15
  • Capt_Patches
    Capt_Patches
    2012-02-13

    Hi,

    When running cdg2bin.py I get several problems as listed below:

    Having read that right permissions I have used chmod 777 for the containing folder and n the file itself, with no change.  (I'll change that back if it isn't helping!) Anyone know the magic I need to make this work?

    patches@LinuxBox:~/cdgtools-0.3.2$ ./cdg2bin.py Human.ogg+Human.cdg
    Processing Human.ogg+Human.cdg
    Traceback (most recent call last):
      File "./cdg2bin.py", line 348, in <module>
        (cdg, audio) = fetchpair(file)
      File "./cdg2bin.py", line 151, in fetchpair
        (cdg, audio) = findmatch(file)
      File "./cdg2bin.py", line 67, in findmatch
        if cdg and audio:
    UnboundLocalError: local variable 'audio' referenced before assignment
    patches@LinuxBox:~/cdgtools-0.3.2$

    Thanks in advance for any help - Patches.

    PS I know no python - sorry.

     
  • Kelvin Lawson
    Kelvin Lawson
    2012-02-13

    Hi,

    Where in the instructions did you find the command format: "./cdg2bin.py Human.ogg+Human.cdg"

    It looks to me like you just specify the music filename or the CDG filename:
    http://www.kibosh.org/cdgtools/usage.php

     
  • Capt_Patches
    Capt_Patches
    2012-02-13

    Hi

    Wow, thanks for the reply - that problem sorted :)

    I found the instructions using the ./cdg2bin -h option  (see bold below)

    A re-read would indicate I need to learn how to RTFM!

    After any appropriate program options, list files to be added to the CD+G disc.
    They will be placed on the disc in the order provided on the command line.
    Files can be any combination of tar.gz, tar.bz2, .zip, .mp3+cdg, .ogg+cdg, and
    .wav+cdg. For .mp3+cdg and .ogg+cdg,
    specify either the CDG file or the sound
    file; cdg2bin will find the matching file.

    Thanks again

    - Patches