Code Monkey home page Code Monkey logo

Comments (3)

tiwalayo avatar tiwalayo commented on August 13, 2024 1

You may have fixed this but I'll post here for posterity. See jmschrei/pomegranate#1052, jmschrei/pomegranate#1057 for more information about what's going on here.

Long story short is that cnvkit asks for pomegranate 0.14.8 or 0.14.9, but those versions of pomegranate ask for numpy versions >=1.20.0. the issue here is that the numpy 2.0.0 release is not backwards compatible, so when you install, it tries to use the most recent (but incompatible) version, causing the error you posted.

The fix in jmschrei/pomegranate#1052 hasn't been pushed. If it ever does get pushed/released, there may still be problems if they release it under 0.14.10 since cnvkit asks for pomegranate >= 0.14.8, <=0.14.9.

The fastest fix is to download a version of pomegranate labelled as release 0.14.9 that asks for numpy <2.0.0. This repo I made does precisely that. I was able to install cnvkit by making sure I downloaded old versions of the problematic dependencies (cython, numpy) and then the "new" pomegranate.

Try doing

pip uninstall cython numpy -y
pip install cython==0.29.17 numpy==1.26.4 -y
git clone -b v0.14.9 --single-branch https://github.com/tiwalayo/pomegranate.git
pip install -e pomegranate/

from cnvkit.

tiwalayo avatar tiwalayo commented on August 13, 2024

I have the same issue on x86_64.

from cnvkit.

ProfH2SO4 avatar ProfH2SO4 commented on August 13, 2024

Thank you tiwalayo It works like a charm. You saved me a lot of time. Thank you! :)

from cnvkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.