Hi all,
I am having installation issues on macOS Sonoma (macbook pro m2) with the latest version of pymc (v5.9).
From a fresh conda environment created with:
conda create -c conda-forge -n pymc_env "pymc>=5"
conda activate pymc_env
As soon as I import pymc I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/marco.forgione/anaconda3/envs/bda/lib/python3.11/site-packages/pymc/__init__.py", line 47, in <module>
__set_compiler_flags()
File "/Users/marco.forgione/anaconda3/envs/bda/lib/python3.11/site-packages/pymc/__init__.py", line 30, in __set_compiler_flags
import pytensor
File "/Users/marco.forgione/anaconda3/envs/bda/lib/python3.11/site-packages/pytensor/__init__.py", line 119, in <module>
from pytensor import scalar, tensor
File "/Users/marco.forgione/anaconda3/envs/bda/lib/python3.11/site-packages/pytensor/tensor/__init__.py", line 105, in <module>
from pytensor.tensor import sharedvar # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/marco.forgione/anaconda3/envs/bda/lib/python3.11/site-packages/pytensor/tensor/sharedvar.py", line 8, in <module>
from pytensor.tensor.type import TensorType
File "/Users/marco.forgione/anaconda3/envs/bda/lib/python3.11/site-packages/pytensor/tensor/type.py", line 746, in <module>
pytensor.compile.register_view_op_c_code(
^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'pytensor' has no attribute 'compile' (most likely due to a circular import)
I othewise installed the package successfully on a x86 linux machine. Also, I previously had installed pymc v5.7.2 on my macbook with the same procedure and it used to work.