Giter Site home page Giter Site logo

specify dependecy versions about checkm2 HOT 7 CLOSED

chklovski avatar chklovski commented on August 10, 2024
specify dependecy versions

from checkm2.

Comments (7)

nick-youngblut avatar nick-youngblut commented on August 10, 2024 1

To deal with this issue for now, I just cleared out the dependencies set in setup.py. In other words: install_requires=(). This allowed me to install & run checkm2 successfully.

from checkm2.

chklovski avatar chklovski commented on August 10, 2024 1

Thanks for testing this. I've implemented your solution of removing requirements from the setup.py as this seems to resolve a lot of conflicts. Please re-open if issue surfaces again.

from checkm2.

nick-youngblut avatar nick-youngblut commented on August 10, 2024

Which version of scipy was/is used for checkm2 development?

from checkm2.

nick-youngblut avatar nick-youngblut commented on August 10, 2024

There are also potential conflicts between numpy and tensorflow, such as:

error: numpy 1.24.2 is installed but numpy~=1.19.2 is required by {'tensorflow'}

... when tensorflow is specified as tensorflow>=2.1.0,<2.6.0

I'm having a hard time finding a set of versions that satisfies python (3.9), numpy, grpcio, scipy, and tensorflow.

from checkm2.

nick-youngblut avatar nick-youngblut commented on August 10, 2024

I tried the following env yaml:

channels:
  - conda-forge
  - bioconda
  - defaults
dependencies:
  - python=3.9
  - scikit-learn=0.23.2
  - h5py=2.10.0
  - numpy=1.19.2
  - diamond=2.0.4
  - tensorflow>=2.1.0,<2.6.0
  - lightgbm=3.2.1
  - pandas<=1.4.0
  - scipy=1.9
  - prodigal>=2.6.3
  - setuptools
  - requests
  - packaging
  - tqdm

...but this generates the error:

 grpcio 1.32.0 is installed but grpcio>=1.48.2 is required by {'tensorboard'}

...at least when using mambaorg/micromamba:1.1.0 as the base image in my Dockerfile.

from checkm2.

nick-youngblut avatar nick-youngblut commented on August 10, 2024

If I try:

channels:
  - conda-forge
  - bioconda
  - defaults
dependencies:
  - python=3.9
  - grpcio
  - scikit-learn=0.23.2
  - h5py=2.10.0
  - numpy>=1.19.2
  - diamond=2.0.4
  - tensorflow>=2.1.0,<2.6.0
  - lightgbm=3.2.1
  - pandas<=1.4.0
  - scipy>=1.8
  - prodigal>=2.6.3
  - setuptools
  - requests
  - packaging
  - tqdm

...then I get:

error: numpy 1.24.2 is installed but numpy~=1.19.2 is required by {'tensorflow'}

from checkm2.

nick-youngblut avatar nick-youngblut commented on August 10, 2024

I tried explicitly running the setup as in the README:

git clone --recursive https://github.com/chklovski/checkm2.git --branch 1.0.1
cd checkm2
mamba env create -f checkm2.yml 
python setup.py install

This results in the following error:

error: grpcio 1.32.0 is installed but grpcio>=1.48.2 is required by {'tensorboard'}

However, pip install "grpcio>=1.48.2" results in the following:

Requirement already satisfied: grpcio>=1.48.2 in /home/gitpod/.conda/envs/checkm2/lib/python3.8/site-packages (1.52.1)

...and python3.8/site-packages/ contains both grpcio-1.52.1.dist-info and grpcio-1.32.0-py3.8-linux-x86_64.egg.

mamba env create -f checkm2.yml is installing grpcio 1.52.1, so python setup.py install must be additionally installing grpcio-1.32.0.

I'm using Ubuntu 20.04.5 for this test.

from checkm2.

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.