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.

Upgrade backend to PYMC v4.0.0

See original GitHub issue

Upgraded PYMC to v4.0.0 with the Aesara backend. This is now at odds with the PYMC v3 that bambi requires:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your Python environment has Theano(-PyMC) 1.1.2 installed, but you are importing PyMC 4.0.0b1 which uses Aesara as its backend.
For PyMC 4.0.0b1 to work as expected you should uninstall Theano(-PyMC).
See https://github.com/pymc-devs/pymc/wiki for update instructions.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You are importing PyMC 4.0.0b1, but your environment also has the legacy version PyMC3 3.11.4 installed.
For PyMC 4.0.0b1 to work as expected you should uninstall PyMC3.
See https://github.com/pymc-devs/pymc/wiki for update instructions.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tomicaprettocommented, Jan 6, 2022

@nikisix if you use both Bambi and PyMC and want to use PyMC v4, I would recommend having them in different environments. The released version of PyMC v4 is a beta release. I think we’re going to move to PyMC v4 once it launches a stable release.

0reactions
tomicaprettocommented, Jan 6, 2022

It was a problem with the new release of NumPy (1.22.0). I updated requirements.txt to force NumPy < 1.22.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Quickest Migration Guide Ever from PyMC3 to PyMC v4.0
The Quickest Migration Guide Ever from PyMC3 to PyMC v4.0. Discover how few changes are needed to upgrade to PyMC v4.0!
Read more >
PyMC 4.0 Release Announcement
Every user should upgrade, as there are many exciting new updates that ... By far the most shiny new feature is the new...
Read more >
Update Docker image to v4 #5323 - pymc-devs/pymc - GitHub
1. Install docker image. 1.1. Pull image from docker hub. docker pull danhphan/pymc:v4.0.0b6 ...
Read more >
PyMC Developers on Twitter: "We are very excited to ...
We are very excited to announce the release of the PyMC 4.0 beta. What's new? So many things, which we will talk about...
Read more >
PyMC3 MCMC performance with and without Theano's ...
Update with addition of PyMC v4: PyMC v4 samples faster during both the tuning and sampling stages of MCMC. In addition, version 4...
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