Open AlexanderZeilmann opened 8 months ago
This issue with Python 3.11 also came up on the 3D Slicer forum. See https://discourse.slicer.org/t/openslide-python-not-working-when-trying-to-use-monailabel/33427.
The monai
backend requires a specific openslide-python
that does not have any Python 3.11 whl files on PyPI and the user fails to have all the dependencies to build it successfully from source.
Hi @AlexanderZeilmann,
Thanks for opening this issue.
As @jamesobutler, commented, MONAI Label hasn't been tested on Python 3.11 yet.
It is tested on Python 3.10 as you can see here: https://github.com/Project-MONAI/MONAI/blob/865972f7a791bf7b42efbcd87c8402bd865b329e/setup.cfg#L26
I'd recommend working with a Python env on version 3.9 or 3.10 or working with the MONAI Label Docker container: https://hub.docker.com/layers/projectmonai/monailabel/latest/images/sha256-e91d3a715c0381545bd88605b6ef61e73df30fe32f3fcc2c38e4c6e9a5a0f810?context=explore#!
More information about the Docker container is here: https://github.com/Project-MONAI/MONAILabel#development-version
Hope this helps,
I have written up https://github.com/Project-MONAI/MONAI/issues/7335 to encourage a newer version of python-openslide
so that Python 3.11 can be used without running into issues of certain dependencies failing to build/install.
Describe the bug monailabel cannot be install in python 3.11. See also #1454.
Server logs
To Reproduce Steps to reproduce the behavior:
pip install monailabel
Expected behavior monailabel should work with python 3.11
Other solutions Downgrading to python 3.10 works in some environments, but often the python version cannot be influenced and this is only a temporary solution.