Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda recipe does not work on (my?) Apple M2 #196

Open
hannesbecher opened this issue Dec 14, 2023 · 1 comment
Open

Conda recipe does not work on (my?) Apple M2 #196

hannesbecher opened this issue Dec 14, 2023 · 1 comment

Comments

@hannesbecher
Copy link

Hi there,

I am trying to set up a package that uses pysim and thus kastore. The package (shadie) setup is via anaconda: conda create -n shadie pandas numpy toyplot toytree altair msprime pyslim tskit loguru IPython -c conda-forge

This fails on my M2 Mac because kastore is "not available".

Could not solve for environment specs
The following package could not be installed
└─ pyslim is not installable because it requires
   └─ kastore, which does not exist (perhaps a missing channel).

According to the kastore docs, anaconda should work https://kastore.readthedocs.io/en/stable/installation.html. But it doesn't for me:

$ conda install kastore -c conda-forge
Channels:
 - conda-forge
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed

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

  - kastore

However, this finishes successfully on my linux machine. Not sure if the reason is the different CPU architecture?

I know I can set up kastore with pip instead and this seems to work without complaints. It is just a little painful to start setting up the conda env without pyslim, then install kastore and pyslim with pip.

Cheers,
Hannes

@jeromekelleher
Copy link
Member

This is a combination of two things:

  1. This Python package includes some C code pretty needlessly (it's really only there to test the C, the Python implementation is perfectly fine)
  2. Our packaging on conda-forge doesn't include support for Apple ARM.

It would probably be best to just refactor the Python package here to make the C code optional, but this would end up being quite a bit of work. The simplest thing in the short term is probably to update the package at https://github.com/conda-forge/kastore-feedstock to add support for Apple.

I'm surprised that pyslim still needs kastore though - is it still looking at the kastore files @petrelharp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants