Installing problems - Loading Viktor SDK PosixPath TypeError

When starting an older application I receive the following error while starting the application:

The logic hasn’t changed as far as I know. I do use WSL Ubuntu to run the Linux version on windows.
Any idea what could cause this problem?

EDIT: I think this happend due to a change in the requirements: pathlib~=1.0.1. It shouldn’t be part of the requirements, but it most likely caused the problem.

Hi Johan, did you re-install your app?

also, can you share your SDK and Connector version (logged in terminal under VIKTOR logo)

image

Using following requirements.txt

viktor==11.21.0

plotly~=5.2.1
lxml~=4.6.2
openpyxl~=3.0.7
python-docx~=0.8.11
psutil~=5.8.0
kaleido~=0.2.1
chardet

matplotlib~=3.3.4
pandas~=1.2.1
numpy~=1.20.0
munch~=2.5.0
pytz~=2020.1
pathlib~=1.0.1
docx~=0.2.4
requests~=2.25.1
Shapely~=1.7.1

I removed some of the packages and now it works fine. So probably pathlib (as it is a default Python package)

I indeed think the outdated pathlib is the cause of this problem. Pathlib is a package that was not included in earlier version of Python 3. From the documentation of v1.0.1:

This module is best used with Python 3.2 or later, but it is also compatible with Python 2.6 and 2.7.

This module has been included in the Python 3.4 standard library after PEP 428 acceptance. You only need to install it for Python 3.3 or older.

(pathlib — pathlib 1.0.1 documentation)