Linux / python 3.13
When I install traits from the default channel via
conda install python=3.13 traits
and then try to use it
python
import traits.api as tr
I get the following error:
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
import traits.api as tra
File "~/miniconda3/envs/traitstest/lib/python3.13/site-packages/traits/api.py", line 17, in <module>
from .constants import (
...<7 lines>...
)
File "~/miniconda3/envs/traitstest/lib/python3.13/site-packages/traits/constants.py", line 13, in <module>
import traits.ctraits
ImportError: ~/miniconda3/envs/traitstest/lib/python3.13/site-packages/traits/ctraits.cpython-313-x86_64-linux-gnu.so: undefined symbol: Py_TRASHCAN_SAFE_BEGIN
I guess this means that the binary in the traits package does somehow not fit the python that is delivered via the same default channel.
This does not happen if I install via conda-forge channel.
Can someone reproduce this? I would be good to have a solution here.