question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues installing bambi with pip

See original GitHub issue

I’m not sure if this is only an issue with my current system, but when I try to install bambi with pip install bambi it fails after claiming that the dependency for numpy is numpy<1.22.0, >=1.16.1 which I know is wrong (i.e. related to an old version). However, the wheel that was downloaded is for bambi 0.9.1 which should depend on pymc and numpy>1.22. I tried running pip with --no-cache-dir but this made no difference. When I installed the version directly from github it installed correctly, but I still cannot fit a model because I get erros related to

ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.212, but found None. Extra debug information: force_compile=False, _need_reload=True

which I’m guessing is related to some weird python dependency issue.

System details: manjaro linux 5.10.154-1 python 3.11.0 installed via pyenv I tried installing in a brand new virtualenv. I also tried specifying numpy version explicitly, as in pip install numpy=1.23.5 bambi=0.9.1 but this also didn’t work.

I’m not sure if this is a bambi packaging issue or something weird happening on my system, but any hints as to how to solve it would be greatly appreciated.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
omriharcommented, Dec 15, 2022

Hi @tomicapretto I am indeed able to install bambi at the latest version, using pip install bambi. However you now have a different issue - since the pymc team decided to fork aesara and they no-longer rely on it, but you still do, if I don’t install it explicitly I cannot import bambi (get ModuleNotFoundError). I guess it would be an easy fix - just replace all instances of aesara with pytensor

Thanks! I’ll close this one since it is indeed a different bug.

0reactions
tomicaprettocommented, Dec 9, 2022

@omrihar there’s a new release available. You should be able to install with pip now without this issue. Let me know if that works so we can close the issue 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

bambi
Installation. Bambi requires a working Python interpreter (3.8+). We recommend installing Python and key numerical libraries using the Anaconda Distribution, ...
Read more >
BAyesian Model-Building Interface (Bambi) in Python
Bambi is a high-level Bayesian model-building interface written in Python. It works with the probabilistic programming frameworks PyMC and is designed to make ......
Read more >
Unexpected Error when testing Bambi package · Issue #389
I have found that when installing pymc3=3.11.2 or bambi=0.6.0 , matplotlib=3.4.3 is unable to be compiled. It is breaking the entire ...
Read more >
Bambi error - me or limitation of Bambi? - Questions
Is it possible to implement three-level conditional hierarchical models in Bambi or am I simply writing this incorrectly? If I am writing it ......
Read more >
A simple interface for fitting Bayesian mixed effects models
(and all of its dependencies) can be installed from the command line in a single line: pip install bambi. Power users and developers...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found