Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install error in Pymc: module 'pymc' has no attribute 'stochastic_from_dist' #204

Closed
ChenghuFeng opened this issue Jun 5, 2022 · 9 comments
Labels

Comments

@ChenghuFeng
Copy link

Hi here,
I am a biggner in python, and I try to install pymc and meet some error, which another package(kabuki) could not find stochastic_from_dist from pymc

  1. File "F:\python310\lib\site-packages\kabuki\utils.py", line 312, in
    HalfCauchy = pm.stochastic_from_dist(name="Half Cauchy",
    AttributeError: module 'pymc' has no attribute 'stochastic_from_dist'

Versions and main components

  • PyMC/PyMC3 Version: PyMC 4.0.0
  • Aesara/Theano Version: 2.6.6
  • Python Version: Python 3.10.4
  • Operating system: Win10
  • How did you install PyMC/PyMC3: (conda/pip) I have install PyMC 4.0.0 by using pip install
@ricardoV94
Copy link
Member

That other package most likely does not support the new version of PyMC. You should install pymc3 or if that is a really really old package pymc < 4

@ChenghuFeng
Copy link
Author

Emmm,I have ‘pymc3-3.11.5-py3-none-any.whl’ but when I try to change (import pymc as pm) to (import pymc3 as pm), this problem still exist, error like AttributeError: module 'pymc3' has no attribute 'stochastic_from_dist'

@ChenghuFeng
Copy link
Author

Interestingly, I can successfully import pymc or pymc3, so I wonder whether the name of "stochastic_from_dist" was replaced by anthor name~

@ricardoV94
Copy link
Member

That library relies on a very old version of pymc. You will have to downgrade by doing python -m pip install pymc<4

@ChenghuFeng
Copy link
Author

lol, I try “python -m pip install pymc<4” from (pymc == 2) to (pymc == 2.3.8), but both of them can not install. And I find they work on linux or macosx. Is there any version can directly install by ‘python -m pip install pymc<4’,Thank ~

@ricardoV94
Copy link
Member

@ChenghuFeng You should ask for installation help in the the library repository https://github.com/hddm-devs/kabuki

We no longer support that version of PyMC here.

@twiecki twiecki transferred this issue from pymc-devs/pymc Jun 5, 2022
@twiecki
Copy link
Member

twiecki commented Jun 5, 2022

@ChenghuFeng Did you follow the HDDM install instructions? Best to email the HDDM mailing list.

@twiecki twiecki closed this as completed Jun 5, 2022
@ChenghuFeng
Copy link
Author

Thank for suggestion, I try it now ( follow the HDDM install instructions)

@ChenghuFeng
Copy link
Author

@ricardoV94 @twiecki Thanks for all your suggestion. I try to downgrade my python to 3.8, and it work~ I thought maybe I install a package with wrong version before~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants