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

install instructions fail #102

Open dmd opened 1 year ago

dmd commented 1 year ago

The install instructions state:

In a fresh environment (we recommend to use python 3.7) type.

pip install cython
pip install pymc==2.3.8 # backend probabilistic programming framework (DO NOT USE CONDA HERE)
pip install git+https://github.com/AlexanderFengler/ssms@main  # package for data simulation
pip install git+https://github.com/hddm-devs/kabuki # backbone package for hddm to connect to pymc
pip install git+https://github.com/hddm-devs/hddm

First of all, if you're in a fresh environment as instructed, the 2nd line of that will fail because numpy is not installed.

Second, on the 3rd line, ssms fails installation with

(pkumar) root@5421a91f5f80:/# pip install git+https://github.com/AlexanderFengler/ssms@main
Collecting git+https://github.com/AlexanderFengler/ssms@main
  Cloning https://github.com/AlexanderFengler/ssms (to revision main) to /tmp/pip-req-build-_vva6wxi
  Installing build dependencies ... done
    Complete output from command python setup.py egg_info:
    Compiling src/cssm.pyx because it changed.
    [1/1] Cythonizing src/cssm.pyx
    Command "/pkumar/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-588fk81b --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools<60.0 wheel Cython>=0.28.5 "oldest-supported-numpy; python_version!='3.7' or platform_machine=='aarch64' or platform_system=='AIX' or platform_python_implementation == 'PyPy'" "numpy==1.14.6; python_version=='3.7' and platform_machine!='aarch64' and platform_system!='AIX' and platform_python_implementation != 'PyPy'" scipy>=1.1.0" failed with error code 1 in None
    /tmp/pip-build-env-ugs73wkf/lib/python3.7/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
    !!

            ********************************************************************************
            Requirements should be satisfied by a PEP 517 installer.
            If you are using pip, you can try `pip install --use-pep517`.
            ********************************************************************************

    !!
      dist.fetch_build_eggs(dist.setup_requires)
    Traceback (most recent call last):
      File "/tmp/pip-build-env-ugs73wkf/lib/python3.7/site-packages/setuptools/installer.py", line 96, in _fetch_build_egg_no_warn
        subprocess.check_call(cmd)
      File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/pkumar/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpchi3iztu', '--quiet', 'scikit-learn>=0.24.0']' returned non-zero exit status 1.

This is in a brand new Debian Buster container. The only things that have been installed are gfortran and pip install wheel. What am I missing?

hcp4715 commented 10 months ago

Hi, @dmd

You may check our docker image for HDDM: https://hub.docker.com/r/hcp4715/hddm. It works well for windows/linux/macOS.

Best Chuan-Peng