Closed EricVogl-carta closed 1 year ago
The version of Cython used is not pinned. Cython 3.0.0 was released on 7/17/2023 - is this the issue?
Yep, that's exactly the issue, and the error message you're seeing is the same as #424. That's fixed on main, but we haven't cut a release with the fixed sdist yet.
You should be able to get past this if you do
git clone --depth 1 https://github.com/bloomberg/memray.git memray
without specifying a --branch
.
If you need to build from a 1.8.1 sdist, I think it would work to use (installing a compatible version of Cython in your environment, and then using --no-build-isolation
when building Memray so that it will pick up versions of dependencies from your environment).
python3 -m pip install setuptools wheel 'Cython<3'
python3 -m pip install --no-build-isolation memray
Hopefully one of those two options will unblock you until the fix makes it into a release.
Noticed this same error for version 1.8.0 using Python3.8 as well.
Noticed this same error for version 1.8.0 using Python3.8 as well.
Yes, building any released version from source will behave this way until we can publish a new sdist. In the meantime, building from the main
branch of a git clone is probably the easiest option. We'll get a new release out soon.
Thanks, folks. Confirmed building from main works.
Memray 1.9.0 has just been published, and its sdist should be able to build successfully with Cython 3.0.
Thanks for the patience!
Is there an existing issue for this?
Current Behavior
Memray is failing to build from source via the instructions in the README.
I'm doing this in a aarch64 debian-based Docker image,
python:3.10.12-bookworm
. The librariesliblz4-dev
andlibunwind-dev
are installed. A Dockerfile is included under steps to reproduce.When building Memray, I'm seeing the following error:
This also occurs when the wheel attempts to build from source when attempting to install memray via pip.
Expected Behavior
Memray builds per the instructions.
Steps To Reproduce
ARG TARGETPLATFORM ARG TARGETARCH RUN echo "Building for platform: $TARGETPLATFORM" RUN echo "Building for architecture: $TARGETARCH" ENV DEBIAN_FRONTEND=noninteractive ENV PYTHONUNBUFFERED=1
RUN apt-get update \ && apt-get install -y \ liblz4-dev \ libunwind-dev
SHELL ["/bin/bash", "-c"] RUN git clone --depth 1 --branch v1.8.1 https://github.com/bloomberg/memray.git memray \ && cd memray \ && python3 -m venv ../memray-env/ \ && source ../memray-env/bin/activate \ && python3 -m pip install --upgrade pip \ && python3 -m pip install -e . -r requirements-test.txt -r requirements-extra.txt
docker build -t .