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

install snapatac2 error -- Failed to build snapatac2 MACS3 #375

Open
hwa2Hu opened this issue Jan 28, 2025 · 6 comments
Open

install snapatac2 error -- Failed to build snapatac2 MACS3 #375

hwa2Hu opened this issue Jan 28, 2025 · 6 comments

Comments

@hwa2Hu
Copy link

hwa2Hu commented Jan 28, 2025

Hi Kai,
Got this error when install snapatac2 (Ubutun 22.04.5 LTSw ith macs3 already installed)

1st error:

Building wheels for collected packages: MACS3
Building wheel for MACS3 (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for MACS3 (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [1687 lines of output]
:77: SyntaxWarning: invalid escape sequence '\s'
/tmp/pip-build-env-r8f_zyc3/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py:270: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
running bdist_wheel

2nd error

  MACS3/Signal/HMMR_EM.c: In function ‘__Pyx_PyInt_As_long’:
  MACS3/Signal/HMMR_EM.c:11659:27: error: too few arguments to function ‘_PyLong_AsByteArray’
  11659 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
        |                           ^~~~~~~~~~~~~~~~~~~
  In file included from /home/owner/.pyenv/versions/3.13.1/include/python3.13/longobject.h:107,
                   from /home/owner/.pyenv/versions/3.13.1/include/python3.13/Python.h:81,
                   from MACS3/Signal/HMMR_EM.c:36:
  /home/owner/.pyenv/versions/3.13.1/include/python3.13/cpython/longobject.h:111:17: note: declared here
    111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
        |                 ^~~~~~~~~~~~~~~~~~~
  error: command '/usr/bin/gcc' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for MACS3
Failed to build MACS3
ERROR: Failed to build installable wheels for some pyproject.toml based projects (MACS3)

@hwa2Hu hwa2Hu changed the title install sanpatac2 error -- Failed to build snapatac2 MACS3 install snapatac2 error -- Failed to build snapatac2 MACS3 Jan 28, 2025
@yasnaghamsari
Copy link

Hey,
Did you find a soloution ?

@TingTingShao
Copy link

I used nightly build version with commands:

mamba create --name snap2 python=3.10
mamba activate snap2
sudo apt-get update
sudo apt-get install zlib1g-dev
pip install snapatac2-2.9.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 

Hope it helps.
TingTing

@hwa2Hu
Copy link
Author

hwa2Hu commented Feb 15, 2025

Attached the whole install process

snapatac2 install error.txt

I used nightly build version with commands:

mamba create --name snap2 python=3.10
mamba activate snap2
sudo apt-get update
sudo apt-get install zlib1g-dev
pip install snapatac2-2.9.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 

Hope it helps. TingTing

Do you mean it need python=3.10. ? I used python 3.13.1.

@hwa2Hu
Copy link
Author

hwa2Hu commented Feb 15, 2025

Hey, Did you find a soloution ?

Sorry, not yet.

@hwa2Hu
Copy link
Author

hwa2Hu commented Feb 15, 2025

I used nightly build version with commands:

mamba create --name snap2 python=3.10
mamba activate snap2
sudo apt-get update
sudo apt-get install zlib1g-dev
pip install snapatac2-2.9.0.dev0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl 

Hope it helps. TingTing

Thank you TingTing, Nightly release worked.
They have different release for different python version.
cp313-cp313 is for python 3.13.x

@hwa2Hu
Copy link
Author

hwa2Hu commented Feb 15, 2025

Hey, Did you find a soloution ?

See the post from TingTing. Nightly release worked.

On PC, just

pip install snapatac2-2.9.0.dev0-cpxxx-cpxx.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

(download the version with cpxxx match your python version)

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