aidenlab / straw

Extract data quickly from Juicebox via straw
MIT License
63 stars 35 forks source link

Installation on Linux not working? #120

Open Phlya opened 1 year ago

Phlya commented 1 year ago

Describe the bug Can not install hic-straw on linux

To Reproduce

Expected behavior Expected it would be installed

Desktop (please complete the following information):

Additional context Pre-built wheel installs fine on MacOS, but for linux there is only a source archive on PyPI...

Phlya commented 1 year ago

Basically, to solve this I added the recipe for hic-straw to bioconda, hopefully it gets merged soon: https://github.com/bioconda/bioconda-recipes/pull/37929

Which sort of means that in principle Linux is not a problem, I don't know why it didn't work for me, but either way, installing via conda should solve any issues in the future.

Phlya commented 1 year ago

It's now available on bioconda https://anaconda.org/bioconda/hic-straw

The only thing I noticed is that for me it requires some lib available in conda-forge, so it needs to be enabled when installing, maybe depending on the system...

katecycho commented 1 year ago

pip-install gave me an error so i tried conda install, but i keep getting error about python and glibc specifications. do you have any suggestions? i tried python 3.8, 3.9 and 3.11.

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - hic-straw -> python[version='>=2.7,<2.8.0a0|>=3.11,<3.12.0a0']

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

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

Your installed version is: 2.17