-
Notifications
You must be signed in to change notification settings - Fork 141
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
Debian 12 install fail #563
Comments
This is probably caused by the interaction between gcc, cython, and the
most recent python version.
Specifically, I'm not sure if we support python 3.13 yet. Or it could be
that debian 12 has a gcc version that is "too modern" and we haven't
modified the cython code.
Would you be able to test the installation in python 3.12?
…On Wed, Jan 29, 2025 at 12:07 PM Software Literacy Foundation < ***@***.***> wrote:
Hi, I tried both a pypi and github install, both fail. The install
commands are:
python -m pip install pycortex --target=$PYTHON_SITE_PACKAGES/ --upgrade
python -m pip install git+https://github.com/gallantlab/pycortex.git --target=$PYTHON_SITE_PACKAGES/ --upgrade
The system is:
Linux xxx 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
> python --version
Python 3.13.1
Excerpt of the error:
Building wheel for pycortex (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pycortex (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [593 lines of output]
running bdist_wheel
...
/home/xxx/apps/Python-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 pycortex
Failed to build pycortex
Thank you.
—
Reply to this email directly, view it on GitHub
<#563>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABO5TGV543HG75Q5ZA64RVT2NEDEFAVCNFSM6AAAAABWDLGNPSVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAYTQNZXGQ2TGMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Matteo Visconti di Oleggio Castello, Ph.D.
Assistant Project Scientist
Department of Neuroscience, UC Berkeley
MatteoVisconti.com <http://matteovisconti.com> || github.com/mvdoc ||
linkedin.com/in/matteovisconti
|
Thanks for the feedback. Downgrading is a step back I'm not invested in for a single dependency. Please let us know when you feel these are supported. Thank you.
|
This looks like a Python 3.13 problem. I think we'll need to update to Cython 3.x to solve this, since I don't see the relevant commit on the 0.29.x branch that we're still using. cython/cython#5997 Log with the specific error:
|
@SoftwareLiteracy , thanks to @kroq-gar78's fixes you should be able to install pycortex in Python 3.13. I will release a new pycortex version on pypi soon, but in the meanwhile you can try installing directly from the repo on github. Please feel free to reopen this issue if there are still issues. |
Hi, I tried both a pypi and github install, both fail. The install commands are:
The system is:
Excerpt of the error:
Thank you.
The text was updated successfully, but these errors were encountered: