Open dmirandaUSGS opened 1 month ago
Dan, For those of us who have not updated Pro yet, and may not for a while, could you add a try block and see if that works?
try:
from collections import Sequence
except:
from collections.abc import Sequence
If that works for you, I will make the edit on my end and push it out.
The try-except block as written works in Pro 3.3.
Excellent! Thank you. I will put it in the next release.
I am using the latest version of Docx to DMU,
GeMS_DocxToDMU.py, version of 5/8/24
. The tool works in Pro 3.2.x, but fails in 3.3. I get the following message:I was able to get the tool to work by opening section.py and changing the import statement on line 7 to
from collections.abc import Sequence
. It seems like Sequence was moved from Collections to Collections.abc across the version of Python Pro 3.3 is now using.The tool appears to work, and I get a DMU table that looks correct, but I am not sure if this is all that needs to be adjusted.