hddm-devs / hddm

HDDM is a python module that implements Hierarchical Bayesian parameter estimation of Drift Diffusion Models (via PyMC).
http://ski.clps.brown.edu/hddm_docs/
Other
261 stars 117 forks source link

pymc and hddm #104

Open rghnn opened 1 year ago

rghnn commented 1 year ago

Hi,

I am using python 3.7 as advised and while installing the pymc==2.3.8

I get the following error: Building wheels for collected packages: pymc error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for pymc (setup.py) ... error ERROR: Failed building wheel for pymc Running setup.py clean for pymc Failed to build pymc ERROR: Could not build wheels for pymc, which is required to install pyproject.toml-based projects Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting kabuki Using cached kabuki-0.6.5.tar.gz (47 kB)

When proceeding with the newest version of pymc, then import hddm package fails to work with the following error: AttributeError: module 'pymc' has no attribute 'stochastic_from_dist'

Please advise

moxtoby commented 1 year ago

Hi there, are you still having problems installing HDDM? I am able to run and install an older version of HDDM (0.8.0) with older versions of other packages, but unfortunately the convergence testing functions does not seem to work. I have tried to install the newer version of HDDM (0.9.9) with python 3.8 and pymc = 2.3.8, but now I can't get pandas and matplotlib to work. I am following this thread (hope it's not dead) hoping someone can help me by letting me know the versions of hddm, python, pymc, pandas, and other packages that have been shown to work together. For example, I would love to know all the package versions that the tutorial is based on (https://hddm.readthedocs.io/en/latest/tutorial_basic_hddm.html). I think the hddm is on 0.9.6 (however I am not able to install this version on the exe prompt in anaconda for some reason?) Fingers crossed for some help.

dgraetz commented 1 year ago

I have the same issue on a Windows 11 machine with fresh anaconda installed. If I use these commands:

conda activate py 37
conda install cython
conda install numpy
pip install pymc #can't install the pymc version they used
conda install netcdf4
conda install hdf5
conda install git
pip install git+https://github.com/AlexanderFengler/ssms@main
pip install git+https://github.com/hddm-devs/kabuki

, I get almost all the way through the installation instructions, but the last line

pip install git+https://github.com/hddm-devs/hddm

fails:


  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1138 lines of output]
      Compiling src/wfpt.pyx because it changed.
      [1/1] Cythonizing src/wfpt.pyx
        error: subprocess-exited-with-error

        python setup.py bdist_wheel did not run successfully.
        exit code: 1
zxie52 commented 1 year ago

same issue that i have already installed the pymc version to 5.7.2 but then when I tried to install the pymc 'pip install pymc ==2.3.8' on debian, I always get error message and cannot further install the hddm

mrinmayik commented 1 year ago

This isn't really a solution to the HDDM problem. But they recently released an overhauled version HSSM, that is meant to replace HDDM: https://twitter.com/LnccBrown/status/1683638792220028928 https://github.com/lnccbrown/HSSM

Haven't tried it yet, but I imagine that these compatibility issues should be fixed in this version!

hcp4715 commented 10 months ago

Hi, @mrinmayik, @rghnn

We've created a docker image for HDDM to make HDDM works. Here it is: https://hub.docker.com/r/hcp4715/hddm. Please let us know if you have any questions when using the docker images.