scanny / python-pptx

Create Open XML PowerPoint documents in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'collections' has no attribute 'Container'

zchunter opened this issue · comments

commented

I ran into an error when running through the hello world demo for PPTX. It appears that as of Python 3.10, there is an error of AttributeError: module 'collections' has no attribute 'Container' when attempting to run the line from pptx import Presentation

Looking into it, this can be resolved by adding:

import collections
import collections.abc

Sharing in case you want to update the hello world demo!

What version are you running @zchunter? Pretty sure that was fixed a while ago now.

commented

No worries Zach, glad you got it working :)