Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element has no attrobute #196

Open
itsupportzf opened this issue Jul 18, 2022 · 6 comments · May be fixed by jssimporter/python-jss#114
Open

Element has no attrobute #196

itsupportzf opened this issue Jul 18, 2022 · 6 comments · May be fixed by jssimporter/python-jss#114

Comments

@itsupportzf
Copy link

JSSImporter: Copied '/Users/mluffy/Library/AutoPkg/Cache/com.github.novaksam.jss.Evernote/Evernote-10.40.9.pkg'
'Element' object has no attribute 'getchildren'
Failed.
Receipt written to /Users/mluffy/Library/AutoPkg/Cache/com.github.novaksam.jss.Evernote/receipts/Evernote.jss-receipt-20220718-172643.plist

The following recipes failed:
Evernote.jss.recipe
Error in com.github.novaksam.jss.Evernote: Processor: JSSImporter: Error: 'Element' object has no attribute 'getchildren'

Above is the error i get whenever i try to push a new .pkg. i am on the latest jssimporter. please advice. OS12.4

@user1233445
Copy link

I receive the same error message

@stewiem2000
Copy link

In case anyone else wants to fix this before transitioning over to e.g. JamfUploader, the getchildren() call is deprecated and /Library/AutoPkg/JSSImporter/jss/jssobject.py needs all (four) instances of foo.getchildren() updating to list(foo).

@grahampugh
Copy link
Member

@stewiem2000 if you submit a PR with the changes you have made to make it work, I will try and create a new release.

@stewiem2000
Copy link

I think I've done now done that @grahampugh — appologies if I've messed it up :)

@stewiem2000
Copy link

Hah! And now I find the exact same changes (and more) in another pull request 🤦‍♂️

@novaksam
Copy link
Contributor

I think I encountered some issues in the XML response parsing that break things further down the line, but I've reverted to 2.6 (or earlier, I don't remember) as I'm going to convert my stuff to jamf uploader policies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants