Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.3K
Views
Fail: AttributeError: module 'collections' has no attribute 'Container'

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).

Please, help me.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

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

over 4 years ago · Santiago Trujillo Report

0

Problem solved, i chanched python 3.10 to python 3.9.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!