dataJAR-recipes: Getting "module 'FoundationPlist' has no attribute 'readPlistFromString'" error
I had downloaded new Shared Device License installer packages for a number of Adobe Creative Cloud applications today (Wed Feb 12) and have had errors using Adobe2020Versioner.py importing all of them into munki.
- autopkg version 2.0.2
- munki version 4.0.1.3899
- dataJAR-recipes commit 2c7e7c93b4e966f565bd3c44c856ed3e311e1108
- macOS 10.14.6 18G3020
ladmin$ ~/ghq/github.com/autopkg/dataJAR-recipes/Adobe\ 2020/Adobe2020Importer.py munki
1 Adobe 2020 folder found, creating recipe list...
Looking for pkgs...
Found /Users/ladmin/Downloads/AdobeXD2020/Build/AdobeXD2020_Install.pkg...
Running recipe_list: `/Users/ladmin/Downloads/adobe2020_list.txt`
Running `['/usr/local/bin/autopkg', 'run', '-v', '--recipe-list', '/Users/ladmin/Downloads/adobe2020_list.txt', '--report-plist', '/Users/ladmin/Downloads/adobe2020_report.plist']`...
Processing local.munki.AdobeXD2020...
Adobe2020Versioner
Adobe2020Versioner: pkg /Users/ladmin/Downloads/AdobeXD2020/Build/AdobeXD2020_Install.pkg
Adobe2020Versioner: Processing /Users/ladmin/Downloads/AdobeXD2020/Build/AdobeXD2020_Install.pkg/Contents/Resources/optionXML.xml
Adobe2020Versioner: SAP Code: SPRK
Adobe2020Versioner: Installer is HyperDrive
Adobe2020Versioner: app_json: /Users/ladmin/Downloads/AdobeXD2020/Build/AdobeXD2020_Install.pkg/Contents/Resources/HD/SPRK27.0.12/Application.json
Adobe2020Versioner: Processing HD installer
Adobe2020Versioner: app_launch: [INSTALLDIR]/Adobe XD.app/Contents/MacOS/Adobe XD
Adobe2020Versioner: app_bundle: Adobe XD.app
Adobe2020Versioner: app_path: Adobe XD
Adobe2020Versioner: installed_path: /Applications/Adobe XD/Adobe XD.app
Adobe2020Versioner: display_name: Adobe XD 2020
Adobe2020Versioner: zip_file: coreAssets
Adobe2020Versioner: zip_path: /Users/ladmin/Downloads/AdobeXD2020/Build/AdobeXD2020_Install.pkg/Contents/Resources/HD/SPRK27.0.12/coreAssets.zip
Adobe2020Versioner: bundle_location: [StagingFolder]/mul
Traceback (most recent call last):
File "/Library/AutoPkg/autopkglib/__init__.py", line 673, in process
self.env = processor.process()
File "/Library/AutoPkg/autopkglib/__init__.py", line 480, in process
self.main()
File "/Users/ladmin/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes/Adobe 2020/Adobe2020Versioner.py", line 97, in main
self.process_installer()
File "/Users/ladmin/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes/Adobe 2020/Adobe2020Versioner.py", line 138, in process_installer
self.process_hd_installer()
File "/Users/ladmin/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes/Adobe 2020/Adobe2020Versioner.py", line 263, in process_hd_installer
data = FoundationPlist.readPlistFromString(plist)
AttributeError: module 'FoundationPlist' has no attribute 'readPlistFromString'
File "/Library/AutoPkg/autopkglib/__init__.py", line 673, in process
self.env = processor.process()
module 'FoundationPlist' has no attribute 'readPlistFromString'
Failed.
Receipt written to /Users/ladmin/Library/AutoPkg/Cache/local.munki.AdobeXD2020/receipts/local.munki-receipt-20200212-163010.plist
The following recipes failed:
local.munki.AdobeXD2020
Error in local.munki.AdobeXD2020: Processor: Adobe2020Versioner: Error: module 'FoundationPlist' has no attribute 'readPlistFromString'
Nothing downloaded, packaged or imported.
Report plist saved to /Users/ladmin/Downloads/adobe2020_report.plist.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (17 by maintainers)
Success! Your recent patches seem to have worked flawlessly. Thank you so much.
I do not have an autopkg v1 instance immediately at hand, but that would explain why I am seeing that now but not the last time I had used the Adobe2020*.py scripts. I had forgotten that in the intervening days/weeks I had upgraded to autopkg v2.
I will need to set up a VM with autopkg v1 to do the test, likely I will not have a chance to complete the run until tomorrow, but I will try for this evening if I can.