MannLabs / alphamap

An open-source Python package for the visual annotation of proteomics data with sequence specific knowledge.
https://mannlabs.github.io/alphamap/
Apache License 2.0
76 stars 18 forks source link

Current installation approach does not work with either pip or #65

Open dovidel opened 1 year ago

dovidel commented 1 year ago

I am currently having difficulty installing the alphamap package using either Pip or the developer approach.

To Reproduce Steps to reproduce the behavior:

  1. I installed Python3.8 using brew install python@3.8.
  2. I then installed conda using the instructions here (https://docs.anaconda.com/free/anaconda/install/mac-os/)
  3. I cloned the github repository into a folder on my local machine, and then followed the instructions here (https://mannlabs.github.io/alphamap/#Pip) in order to get alphamap installed.
  4. After running the commands conda create -n alphamap python=3.8 -y and conda activate alphamap, I try to run pip3.8 install -e ., but the following error occurs:

ERROR: Cannot install alphamap and alphamap==0.1.10 because these package versions have conflicting dependencies.

The conflict is caused by: alphamap 0.1.10 depends on numpy==1.19.2 bokeh 2.2.2 depends on numpy>=1.11.3 h5py 3.6.0 depends on numpy>=1.14.5 pandas 1.4.0 depends on numpy>=1.20.0; platform_machine == "arm64" and python_version < "3.10"

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts


I tried to solve this by changing the required numpy version from 1.19.2 to 1.20, but this resulted in the following abridged error:

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



While the one-click GUI installer works fine, I need to work with some of the code in the developer setting.

**Desktop:**
 - Installation Type: Pip/Developer
 - OS: Ventura 13.4.1, Apple M1 Max Chip