OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

I got the error message PackageNotFoundError("Package not found at '%s'" % pkg_file) using docxtpl

  • Thread starter Thread starter jennajenna
  • Start date Start date
J

jennajenna

Guest
I tried following a YouTube tutorial about using Python and docxtpl to automate MS Word content, but this message popped up 'PackageNotFoundError("Package not found at '%s'" % pkg_file)'. I have checked that the .docx file is in my project file and is not empty as I have a template in the file, I also tried to close the docx file while running the program but it didn't work, it's also not in any virtual environments. What have I done wrong here?

I expect there should be no error.

screenshot_codes
<p>I tried following a YouTube tutorial about using Python and docxtpl to automate MS Word content, but this message popped up 'PackageNotFoundError("Package not found at '%s'" % pkg_file)'. I have checked that the .docx file is in my project file and is not empty as I have a template in the file, I also tried to close the docx file while running the program but it didn't work, it's also not in any virtual environments. What have I done wrong here?</p>
<p>I expect there should be no error.</p>
<p><a href="https://i.sstatic.net/93PJh3KN.png" rel="nofollow noreferrer">screenshot_codes</a></p>
 

Latest posts

Online statistics

Members online
0
Guests online
4
Total visitors
4
Top