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

Installation issue on apple M2 #11

Open
Machadum opened this issue Jul 10, 2024 · 3 comments
Open

Installation issue on apple M2 #11

Machadum opened this issue Jul 10, 2024 · 3 comments

Comments

@Machadum
Copy link

Hi

I was unfortunately unsuccessful with the installation. Could you please help me with this? Here are the outputs:

conda install -c bioconda vcf2tsvpy

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

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides cyvcf2 needed by vcf2tsvpy-0.6.0-pyh0517881_0

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

cyvcf2

Traceback (most recent call last):
  File "/Users/ipmc/miniconda3/bin/cyvcf2", line 5, in <module>
    from cyvcf2.__main__ import cli
  File "/Users/ipmc/miniconda3/lib/python3.12/site-packages/cyvcf2/__init__.py", line 1, in <module>
    from .cyvcf2 import (VCF, Variant, Writer, r_ as r_unphased, par_relatedness,
ImportError: dlopen(/Users/ipmc/miniconda3/lib/python3.12/site-packages/cyvcf2/cyvcf2.cpython-312-darwin.so, 0x0002): symbol not found in flat namespace '_bcf_hdr_format'

Many thanks!

@sigven
Copy link
Owner

sigven commented Jul 10, 2024

Hi Marie-Charlotte,

Thanks for reporting. I am currently on vacation, will have a look into your issue when I am back in late July.

cc @brentp: got any clue as to cyvcf2 availability on Apple M2?

best,
Sigve

@pdiakumis
Copy link
Collaborator

Hi @Machadum, since you have an M2 you might need to do the following (I have an M1 and it works) (tip is from conda-forge/miniforge#165 (comment)):

# create a new environment called env1 with intel packages
CONDA_SUBDIR=osx-64 conda create -n env1 -c bioconda vcf2tsvpy

# make sure that conda commands in this environment use intel packages
conda config --env --set subdir osx-64

@Machadum
Copy link
Author

Thanks a lot for the tip @pdiakumis!

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

3 participants