keeleysam / instadmg

Automatically exported from code.google.com/p/instadmg
0 stars 0 forks source link

instaUp2Date.py gives error "unexpected keyword argument 'reportProgress'" #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn checkout http://instadmg.googlecode.com/svn/trunk instadmg
2. Mount Snow Leopard DVD
3. sudo ./instadmg/AddOns/InstaUp2Date/importDisk.py --automatic --legacy
4. sudo ./instadmg/AddOns/InstaUp2Date/instaUp2Date.py 10.6_vanilla --process

What is the expected output? What do you see instead?
I expected to "Collect a fully patched,“10.6.2 Vanilla.dmg”, in 
./instadmg/OutputFiles!" as suggested in "InstaDMG Guide 1.6b2"

Instead, I received an error message: "TypeError: cheksumFileObject() got an 
unexpected keyword argument 'reportProgress'"

What version of InstaDMG are you running? What revision number (this should
be the second line of your package log)?

Checked out revision 318.

What OS are you running on (booted from)?
Mac OSX 10.6.4

What OS are you installing?
Mac OSX 10.6.4

Please provide any additional information below.

To work around the problem I changed a line in instaUp2Date.py 

    checksum.cheksumFileObject(hashGenerator, readFile, fileName, expectedLength, copyToPath=targetFilePath, reportProgress=True, tabsToPrefix=1)

to 

    checksum.cheksumFileObject(hashGenerator, readFile, fileName, expectedLength, copyToPath=targetFilePath)

In fact, it complains about both reportProgress and tabsToPrefix.  When I 
removed reportProgress, it then failed on tabsToPrefix, so both must be removed.

I'll attach a copy of my terminal session so you can see exactly what I did.

Original issue reported on code.google.com by paulbl...@gmail.com on 15 Jul 2010 at 8:57

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry about that, I missed a path while back-porting some things from a trial 
version. Rev319 has a fix for this.

Original comment by kuehn.k...@gmail.com on 16 Jul 2010 at 4:14