lmc297 / BTyper3

In silico taxonomic classification of Bacillus cereus group genomes using whole-genome sequencing data
GNU General Public License v3.0
19 stars 0 forks source link

Installation problem #10

Open maktabdar opened 1 year ago

maktabdar commented 1 year ago

Hi @lmc297, I get the following error when trying to install BTyper3:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError:

I'm using a fresh installation of anaconda on windows 11.

althonos commented 1 year ago

Hi @maktabdar, could you try to run conda install pyfastani? I think that with the recent Bioconda update the package is broken for Windows; check if that's the error and I'll try to upload a Windows package on my side.

maktabdar commented 1 year ago

Thanks, @althonos. I just tried it and here's the error message:

Retrieving notices: ...working... done
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - pyfastani

Current channels:

  - https://conda.anaconda.org/bioconda/win-64
  - https://conda.anaconda.org/bioconda/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch
althonos commented 1 year ago

Hi @maktabdar, I'm still working out the way to get Bioconda to build packages for Windows; but in the meantime, you can pip install pyfastani in your Conda environment, and then trying conda install btyper3 again, I think this will work as a temporary fix.

maktabdar commented 1 year ago

Thanks, @althonos. I just got to try the pip installation an unfortunately it fails with this error:

ERROR: Failed building wheel for pyfastani
Failed to build pyfastani
ERROR: Could not build wheels for pyfastani, which is required to install pyproject.toml-based projects

It seems to be a compiler error. I will try it with wsl to find it weather it works on Linux.

maktabdar commented 1 year ago

OK, I managed to install pyfastani after installing gcc and g++. However, I got the following error when I tried to install btyper3:

 conda install -c bioconda btyper3
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.35=0
  - feature:|@/linux-64::__glibc==2.35=0

Your installed version is: 2.35

any ideas?

althonos commented 1 year ago

@maktabdar : Is this in the WSL environment?

Could you actually try in the base Windows environment pip install pyfastani -vv and copy the full traceback here? If this is a compilation error on Windows I will fix it in pyfastani, it's not normal that you can't install it even this way.