quickpkg icon indicating copy to clipboard operation
quickpkg copied to clipboard

Throwing a Syntax Error

Open Honestpuck opened this issue 3 years ago • 3 comments

I'm using version 0.8.1 and have pointed the shebang to the latest version of Managed Python (/Library/ManagedFrameworks/Python/Python3.framework/Versions/Current/bin/python3).

I'm getting:

./quickpkg ~/Downloads/Notion-2.0.24.dmg
  File "/Users/tonyw/Dropbox/work/quickpkg-0.8.1/./quickpkg", line 126
    except NSPropertyListSerializationException, error:
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized

1.0beta throws a different error :

./quickpkg ~/Downloads/Notion-2.0.24.dmg
Traceback (most recent call last):
  File "/Users/tonyw/Dropbox/work/quickpkg-1.0beta/./quickpkg", line 277, in <module>
    dmgvolumepaths = attachdmg(item_path)
  File "/Users/tonyw/Dropbox/work/quickpkg-1.0beta/./quickpkg", line 88, in attachdmg
    (theplist, alltext) = getFirstPlist(info_result["stdout"])
  File "/Users/tonyw/Dropbox/work/quickpkg-1.0beta/./quickpkg", line 52, in getFirstPlist
    plist_start_index = textString.find(plist_header)
TypeError: argument should be integer or bytes-like object, not 'str'

Honestpuck avatar Aug 09 '22 06:08 Honestpuck

I've had this problem on two different computers now.

Honestpuck avatar Aug 10 '22 06:08 Honestpuck

Have you tried the 1.0 pre-release version? https://github.com/scriptingosx/quickpkg/releases/tag/v1.0beta

scriptingosx avatar Aug 10 '22 07:08 scriptingosx

Yes. It throws a different error that I detailed above.

Honestpuck avatar Aug 10 '22 08:08 Honestpuck

can you check this with the 1.0 release? Thank you

scriptingosx avatar Jan 06 '23 08:01 scriptingosx

Testing the 1.0 release on Apple Silicon using the latest managed Python worked perfectly.

❯ ./quickpkg ~/Downloads/Notion-2.1.11-arm64.dmg
Notion-2.1.11.pkg

Honestpuck avatar Jan 06 '23 09:01 Honestpuck