Closed jlaura closed 3 years ago
@jlaura , thanks for reporting this issue! I'm guessing you're using Python 3.9 because it looks like the .getchildren()
method has been deprecated for a while, and was finally removed in 3.9. I'll see about getting a fix for this (the main maintainer is off for a couple weeks, so it might wait until then), but in the meantime, it should work fine in Python 3.8 or older.
@nikmolnar Sounds great! I would not have known to look for a deprecated XML method. I'm spoiled getting work a bunch on the JSON side of things usually. 😉
The workaround will work great so no rush here and many thanks for the info.
Edit: I downgraded my condo env to py=3.8 and this worked beautifully! Thanks again.
This has been fixed in gis-metadata-parser version 1.2.5
by requiring parserutils version 1.2.3
. For previous versions you can also just update parserutils this way: pip install parserutils --upgrade
.
I am trying to serialize my own fgdc file and am seeing the following when attempting to serialize:
I have tracked this down to an issue in the data_map on the
contacts
key. I assumed that the issue was my metadata file (perhaps I missed a key?) so I went here and pulled an example rom fgdc.gov. I am seeing the same error attempting to serialize. GitHub is not supporting an xml upload though I can upload the file as plaintext.Here is the code that I am using:
Perhaps this is operator error or a lack of understanding about how to serialize the data?
As an aside, I have very much appreciated working with this library and using it to get programatic access to the metadata records. Thanks to the maintainers!