Home Forums Software InstaDMG Immediate error when running instaup2date.py

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #381508
    db1021
    Participant

    Hi everyone! Total instaDMG newbie here and have been doing what I can to figure this tool out using websites and googling.

    I was able to successfully get instaDMG to give me a plain vanilla 10.6.8 image which is wonderful. I’ve been successfully using it to deploy hardware at work with updated 10.6.8.

    I now want to start customizing w/ standard settings, users, and various applications.

    When running “sudo ./instaUp2Date.py -p snowleopard” it spits out the following:

    Parsing the catalog files for snowleopard
    Traceback (most recent call last):
    File “./instaUp2Date.py”, line 716, in
    main()
    File “./instaUp2Date.py”, line 662, in main
    thisController.parseCatalogFile()
    File “./instaUp2Date.py”, line 286, in parseCatalogFile
    self.parseCatalogFile( self.getCatalogFullPath(includeLineMatch.group(“location”), self.catalogFolders) )
    File “./instaUp2Date.py”, line 286, in parseCatalogFile
    self.parseCatalogFile( self.getCatalogFullPath(includeLineMatch.group(“location”), self.catalogFolders) )
    File “./instaUp2Date.py”, line 319, in parseCatalogFile
    raise Exception(‘Error in config file: %s line number: %i\n%s’ % (fileLocation, lineNumber, line)) # TODO: improve error handling
    Exception: Error in config file: /Users/dbong/Desktop/instadmg/addons/instaup2date/CatalogFiles/common.catalog line number: 2
    ?

    What am I doing wrong here?

    Thanks!

    #381509
    db1021
    Participant

    It wouldn’t let me post this in the original thread:

    Here are my catalog files that should be chaining together to give me the tweaked image:

    [b]snowleopard.catalog:[/b]

    # This is the catalog for the Base Snow Leopard Settings

    include-file: common.catalog

    # Output Volume Name = Macintosh HD
    # Output File Name = Base-1.0.0

    Base OS Disk:
    # the first one should be disk 1 of an installer disk
    # this is not yet implimented

    System Settings:

    Third Party Software:

    create local admin createUser.pkg sha1:211e7b4faf68410821b16f54d1854b8dcd7aabd7

    First Boot Setting Firstboot.mpkg sha1:54bdf575d6415bbc470992d95f6c03f4a658d4b1

    Apple Updates:

    Software Settings:

    [b]base.catalog:[/b]

    # This is the catalog for the Base Snow Leopard Settings

    include-file: common.catalog

    # Output Volume Name = Macintosh HD
    # Output File Name = Base-1.0.0

    Base OS Disk:
    # the first one should be disk 1 of an installer disk
    # this is not yet implimented

    System Settings:

    Third Party Software:

    create local admin createUser.pkg sha1:211e7b4faf68410821b16f54d1854b8dcd7aabd7

    First Boot Setting Firstboot.mpkg sha1:54bdf575d6415bbc470992d95f6c03f4a658d4b1

    Apple Updates:

    Software Settings:

    [b]common.catalog:[/b]

    # This is the catalog for packages shared between all images.
     
    include-file: 10.6_vanilla.catalog
    # Output Volume Name = Macintosh HD
    # Output File Name = Common-1.0.0
     
    Base OS Disk:
    # the first one should be disk 1 of an installer disk
    # this is not yet implimented
     
    System Settings:
     
    Third Party Software:

    clear Registration clearReg.dmg sha1:0cf3080cc0179fe63883e40a180f6a92b573fd70
     
    Firefox Firefox.dmg sha1:0e7b963b28d11ab8ffbf776b88cbe68a3efcf62a

    googlechrome googlechrome.dmg sha1:ca4e937dfe5ccff1e5b1b5bcae5b3c31b6999237

    stuffitexpander stuffitexpander.dmg sha1:afcc9e14029086b5239e44d33babc1259c54a377 

    Apple Updates:
     
     
    Software Settings:

    #381511
    Allister Banks
    Participant

    Hey db1021,
    Welcome! The exception that the python process caught says line 2 in the first common.catalog file is the issue, which I believe is including the other catalog. Please try using the full path to the catalog instead of just its name, and report back if it still won’t run.
    BTW, the version of iTunes in svn right now is one version out of date, I’ll push that change as soon as I can, or you can generate your own with the checksum.py tool. Thanks,

    Allister

    #381512
    macanics
    Participant

    Maybe I’m missing something, but it looks like the chain of file goes:
    [b]snowleopard.catalog > common.catalog > 10.6_vanilla.catalog[/b]
    and doesn’t reference your base.catalog at all.
    I’d think you need to remove the include line from base.catalog, and add
    [code]include-file: base.catalog[/code]
    just before the system settings line in your common.catalog

    —john—

    #381514
    db1021
    Participant

    Thanks for the replies guys! I’m going to take another stab at it here at work in a bit.

    Curious … what do you guys use to edit the .catalog files? What is the correct format and suffix I should be appending? Using the built in editor it was converting files to rich text and appending .rtf to the end of the files.

    #381516
    macanics
    Participant

    TextEdit is a no-no unless you’re really careful. I recommend TextWrangler h**p://bit.ly/kT57g for editing these files. It’s free! You’ll be able to preserve the plain text, encoding and line endings that way, and use whatever filename suffix you want.
    I use [b].catalog[/b] for my catalog files.

    #381518
    db1021
    Participant

    Text Wrangler – thanks for the tip! Its soooo much easier to use and read! Does it matter that its changing the file icons? Just making sure its not saving in some strange format that instaDMG won’t like.

    Regarding the common.catalog – I think I goofed up my copy/pasting trying to fight the forum spam issue. Here’s my actual common.cataog:

    # This is the catalog for packages shared between all images.
     
    include-file: 10.6_vanilla.catalog
    # Output Volume Name = Macintosh HD
    # Output File Name = Common-1.0.0
     
    Base OS Disk:
    # the first one should be disk 1 of an installer disk
    # this is not yet implimented
     
    System Settings:
     
    Third Party Software:

    clear Registration clearReg.dmg sha1:0cf3080cc0179fe63883e40a180f6a92b573fd70
     
    Firefox Firefox.dmg sha1:0e7b963b28d11ab8ffbf776b88cbe68a3efcf62a

    googlechrome googlechrome.dmg sha1:ca4e937dfe5ccff1e5b1b5bcae5b3c31b6999237

    stuffitexpander stuffitexpander.dmg sha1:afcc9e14029086b5239e44d33babc1259c54a377 

    Apple Updates:
     
     
    Software Settings:

    So it should be running them in this order: snowleopard.catalog -> base.catalog -> common.catalog -> 10.6_vanilla.catalog

    #381519
    db1021
    Participant

    I tried editing the catalogs with the full paths, no dice 🙁

    Here’s the new error:

    [code]ssfhce014-l:instaup2date dbong$ sudo ./instaUp2Date.py -p Snowleopard

    Parsing the catalog files for Snowleopard
    Traceback (most recent call last):
    File “./instaUp2Date.py”, line 716, in
    main()
    File “./instaUp2Date.py”, line 662, in main
    thisController.parseCatalogFile()
    File “./instaUp2Date.py”, line 286, in parseCatalogFile
    self.parseCatalogFile( self.getCatalogFullPath(includeLineMatch.group(“location”), self.catalogFolders) )
    File “./instaUp2Date.py”, line 286, in parseCatalogFile
    self.parseCatalogFile( self.getCatalogFullPath(includeLineMatch.group(“location”), self.catalogFolders) )
    File “./instaUp2Date.py”, line 319, in parseCatalogFile
    raise Exception(‘Error in config file: %s line number: %i\n%s’ % (fileLocation, lineNumber, line)) # TODO: improve error handling
    Exception: Error in config file: /Users/dbong/desktop/instadmg/addons/instaup2date/catalogfiles/common.catalog line number: 2
    [/code]

    My common.catalog code:

    [code]# This is the catalog for packages shared between all images.
     
    include-file: /Users/dbong/desktop/instadmg/addons/instaup2date/catalogfiles/10.6_vanilla.catalog
    # Output Volume Name = Macintosh HD
    # Output File Name = Common-1.0.0
     
    Base OS Disk:
    # the first one should be disk 1 of an installer disk
    # this is not yet implimented
     
    System Settings:
     
    Third Party Software:

    clear Registration clearReg.dmg sha1:0cf3080cc0179fe63883e40a180f6a92b573fd70
     
    Firefox Firefox.dmg sha1:0e7b963b28d11ab8ffbf776b88cbe68a3efcf62a

    googlechrome googlechrome.dmg sha1:ca4e937dfe5ccff1e5b1b5bcae5b3c31b6999237

    stuffitexpander stuffitexpander.dmg sha1:afcc9e14029086b5239e44d33babc1259c54a377 

    Apple Updates:
     
     
    Software Settings:
    [/code]

    Maybe I need to remove the random comments in the files?

    #381520
    db1021
    Participant

    ah ha! it was too much copying and pasting off the web or something w/ the common.catalog file!

    I used Text Wrangler to manually remove and replace line breaks. Looks like there were some extra tabs or oddities in the code. Edited line 2, the error moved to line 5 .. repeated the fix until it now off and running verifying files and whatnot.

    #381521
    macanics
    Participant

    Have you checked:
    * items separated by tabs and not spaces in your catalog files?
    * the capitalisation of your path (all lower case may not be correct)

    The comments can be safely ignored, and the icons changing probably just mean that double-clicking them will now start TextWrangler rather than TextEdit.

    #381522
    Allister Banks
    Participant

    Good work! I knew you were most of your way there.

    Allister

    #381523
    macanics
    Participant

    Pesky invisible characters…

    #381525
    db1021
    Participant

    Pesky hidden characters indeed!!

    I got around another error by removing the problematic package ( stuff it expander ) from the catalog, but I’m curious as to why its failing at that step below. I hit “Y” when it prompted me to agree. Then it spits out the error lines and quits.

    [code]
    Working on folder 11 googlechrome (10:38:06)
    Mounting the package dmg: googlechrome.dmg (/private/tmp/idmg_temp.ACOrbw/items-PuJ8Xp/11 googlechrome) at: /private/tmp/idmg.Gars/idmg_mp.kQqI
    Folder 11 googlechrome done (10:38:17)
    Working on folder 12 stuffitexpander (10:38:17)
    Mounting the package dmg: stuffitexpander.dmg (/private/tmp/idmg_temp.ACOrbw/items-PuJ8Xp/12 stuffitexpander) at: /private/tmp/idmg.Gars/idmg_mp.eDWG
    Agree Y/N? Y
    ###### Unable to mount /private/tmp/idmg.Gars/idmg_mp.eDWG: Traceback (most recent call last):
    File “AddOns/InstaUp2Date/Resources/dmgMountHelper.py”, line 80, in
    actualMountPoint = dmgManager.mountImage(imageToMount, mountPoint=options.mountPoint, mountReadWrite=options.readWrite, shadowFile=None, paranoidMode=options.paranoidMode)
    File “/Users/mmadmin/Desktop/instadmg/AddOns/InstaUp2Date/Resources/volumeManager.py”, line 486, in mountImage
    process = managedSubprocess(command, processAsPlist=True)
    File “/Users/mmadmin/Desktop/instadmg/AddOns/InstaUp2Date/Resources/managedSubprocess.py”, line 55, in __init__
    raise RuntimeError(‘Unable to convert the “%s” output into a plist, got error: %s\nOutput was:\n%s\n’ % (‘ ‘.join(command), error, output))
    UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc2 in position 755: ordinal not in range(128) ######
    10:39:32 ###### Cleaning up ######
    Restoring normal installd daemon
    Restoring com.apple.installd daemon
    Ejecting images
    Deleting scratch DMG
    Traceback (most recent call last):
    File “./instaUp2Date.py”, line 716, in

    main()
    File “./instaUp2Date.py”, line 705, in main
    thisController.runInstaDMG(scratchFolder=options.instadmgScratchFolder, outputFolder=options.instadmgOutputFolder)
    File “./instaUp2Date.py”, line 472, in runInstaDMG
    raise RuntimeError(‘InstaDMG process did not run sucessfully’)
    RuntimeError: InstaDMG process did not run sucessfully
    [/code]

    #381526
    Allister Banks
    Participant

    Yeah, drag-drop installs that need you to accept a EULA don’t work(obviously), so I’d recommend opening disk utility and file-> new image-> from folder and navigate to the app. Then instaDMG will be able to drag-drop it into the apps folder for you when it runs without getting caught up.

    Allister

    #381527
    macanics
    Participant

    I stopped using StuffitExpander because of the appalling installers they’ve had over the years. I’d recommend [b]The Unarchiver[/b] instead h**p://wakaba.c3.cx/s/apps/unarchiver

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.

Comments are closed