You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Google Colab with Python 3.9.16, installing the default version of pomegranate via !pip install (for functions such as plot_roh) currently results in pomegranate v1.0.0, which no longer has HiddenMarkovModel, so the current plot_roh function fails, due to "ImportError: cannot import name 'HiddenMarkovModel' from 'pomegranate'".
Whereas installing v0.14.8 of pomegranate on Colab, via !pip install pomegranate==0.14.8, currently fails after import pomegranate due to:
This is the underlying problem when trying to install pomegranage v0.14.8 - pypa/pip#9542
A workaround is to disable build isolation, which forces pomegranate to be compiled within the some Python environment that it's going to be used in. In this case, all build dependencies are already installed on colab, so this should be all that's needed:
Suggest we close this issue as there is a workaround. There is a larger piece of work though to upgrade to pomegranate 1.0. That is probably something for upstream libraries, either scikit-allel or sgkit.
Reported by @korlevic
On Google Colab with Python 3.9.16, installing the default version of pomegranate via
!pip install
(for functions such asplot_roh
) currently results in pomegranate v1.0.0, which no longer hasHiddenMarkovModel
, so the currentplot_roh
function fails, due to "ImportError: cannot import name 'HiddenMarkovModel' from 'pomegranate'".Whereas installing v0.14.8 of pomegranate on Colab, via
!pip install pomegranate==0.14.8
, currently fails afterimport pomegranate
due to:Followed by:
The text was updated successfully, but these errors were encountered: