-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
Description
Describe the issue:
I get an import error after installing pytensor and pymc from git.
The issue is that sp_sum now lives in pytensor.sparse.math , not pytensor.sparse.basic
Reproduceable code example:
import pymcError message:
File /opt/anaconda3/envs/prophet_v2/lib/python3.13/site-packages/pymc/distributions/multivariate.py:28
26 from pytensor.graph.op import Op
27 from pytensor.raise_op import Assert
---> 28 from pytensor.sparse.basic import DenseFromSparse, sp_sum
29 from pytensor.tensor import (
30 TensorConstant,
31 TensorVariable,
(...) 34 sigmoid,
35 )
36 from pytensor.tensor.elemwise import DimShuffle
ImportError: cannot import name 'sp_sum' from 'pytensor.sparse.basic' (/opt/anaconda3/envs/prophet_v2/lib/python3.13/site-packages/pytensor/sparse/basic.py)PyMC version information:
PyMC: installed with pip 5.26.1+30.g87f80f9d
Pytensor: installed with pip 2.35.1+69.gcc674a119
Context for the issue:
No response