ProgrammingHero1 / audiobook

288 stars 219 forks source link

FileNotFoundError #18

Closed Yabaha1 closed 3 years ago

Yabaha1 commented 3 years ago

Hi, Thank you for this code, but I am stuck when I want to run print(pages), it shows the following in my terminal: Traceback (most recent call last): File "P:\Python Projects\AudioBook\main.py", line 3, in book = open("RichDadVsPoorDad.pdf") FileNotFoundError: [Errno 2] No such file or directory: 'RichDadVsPoorDad.pdf'

PS: I am using Atom as IDE

Yabaha1 commented 3 years ago

Oh, just solved it. Thank you. it was surely reading another directory instead of looking for my File in "P:\Python Projects\AudioBook\main.py", since I had another project open :( :).