sdsc-ordes / modos-api

Python API to manage multi-omics digital objects
https://sdsc-ordes.github.io/modos-api
Apache License 2.0
0 stars 0 forks source link

[Bug]: Error when installing on Win11, 3.12.1, because of pysam not supporting PEP 517 builds. #112

Open htmonkey opened 18 hours ago

htmonkey commented 18 hours ago

Contact Details

No response

What happened?

I tried several times to install via pip and poetry in clean venvs, on 3.10 and 3.12, but it always fails because of pysam-0.22.1 and PEP517. PS: I can install it on Ubuntu. PS2: pip, wheel, setuptools, etc are all updated.

This is the cleanest error log:

PS D:\SW\modo-test> poetry add modos Using version ^0.2.2 for modos

Updating dependencies Resolving dependencies... (2.2s)

Package operations: 67 installs, 0 updates, 0 removals

Note: This error originates from the build backend, and is likely not a problem with poetry but with pysam (0.22.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pysam (==0.22.1)"'.

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

What system are you using?

Microsoft Windows

Relevant log output

No response

cmdoret commented 17 hours ago

It seems that pysam indeed does not work on windows, however it should work using WSL (see https://github.com/pysam-developers/pysam/issues/575).

Is using WSL a major issue? If so we can look into something else, but AFAIK pysam is the only implementation of CRAM parsing / manipulation in python.

htmonkey commented 16 hours ago

This is a bummer. The whole idea behind MODO is to enable users to import and compute in their preferred environment. WSL is a poor compromise (no graphics for data analysis, speed, etc). For now, I'll use the channel via Jupyter for testing.