-
Notifications
You must be signed in to change notification settings - Fork 55
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
AttributeError: module 'collections' has no attribute 'Hashable' #261
Comments
Did you resolve it? |
@probablyArth Nope. |
Bumping, having identical issue. Is this module still being supported? OP opened the issue in June. |
I don't think it is still being supported |
So my workaround is to go into memoize.py and just comment out lines 24 and 27 since the function is basically failing to check for that hashtable (collections doesn't have a hashtable attribute). I won't claim to know what this does because I don't have to time to unravel the entire module, so make sure you test thoroughly, but I'm not seeing any issues so far. I'm then able to run PyDocX successfully using the Exporter class:
|
Thanks man. |
This looks like a python2 to python3 issue. |
I'm having the same problem as OP. $ pydocx --html file-sample_1MB.docx output.html |
I met the same problem. The environment:
I fixed it by following: Line 24 in 98c6aa6
to: if not isinstance(args, collections.abc.Hashable):
# uncacheable. a list, for instance.
# better to not cache than blow up.
return self.func(*args) |
Python 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0] on linux
The text was updated successfully, but these errors were encountered: