lindermanlab / ssm

Bayesian learning and inference for state space models
MIT License
540 stars 196 forks source link

error during installation #153

Closed samdeoxys1 closed 1 year ago

samdeoxys1 commented 1 year ago

During the last step of the installation: pip install -e ., I got:

image image
slinderman commented 1 year ago

We made some recent changes to setup.py and I’m afraid we dropped the include_dirs keyword. I’ll push a fix asap, but in the meantime can you please try updating setup.py and rerunning, as suggested in this post on stack Overflow? https://stackoverflow.com/questions/14657375/cython-fatal-error-numpy-arrayobject-h-no-such-file-or-directory

mikewojnowicz commented 1 year ago

@slinderman I had the same problem. Your suggestion worked for me to fix it.

slinderman commented 1 year ago

I added the numpy include directory to setup.py in https://github.com/lindermanlab/ssm/commit/38b2883895a3d3d06aeaa4fd1633849ccadf640b. Please let me know if this fixes your installation problem @samdeoxys1.

samdeoxys1 commented 1 year ago

The installation works now! Thanks!