Please share the full error message verbatim and your code.
Also, please open a new topic for your problem. Even if it turns out that you have the exact same problem it’s too complicated to troubleshoot 2 environments at the same time.
I don’t know much about handling Python dependencies, but it looks like the version of PIL the docker image comes with (or it’s a peer dependency) isn’t compatible with the version of NumPy in the requirements.txt
gitpod /workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/PIL $ cat _typing.py
from __future__ import annotations
import os
import sys
from typing import Any, Protocol, Sequence, TypeVar, Union
try:
import numpy.typing as npt
NumpyArray = npt.NDArray[Any]
If I downgrade to 9.5.0 it seems to work, but all I did was run python main.py without any code changes, so I don’t know if it breaks anything else.
python -m pip install "Pillow==9.5.0"
Not sure if NumPy should be updated or Pillow should be downgraded, but I didn’t want to start trying a bunch of different NumPy versions.
As this happens out of the box with our Gitpod boilerplate, I will open an issue for it.