lnccbrown / HSSM

Development of HSSM package
Other
71 stars 10 forks source link

import hssm error (with import wfpt) #359

Closed suwangcn closed 3 months ago

suwangcn commented 4 months ago

ModuleNotFoundError Traceback (most recent call last) Cell In[1], line 12 9 import pymc as pm 10 import jax ---> 12 import hssm 13 hssm.set_floatX("float32")

File d:\Anaconda_python\envs\hssm_env\lib\site-packages\hssm__init__.py:14 11 import logging 12 import sys ---> 14 from .config import ModelConfig 15 from .datasets import load_data 16 from .defaults import show_defaults

File d:\Anaconda_python\envs\hssm_env\lib\site-packages\hssm\config.py:10 7 from dataclasses import dataclass, field 8 from typing import TYPE_CHECKING, Any, Literal, cast ---> 10 from .defaults import LogLik, LoglikKind, SupportedModels, default_model_config 12 if TYPE_CHECKING: 13 from pytensor.tensor.random.op import RandomVariable

File d:\Anaconda_python\envs\hssm_env\lib\site-packages\hssm\defaults.py:10 7 from pymc import Distribution 8 from pytensor.graph.op import Op ...

File d:\Anaconda_python\envs\hssm_env\lib\site-packages\hddm_wfpt__init__.py:1 ----> 1 import wfpt

ModuleNotFoundError: No module named 'wfpt'

This is the error when I import hssm 0.2.0. However, there's no module named wfpt. What is that?

AlexanderFengler commented 4 months ago

Hi @suwangcn, thank you for trying HSSM,

The import of the wfpt module is from the hddm-wfpt package, which is a dependency of HSSM. It hosts a blackbox version of the likelihood computations for the ddm and full_ddm models. Could you give a bit more information about your setup and how you installed HSSM?

digicosmos86 commented 3 months ago

I'll close this for now. Please feel free to reopen this if the problem persists