chaonan99 / ppt_presenter

Convert ppt to video with audio track, using text to speech synthesis
https://www.youtube.com/watch?v=kMCZuAwFOVI
55 stars 18 forks source link

AttributeError: 'module' object has no attribute 'TemporaryDirectory' #5

Open PatelBassar opened 4 years ago

PatelBassar commented 4 years ago

I am getting Error as below. AttributeError: 'module' object has no attribute 'TemporaryDirectory'

chaonan99 commented 4 years ago

What's the full traceback?

PatelBassar commented 4 years ago

Traceback (most recent call last): File "ppt_presenter.py", line 71, in main() File "ppt_presenter.py", line 67, in main ppt_presenter(args.pptx, args.pdf, args.output) File "ppt_presenter.py", line 24, in ppt_presenter with tempfile.TemporaryDirectory() as temp_path: AttributeError: 'module' object has no attribute 'TemporaryDirectory'

chaonan99 commented 4 years ago

Looks like you are using python 2. You can try to change TemporaryDirectory to tempdir: https://docs.python.org/2/library/tempfile.html

PatelBassar commented 4 years ago

Traceback (most recent call last): File "ppt_presenter.py", line 71, in main() File "ppt_presenter.py", line 67, in main ppt_presenter(args.pptx, args.pdf, args.output) File "ppt_presenter.py", line 24, in ppt_presenter with tempfile.tempdir() as temp_path: TypeError: 'NoneType' object is not callable