Hi,
I am getting this error:
This is the strucutre of my app:
Each have an ‘init.py’ file:
The first 2 are empty, the app’s ‘init.py’ file looks like this:
The viktor.config.toml looks like this:
What is the solution?
Thanks,
Charlie
Hi,
I am getting this error:
This is the strucutre of my app:
Each have an ‘init.py’ file:
The first 2 are empty, the app’s ‘init.py’ file looks like this:
The viktor.config.toml looks like this:
What is the solution?
Thanks,
Charlie
Hi Charlie, I will send you a DM
The issue was a Windows resource that could not be opened in production (Linux):
ImageFont.truetype('arial.ttf', 30)
This should be solved by copying the ‘arial.ttf’ file into the repository and providing a relative path:
ImageFont.truetype(str(Path(__file__).parent / 'arial.ttf'), 30)
Hi,
I also get this error. I only seem to get it when I try to add a Storage to the application (not sure).
Could you help me out?
KR. Jan
Hi Jan,
I am seeing an error related to Storage indeed, can you successfully start the app in local development?
The error is about Storage
that can only be initialized in a job call of an app. It can not be initialized outside of the app context, for example:
from viktor.core import Storage
Storage() # will raise "Job token is not set"