I try to start python-pptx
, but I have Error:
AttributeError: module 'collections' has no attribute 'Container'
in File "...\lib\site-packages\pptx_init_.py", line 14
Use Python 3.10, python-pptx (0.6.21), lxmx (4.6.3).
I try to start python-pptx
, but I have Error:
AttributeError: module 'collections' has no attribute 'Container'
in File "...\lib\site-packages\pptx_init_.py", line 14
Use Python 3.10, python-pptx (0.6.21), lxmx (4.6.3).
It's a known issue for Python 3.10 as discussed in this issue. The workaround is to import both modules collections
and
collections.abc
before importing pptx
. For example:
import collections
import collections.abc
from pptx import Presentation
This should resolve this error
© 2022 - 2024 — McMap. All rights reserved.