pwoznicki / AutoRadiomics

The easiest tool for experimenting with radiomics features.
Apache License 2.0
36 stars 10 forks source link

unsupported operand type for python 3.9 #29

Open jonasboh opened 1 year ago

jonasboh commented 1 year ago

I get the following error for several files by applying the example in the repo. TypeError: unsupported operand type(s) for |: 'type' and 'types.GenericAlias'

laqua-stack commented 1 year ago

Dear @jonasboh, thank you very much for reporting this issue!

Could you maybe give some more details on the used environment (e.g. output of conda list)? Could you maybe report also the traceback from the console?

Did you use the source code? Did you use the docker image?

Thanks in advance!

laqua-stack commented 1 year ago

This may be related to this issue: Issue #86399 Pipes as alias for Union in typings (PEP604) seem to be introduced first in Python 3.10.

jonasboh commented 1 year ago

Dear @laqua-stack,

thanks for the fast response. I used the source code and configured several files. Simple replacing of the operator | to or works. My list of installed packages in conda is quite long but I am happy to share :-).

Best, Jonas

Name Version Build Channel _anaconda_depends 2022.10 py39_2 _libgcc_mutex 0.1 main _openmp_mutex 5.1 1_gnu absl-py 1.4.0 pypi_0 pypi aiohttp 3.8.1 py39hb9d737c_1 conda-forge aiosignal 1.3.1 pyhd8ed1ab_0 conda-forge alabaster 0.7.12 pyhd3eb1b0_0 alembic 1.8.1 pypi_0 pypi altair 4.2.2 pypi_0 pypi anaconda custom py39_1 anyio 3.5.0 py39h06a4308_0 appdirs 1.4.4 pyhd3eb1b0_0 argon2-cffi 21.3.0 pyhd3eb1b0_0 argon2-cffi-bindings 21.2.0 py39h7f8727e_0 argparse 1.4.0 pypi_0 pypi arrow 1.2.3 py39h06a4308_1 astroid 2.14.2 py39h06a4308_0 astropy 5.1 py39h7deecbd_0 asttokens 2.2.1 pypi_0 pypi astunparse 1.6.3 pypi_0 pypi async-timeout 4.0.2 pyhd8ed1ab_0 conda-forge atomicwrites 1.4.0 py_0 attrs 22.1.0 py39h06a4308_0 automat 20.2.0 py_0 autopage 0.5.1 pypi_0 pypi autopep8 1.6.0 pyhd3eb1b0_1 autorad 0.2.6 pypi_0 pypi babel 2.11.0 py39h06a4308_0 backcall 0.2.0 pyhd3eb1b0_0 backports 1.1 pyhd3eb1b0_0 batchgenerators 0.24 pypi_0 pypi bcrypt 3.2.0 py39h5eee18b_1 beautifulsoup4 4.11.1 py39h06a4308_0 binaryornot 0.4.4 pyhd3eb1b0_1 bitarray 2.5.1 py39h5eee18b_0 bkcharts 0.2 py39h06a4308_1 black 22.6.0 py39h06a4308_0 blas 1.0 mkl bleach 4.1.0 pyhd3eb1b0_0 blinker 1.5 pypi_0 pypi blobfile 2.0.1 pypi_0 pypi blosc 1.21.3 h6a678d5_0 bokeh 2.4.3 py39h06a4308_0 boruta 0.3 pypi_0 pypi boto3 1.24.28 py39h06a4308_0 botocore 1.27.59 py39h06a4308_0 bottleneck 1.3.5 py39h7deecbd_0 bounded-pool-executor 0.0.3 pypi_0 pypi brotli 1.0.9 h5eee18b_7 brotli-bin 1.0.9 h5eee18b_7 brotlipy 0.7.0 py39h27cfd23_1003 brunsli 0.1 h2531618_0 bzip2 1.0.8 h7b6447c_0 c-ares 1.18.1 h7f8727e_0 ca-certificates 2022.12.7 ha878542_0 conda-forge cachetools 5.3.0 pyhd8ed1ab_0 conda-forge certifi 2022.12.7 pyhd8ed1ab_0 conda-forge cffi 1.15.1 py39h74dc2b5_0 cfitsio 3.470 hf0d0db6_6 chardet 4.0.0 py39h06a4308_1003 charls 2.2.0 h2531618_0 charset-normalizer 2.0.4 pyhd3eb1b0_0 click 8.0.4 py39h06a4308_0 cliff 4.0.0 pypi_0 pypi cloudpickle 2.0.0 pyhd3eb1b0_0 clyent 1.2.2 py39h06a4308_1 cmaes 0.9.1 pypi_0 pypi cmd2 2.4.2 pypi_0 pypi colorama 0.4.6 py39h06a4308_0 colorcet 3.0.1 py39h06a4308_0 colorlog 6.7.0 pypi_0 pypi comm 0.1.2 py39h06a4308_0 conda 22.9.0 py39h06a4308_0 conda-package-handling 2.0.2 py39h06a4308_0 conda-package-streaming 0.7.0 py39h06a4308_0 constantly 15.1.0 pyh2b92418_0 cookiecutter 1.7.3 pyhd3eb1b0_0 cryptography 39.0.1 py39h9ce1e76_0 cssselect 1.1.0 pyhd3eb1b0_0 cudatoolkit 11.3.1 h2bc3f7f_2 curl 7.87.0 h5eee18b_0 cycler 0.11.0 pyhd3eb1b0_0 cython 0.29.33 py39h6a678d5_0 cytoolz 0.12.0 py39h5eee18b_0 daal4py 2023.0.2 py39h79cecc1_0 dal 2023.0.1 hdb19cb5_26647 dall-e 0.1 pypi_0 pypi dask 2022.2.1 pyhd3eb1b0_0 dask-core 2022.2.1 pyhd3eb1b0_0 databricks-cli 0.17.4 pypi_0 pypi dataclasses 0.6 pypi_0 pypi datashader 0.14.4 py39h06a4308_0 datashape 0.5.4 py39h06a4308_1 dbus 1.13.18 hb2f20db_0 debugpy 1.5.1 py39h295c915_0 decorator 5.1.1 pyhd3eb1b0_0 defusedxml 0.7.1 pyhd3eb1b0_0 diff-match-patch 20200713 pyhd3eb1b0_0 dill 0.3.6 py39h06a4308_0 distributed 2022.2.1 pyhd3eb1b0_0 docker 6.0.1 pypi_0 pypi docopt 0.6.2 pypi_0 pypi docstring-to-markdown 0.11 pypi_0 pypi docutils 0.18.1 py39h06a4308_3 entrypoints 0.4 py39h06a4308_0 et_xmlfile 1.1.0 py39h06a4308_0 executing 1.2.0 pypi_0 pypi expat 2.4.9 h6a678d5_0 filelock 3.9.0 py39h06a4308_0 flake8 6.0.0 pypi_0 pypi flaml 1.0.13 pypi_0 pypi flask 2.2.2 py39h06a4308_0 flatbuffers 23.1.21 pypi_0 pypi flit-core 3.6.0 pyhd3eb1b0_0 fontconfig 2.14.1 h52c9d5c_1 fonttools 4.25.0 pyhd3eb1b0_0 freetype 2.12.1 h4a9f257_0 frozenlist 1.3.3 py39h5eee18b_0 fsspec 2022.11.0 py39h06a4308_0 gast 0.4.0 pypi_0 pypi gensim 4.3.0 py39h6a678d5_0 giflib 5.2.1 h5eee18b_3 gitdb 4.0.10 pypi_0 pypi gitpython 3.1.31 pypi_0 pypi glib 2.69.1 h4ff587b_1 gmp 6.2.1 h295c915_3 gmpy2 2.1.2 py39heeb90bb_0 google 3.0.0 pypi_0 pypi google-api-core 2.8.1 pyhd8ed1ab_0 conda-forge google-api-python-client 2.79.0 pyhd8ed1ab_0 conda-forge google-auth 2.16.1 pyh1a96a4e_0 conda-forge google-auth-httplib2 0.1.0 pyhd8ed1ab_1 conda-forge google-auth-oauthlib 0.4.6 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi googleapis-common-protos 1.57.0 py39hf3d152e_0 conda-forge greenlet 2.0.1 py39h6a678d5_0 gst-plugins-base 1.14.1 h6a678d5_1 gstreamer 1.14.1 h5eee18b_1 gunicorn 20.1.0 pypi_0 pypi h5py 3.7.0 py39h737f45e_0 hdf5 1.10.6 hb1b8bf9_0 heapdict 1.0.1 pyhd3eb1b0_0 holoviews 1.15.4 py39h06a4308_0 htmlmin 0.1.12 pyhd3eb1b0_1 httplib2 0.21.0 pyhd8ed1ab_0 conda-forge hvplot 0.8.2 py39h06a4308_0 hyperlink 21.0.0 pyhd3eb1b0_0 icu 58.2 he6710b0_3 idna 3.4 py39h06a4308_0 imagecodecs 2021.8.26 py39hfcb8610_2 imagehash 4.3.1 pypi_0 pypi imageio 2.19.3 py39h06a4308_0 imagesize 1.4.1 py39h06a4308_0 imbalanced-learn 0.9.1 pypi_0 pypi imblearn 0.0 pypi_0 pypi importlib-metadata 4.11.3 py39h06a4308_0 importlib-resources 5.12.0 pypi_0 pypi importlib_metadata 4.11.3 hd3eb1b0_0 incremental 21.3.0 pyhd3eb1b0_0 inflection 0.5.1 py39h06a4308_0 iniconfig 1.1.1 pyhd3eb1b0_0 intake 0.6.7 py39h06a4308_0 intel-openmp 2021.4.0 h06a4308_3561 intervaltree 3.1.0 pyhd3eb1b0_0 ipykernel 6.19.2 py39hb070fc8_0 ipyparallel 8.4.1 pypi_0 pypi ipython 8.10.0 pypi_0 pypi ipython_genutils 0.2.0 pyhd3eb1b0_1 ipywidgets 7.6.5 pyhd3eb1b0_1 isodate 0.6.1 pypi_0 pypi isort 5.9.3 pyhd3eb1b0_0 itemadapter 0.3.0 pyhd3eb1b0_0 itemloaders 1.0.4 pyhd3eb1b0_1 itk 5.3.0 pypi_0 pypi itk-core 5.3.0 pypi_0 pypi itk-filtering 5.3.0 pypi_0 pypi itk-io 5.3.0 pypi_0 pypi itk-numerics 5.3.0 pypi_0 pypi itk-registration 5.3.0 pypi_0 pypi itk-segmentation 5.3.0 pypi_0 pypi itsdangerous 2.0.1 pyhd3eb1b0_0 jdcal 1.4.1 pyhd3eb1b0_0 jedi 0.18.2 pypi_0 pypi jeepney 0.7.1 pyhd3eb1b0_0 jellyfish 0.9.0 py39h7f8727e_0 jinja2 3.1.2 py39h06a4308_0 jinja2-time 0.2.0 pyhd3eb1b0_3 jmespath 0.10.0 pyhd3eb1b0_0 joblib 1.1.1 py39h06a4308_0 jpeg 9e h7f8727e_0 jq 1.6 h27cfd23_1000 json5 0.9.6 pyhd3eb1b0_0 jsonschema 3.2.0 pypi_0 pypi jupyter 1.0.0 py39h06a4308_8 jupyter_client 7.4.9 py39h06a4308_0 jupyter_console 6.4.4 py39h06a4308_0 jupyter_core 5.2.0 py39h06a4308_0 jupyter_server 1.23.4 py39h06a4308_0 jupyterlab 3.5.3 py39h06a4308_0 jupyterlab_pygments 0.1.2 py_0 jupyterlab_server 2.19.0 py39h06a4308_0 jupyterlab_widgets 1.0.0 pyhd3eb1b0_1 jupytext 1.14.5 pypi_0 pypi jxrlib 1.1 h7b6447c_2 keras 2.11.0 pypi_0 pypi keyring 23.4.0 py39h06a4308_0 kiwisolver 1.4.4 py39h6a678d5_0 krb5 1.19.4 h568e23c_0 lazy-object-proxy 1.6.0 py39h27cfd23_0 lcms2 2.12 h3be6417_0 ld_impl_linux-64 2.38 h1181459_1 lerc 3.0 h295c915_0 libaec 1.0.4 he6710b0_1 libbrotlicommon 1.0.9 h5eee18b_7 libbrotlidec 1.0.9 h5eee18b_7 libbrotlienc 1.0.9 h5eee18b_7 libclang 15.0.6.1 pypi_0 pypi libcurl 7.87.0 h91b91d3_0 libdeflate 1.17 h5eee18b_0 libedit 3.1.20221030 h5eee18b_0 libev 4.33 h7f8727e_1 libevent 2.1.12 h8f2d780_0 libffi 3.3 he6710b0_2 libgcc-ng 11.2.0 h1234567_1 libgfortran-ng 7.5.0 ha8ba4b0_17 libgfortran4 7.5.0 ha8ba4b0_17 libgomp 11.2.0 h1234567_1 libidn2 2.3.2 h7f8727e_0 libllvm10 10.0.1 hbcb73fb_5 libllvm11 11.1.0 h9e868ea_6 libnghttp2 1.46.0 hce63b2e_0 libpng 1.6.37 hbc83047_0 libpq 12.9 h16c4e8d_3 libprotobuf 3.15.8 h780b84a_1 conda-forge libsodium 1.0.18 h7b6447c_0 libspatialindex 1.9.3 h2531618_0 libssh2 1.10.0 h8f2d780_0 libstdcxx-ng 11.2.0 h1234567_1 libtiff 4.5.0 h6a678d5_2 libunistring 0.9.10 h27cfd23_0 libuuid 1.41.5 h5eee18b_0 libwebp 1.2.4 h11a3e52_1 libwebp-base 1.2.4 h5eee18b_1 libxcb 1.15 h7f8727e_0 libxkbcommon 1.0.1 hfa300c1_0 libxml2 2.9.14 h74e7548_0 libxslt 1.1.35 h4e12654_0 libzopfli 1.0.3 he6710b0_0 lightgbm 3.3.3 pypi_0 pypi line-profiler 4.0.2 pypi_0 pypi linecache2 1.0.0 pypi_0 pypi llvmlite 0.39.1 py39he621ea3_0 locket 1.0.0 py39h06a4308_0 lxml 4.9.1 py39h1edc446_0 lz4-c 1.9.4 h6a678d5_0 lzo 2.10 h7b6447c_2 mako 1.2.4 pypi_0 pypi markdown 3.4.1 py39h06a4308_0 markdown-it-py 2.2.0 pypi_0 pypi markupsafe 2.1.1 py39h7f8727e_0 matplotlib 3.5.0 pypi_0 pypi matplotlib-inline 0.1.6 py39h06a4308_0 matplotlib-venn 0.11.7 pypi_0 pypi mccabe 0.7.0 pyhd3eb1b0_0 mdit-py-plugins 0.3.4 pypi_0 pypi mdurl 0.1.2 pypi_0 pypi medpy 0.4.0 pypi_0 pypi memory-profiler 0.61.0 pypi_0 pypi missingno 0.4.2 pyhd3eb1b0_1 mistune 0.8.4 py39h27cfd23_1000 mkl 2021.4.0 h06a4308_640 mkl-service 2.4.0 py39h7f8727e_0 mkl_fft 1.3.1 py39hd3c417c_0 mkl_random 1.2.2 py39h51133e4_0 mlflow 2.0.1 pypi_0 pypi mock 4.0.3 pyhd3eb1b0_0 mpc 1.1.0 h10f8cd9_1 mpfr 4.0.2 hb69a4c5_1 mpi 1.0 mpich mpich 3.3.2 hc856adb_0 mpmath 1.2.1 py39h06a4308_0 msgpack-python 1.0.3 py39hd09550d_0 multidict 6.0.2 py39h5eee18b_0 multimethod 1.9 pypi_0 pypi multipledispatch 0.6.0 py39h06a4308_0 munkres 1.1.4 py_0 mypy 1.0.0 pypi_0 pypi mypy_extensions 0.4.3 py39h06a4308_1 nbclassic 0.5.2 py39h06a4308_0 nbclient 0.5.13 py39h06a4308_0 nbconvert 6.5.4 py39h06a4308_0 nbformat 5.7.0 py39h06a4308_0 ncurses 6.4 h6a678d5_0 nest-asyncio 1.5.6 py39h06a4308_0 networkx 2.8.4 py39h06a4308_0 nibabel 3.2.1 pypi_0 pypi nltk 3.7 pyhd3eb1b0_0 nose 1.3.7 pyhd3eb1b0_1008 notebook 6.5.2 py39h06a4308_0 notebook-shim 0.2.2 py39h06a4308_0 nspr 4.33 h295c915_0 nss 3.74 h0370c37_0 numba 0.56.4 py39h417a72b_0 numexpr 2.8.4 py39he184ba9_0 numpy 1.23.5 pypi_0 pypi numpydoc 1.5.0 py39h06a4308_0 nvidia-cublas-cu11 11.10.3.66 pypi_0 pypi nvidia-cuda-nvrtc-cu11 11.7.99 pypi_0 pypi nvidia-cuda-runtime-cu11 11.7.99 pypi_0 pypi nvidia-cudnn-cu11 8.5.0.96 pypi_0 pypi oauthlib 3.2.2 pypi_0 pypi olefile 0.46 pyhd3eb1b0_0 oniguruma 6.9.7.1 h27cfd23_0 opencv-python 4.7.0.68 pypi_0 pypi openjpeg 2.4.0 h3ad879b_0 openpyxl 3.0.10 py39h5eee18b_0 openssl 1.1.1t h7f8727e_0 opt-einsum 3.3.0 pypi_0 pypi optuna 2.10.0 pypi_0 pypi packaging 21.3 pypi_0 pypi pandas 1.4.2 pypi_0 pypi pandas-profiling 3.6.6 pypi_0 pypi pandocfilters 1.5.0 pyhd3eb1b0_0 panel 0.14.3 py39h06a4308_0 param 1.12.3 py39h06a4308_0 parsel 1.6.0 py39h06a4308_0 parso 0.8.3 pyhd3eb1b0_0 partd 1.2.0 pyhd3eb1b0_1 pathspec 0.10.3 py39h06a4308_0 patsy 0.5.3 py39h06a4308_0 pbr 5.11.0 pypi_0 pypi pcre 8.45 h295c915_0 pep8 1.7.1 py39h06a4308_1 pexpect 4.8.0 pyhd3eb1b0_3 phik 0.12.3 py39hdb19cb5_0 pickleshare 0.7.5 pyhd3eb1b0_1003 pillow 9.4.0 py39h6a678d5_0 pip 23.0.1 pypi_0 pypi platformdirs 2.5.2 py39h06a4308_0 platipy 0.5.0 pypi_0 pypi plotly 5.5.0 pypi_0 pypi pluggy 1.0.0 py39h06a4308_1 ply 3.11 py39h06a4308_0 poyo 0.5.0 pyhd3eb1b0_0 pqdm 0.2.0 pypi_0 pypi prettytable 3.5.0 pypi_0 pypi progressbar2 4.2.0 pypi_0 pypi prometheus_client 0.14.1 py39h06a4308_0 prompt-toolkit 3.0.38 pypi_0 pypi prompt_toolkit 3.0.36 hd3eb1b0_0 protego 0.1.16 py_0 protobuf 3.19.6 pypi_0 pypi psutil 5.9.0 py39h5eee18b_0 ptyprocess 0.7.0 pyhd3eb1b0_2 pure-eval 0.2.2 pypi_0 pypi py 1.11.0 pyhd3eb1b0_0 py4j 0.10.9.5 pypi_0 pypi pyarrow 10.0.1 pypi_0 pypi pyasn1 0.4.8 pyhd3eb1b0_0 pyasn1-modules 0.2.8 py_0 pycodestyle 2.10.0 pypi_0 pypi pycosat 0.6.4 py39h5eee18b_0 pycparser 2.21 pyhd3eb1b0_0 pycryptodomex 3.17 pypi_0 pypi pyct 0.5.0 py39h06a4308_0 pycurl 7.45.1 py39h8f2d780_0 pydantic 1.10.2 py39h5eee18b_0 pydeck 0.8.0 pypi_0 pypi pydicom 2.3.1 pypi_0 pypi pydicom-seg 0.4.1 pypi_0 pypi pydispatcher 2.0.5 py39h06a4308_2 pydocstyle 6.2.3 pypi_0 pypi pyerfa 2.0.0 py39h27cfd23_0 pyflakes 3.0.1 pypi_0 pypi pygments 2.14.0 pypi_0 pypi pyhamcrest 2.0.2 pyhd3eb1b0_2 pyjwt 2.6.0 pypi_0 pypi pykwalify 1.8.0 pypi_0 pypi pylint 2.16.2 py39h06a4308_0 pylint-venv 3.0.1 pypi_0 pypi pyls-spyder 0.4.0 pyhd3eb1b0_0 pympler 1.0.1 pypi_0 pypi pynetdicom 2.0.2 pypi_0 pypi pyodbc 4.0.34 py39h6a678d5_0 pyopenssl 23.0.0 py39h06a4308_0 pyparsing 3.0.9 py39h06a4308_0 pyperclip 1.8.2 pypi_0 pypi pyqt 5.15.7 py39h6a678d5_1 pyqt5 5.15.9 pypi_0 pypi pyqt5-qt5 5.15.2 pypi_0 pypi pyqt5-sip 12.11.0 py39h6a678d5_1 pyqtwebengine 5.15.6 pypi_0 pypi pyqtwebengine-qt5 5.15.2 pypi_0 pypi pyradiomics 3.0.1 pypi_0 pypi pyrsistent 0.18.0 py39heee7806_0 pysocks 1.7.1 py39h06a4308_0 pyspark 3.3.1 pypi_0 pypi pytables 3.7.0 py39hf19a122_1 pytest 7.1.2 py39h06a4308_0 python 3.9.15 haa1d7c7_0 python-dateutil 2.8.2 pyhd3eb1b0_0 python-fastjsonschema 2.16.2 py39h06a4308_0 python-lsp-black 1.2.1 py39h06a4308_0 python-lsp-jsonrpc 1.0.0 pyhd3eb1b0_0 python-lsp-server 1.7.1 pypi_0 pypi python-slugify 5.0.2 pyhd3eb1b0_0 python-snappy 0.6.1 py39h6a678d5_0 python-utils 3.5.2 pypi_0 pypi python_abi 3.9 2_cp39 conda-forge pytoolconfig 1.2.5 py39h06a4308_1 pytorch-tabnet 4.0 pypi_0 pypi pyttsx3 2.90 pypi_0 pypi pytz 2022.7 py39h06a4308_0 pytz-deprecation-shim 0.1.0.post0 pypi_0 pypi pyu2f 0.1.5 pyhd8ed1ab_0 conda-forge pyviz_comms 2.0.2 pyhd3eb1b0_0 pywavelets 1.4.1 py39h5eee18b_0 pyxdg 0.27 pyhd3eb1b0_0 pyyaml 6.0 py39h5eee18b_1 pyzmq 23.2.0 py39h6a678d5_0 qdarkstyle 3.0.2 pyhd3eb1b0_0 qstylizer 0.2.2 py39h06a4308_0 qt 5.15.9 h06a4308_0 qt-main 5.15.2 h327a75a_7 qt-webengine 5.15.9 hd2b0992_4 qtawesome 1.2.2 py39h06a4308_0 qtconsole 5.4.0 pypi_0 pypi qtpy 2.2.0 py39h06a4308_0 qtwebkit 5.212 h4eab89a_4 querystring-parser 1.2.4 pypi_0 pypi queuelib 1.5.0 py39h06a4308_0 readline 8.2 h5eee18b_0 regex 2022.7.9 py39h5eee18b_0 requests 2.28.1 py39h06a4308_0 requests-file 1.5.1 pyhd3eb1b0_0 requests-oauthlib 1.3.1 pypi_0 pypi rich 13.3.1 pypi_0 pypi rope 1.7.0 py39h06a4308_0 rsa 4.9 pyhd8ed1ab_0 conda-forge rt-utils 1.2.7 pypi_0 pypi rtree 1.0.1 py39h06a4308_0 ruamel-yaml 0.17.21 pypi_0 pypi ruamel-yaml-clib 0.2.7 pypi_0 pypi ruamel_yaml 0.15.100 py39h27cfd23_0 s3transfer 0.6.0 py39h06a4308_0 scikit-image 0.19.0 pypi_0 pypi scikit-learn 1.2.0 pypi_0 pypi scikit-learn-intelex 2023.0.2 py39h06a4308_0 scipy 1.9.0 pypi_0 pypi scrapy 2.6.2 py39h06a4308_0 seaborn 0.12.2 py39h06a4308_0 secretstorage 3.3.1 py39h06a4308_0 semver 2.13.0 pypi_0 pypi send2trash 1.8.0 pyhd3eb1b0_1 service_identity 18.1.0 pyhd3eb1b0_1 setuptools 67.4.0 pypi_0 pypi setuptools-scm 7.1.0 pypi_0 pypi shap 0.41.0 pypi_0 pypi simpleitk 2.1.1.2 pypi_0 pypi sip 6.6.2 py39h6a678d5_0 six 1.16.0 pyhd3eb1b0_1 sklearn 0.0.post1 pypi_0 pypi slicer 0.0.7 pypi_0 pypi smart_open 5.2.1 py39h06a4308_0 smmap 5.0.0 pypi_0 pypi snappy 1.1.9 h295c915_0 sniffio 1.2.0 py39h06a4308_1 snowballstemmer 2.2.0 pyhd3eb1b0_0 sortedcollections 2.1.0 pyhd3eb1b0_0 sortedcontainers 2.4.0 pyhd3eb1b0_0 soupsieve 2.3.2.post1 py39h06a4308_0 sphinx 5.0.2 py39h06a4308_0 sphinx-rtd-theme 1.2.0 pypi_0 pypi sphinxcontrib-applehelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-devhelp 1.0.2 pyhd3eb1b0_0 sphinxcontrib-htmlhelp 2.0.0 pyhd3eb1b0_0 sphinxcontrib-jquery 2.0.0 pypi_0 pypi sphinxcontrib-jsmath 1.0.1 pyhd3eb1b0_0 sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0 sphinxcontrib-serializinghtml 1.1.5 pyhd3eb1b0_0 spyder 5.4.2 pypi_0 pypi spyder-kernels 2.4.2 pypi_0 pypi sqlalchemy 1.4.39 py39h5eee18b_0 sqlite 3.40.1 h5082296_0 sqlparse 0.4.3 pypi_0 pypi stack-data 0.6.2 pypi_0 pypi statsmodels 0.13.2 pypi_0 pypi stevedore 4.1.1 pypi_0 pypi streamlit 1.19.0 pypi_0 pypi sweetviz 2.1.4 pypi_0 pypi sympy 1.11.1 py39h06a4308_0 tabulate 0.8.10 py39h06a4308_0 tangled-up-in-unicode 0.2.0 py39h06a4308_0 tbb 2021.7.0 hdb19cb5_0 tbb4py 2021.7.0 py39hdb19cb5_0 tblib 1.7.0 pyhd3eb1b0_0 tdqm 0.0.1 pypi_0 pypi tenacity 8.0.1 py39h06a4308_1 tensorboard 2.11.2 pypi_0 pypi tensorboard-data-server 0.6.1 pypi_0 pypi tensorboard-plugin-wit 1.8.1 pypi_0 pypi tensorflow 2.11.0 pypi_0 pypi tensorflow-estimator 2.11.0 pypi_0 pypi tensorflow-io-gcs-filesystem 0.30.0 pypi_0 pypi termcolor 2.2.0 pypi_0 pypi terminado 0.17.1 py39h06a4308_0 testpath 0.6.0 py39h06a4308_0 text-unidecode 1.3 pyhd3eb1b0_0 textdistance 4.2.1 pyhd3eb1b0_0 threadpoolctl 2.2.0 pyh0d69192_0 three-merge 0.1.1 pyhd3eb1b0_0 tifffile 2021.7.2 pyhd3eb1b0_2 tinycss2 1.2.1 py39h06a4308_0 tk 8.6.12 h1ccaba5_0 tldextract 3.2.0 pyhd3eb1b0_0 toml 0.10.2 pyhd3eb1b0_0 tomli 2.0.1 py39h06a4308_0 tomlkit 0.11.1 py39h06a4308_0 toolz 0.12.0 py39h06a4308_0 torch 1.13.1 pypi_0 pypi torchaudio 0.13.0+cu116 pypi_0 pypi torchvision 0.14.1 pypi_0 pypi tornado 6.2 py39h5eee18b_0 tqdm 4.62.3 pypi_0 pypi traceback2 1.4.0 pypi_0 pypi traitlets 5.9.0 pypi_0 pypi trimesh 3.18.0 pypi_0 pypi twisted 22.2.0 py39h5eee18b_1 typeguard 2.13.3 pypi_0 pypi typing-extensions 4.4.0 py39h06a4308_0 typing_extensions 4.4.0 py39h06a4308_0 tzdata 2022.7 pypi_0 pypi tzlocal 4.2 pypi_0 pypi ujson 5.4.0 py39h6a678d5_0 unidecode 1.2.0 pyhd3eb1b0_0 unittest2 1.1.0 pypi_0 pypi unixodbc 2.3.11 h5eee18b_0 uritemplate 4.1.1 pyhd8ed1ab_0 conda-forge urllib3 1.26.14 py39h06a4308_0 validators 0.20.0 pypi_0 pypi visions 0.7.5 py39h06a4308_0 w3lib 1.21.0 pyhd3eb1b0_0 watchdog 2.1.6 py39h06a4308_0 wcwidth 0.2.6 pypi_0 pypi webencodings 0.5.1 py39h06a4308_1 websocket-client 0.58.0 py39h06a4308_4 werkzeug 2.2.2 py39h06a4308_0 wget 1.21.3 h0b77cf5_0 whatthepatch 1.0.2 py39h06a4308_0 wheel 0.38.4 py39h06a4308_0 widgetsnbextension 3.5.2 py39h06a4308_0 wrapt 1.14.1 py39h5eee18b_0 wurlitzer 3.0.2 py39h06a4308_0 xarray 2022.11.0 py39h06a4308_0 xgboost 1.6.0 pypi_0 pypi xlrd 2.0.1 pyhd3eb1b0_0 xlsxwriter 3.0.3 pyhd3eb1b0_0 xnat 0.4.2 pypi_0 pypi xz 5.2.10 h5eee18b_1 yaml 0.2.5 h7b6447c_0 yapf 0.31.0 pyhd3eb1b0_0 yarl 1.7.2 py39hb9d737c_2 conda-forge ydata-profiling 4.0.0 pypi_0 pypi zeromq 4.3.4 h2531618_0 zfp 0.5.5 h295c915_6 zict 2.1.0 py39h06a4308_0 zipp 3.11.0 py39h06a4308_0 zlib 1.2.13 h5eee18b_0 zope 1.0 py39h06a4308_1 zope.interface 5.4.0 py39h7f8727e_0 zstandard 0.19.0 py39h5eee18b_0 zstd 1.5.2 ha4553b6_0

laqua-stack commented 1 year ago

@jonasboh Thank you very much for posting your environment. I tested it and could reproduce the issue with Py3.9. I am rather convinced, that it relates to the cited PEP604 issue, which is first introduced in Py3.10. I am glad it works for now.

@pwoznicki Should we maybe just update the documentation/requirements that only Python>=3.10 is supported? I could imagine that we used pipes as typing hints on different occasions as well?! Otherwise I would propose to replace the pipe with a typing.Union[...,...] construct to ensure compatibility with Py3.9 and earlier. Tbh also the rest is (obviously) not thoroughly tested with Py<3.10 in the current version. What do you think?