PackageNotFoundError

**Sorry, I’m feeling like such a noob to be asking help for each step thus far. But I’m having trouble getting my working local code to run as a server module. When I try to run I get the error below. Is this because it’s having trouble with the python-pptx package or with the PPTX asset that I saved and am referencing? **

Thanks very much in advance!

Code Sample:

PackageNotFoundError: Package not found at '_/theme/template.pptx'
at /home/anvil/.env/lib/python3.10/site-packages/pptx/opc/serialized.py:135
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/opc/serialized.py:49
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/util.py:215
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/opc/serialized.py:35
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/opc/package.py:203
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/util.py:215
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/opc/package.py:219
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/util.py:215
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/opc/package.py:190
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/opc/package.py:186
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/opc/package.py:157
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/opc/package.py:73
called from /home/anvil/.env/lib/python3.10/site-packages/pptx/api.py:28
called from ServerModule1, line 28
called from Form2, line 15

Clone link:
share a copy of your app

Is it possible that I can not store a .pptx under assets? Do I need to upload it to google drive or something similar to make it usable?

I figured it out, the problem was indeed that I was using assets for files. I’m now using Data Files to reference .sql and .pptx files and I think this works.

2 Likes