Open jorgensd opened 2 months ago
This is now present on ubuntu:24.04
with numpy==2.1.1
.
Following is a minimal dockerfile (using the same code as above to verify the Python code):
FROM ubuntu:24.04
ARG MPI="openmpi"
ENV OPENBLAS_NUM_THREADS=1 \
OPENBLAS_VERBOSE=0
ENV DEB_PYTHON_INSTALL_LAYOUT=deb_system
ENV DEBIAN_FRONTEND=noninteractive
ARG ADIOS2_VERSION=v2.10.0
WORKDIR /tmp
RUN apt-get -qq update && \
apt-get -yq upgrade && \
apt-get -y install \
lib${MPI}-dev \
python3-dev \
python3-pip \
python3-setuptools \
python3-venv \
git \
cmake \
ninja-build \
build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENV VIRTUAL_ENV=/test-env
ENV PATH=${VIRTUAL_ENV}/bin:$PATH
RUN python3 -m venv ${VIRTUAL_ENV}
# Install Python packages (via pip)
ARG NUMPY_VERSION=2.1.1
RUN python3 -m pip install --no-cache-dir mpi4py numpy==${NUMPY_VERSION}
ENV CMAKE_INSTALL_PYTHONDIR=${VIRTUAL_ENV}/lib/python3.12/site-packages
# BUILD ADIOS2
RUN git clone --branch=${ADIOS2_VERSION} --single-branch https://github.com/ornladios/ADIOS2.git adios2 && \
cmake -G Ninja -DADIOS2_USE_HDF5=off -DADIOS2_USE_Python=on -DADIOS2_USE_Fortran=off -DBUILD_TESTING=off -DADIOS2_BUILD_EXAMPLES=off -DCMAKE_INSTALL_PYTHONDIR=${CMAKE_INSTALL_PYTHONDIR} -DADIOS2_USE_ZeroMQ=off -B build-dir-adios2 -S ./adios2 && \
cmake -G Ninja -B build-dir-adios2 -DCMAKE_BUILD_TYPE="Release" -S ./adios2/ && \
cmake --build build-dir-adios2 --parallel 2 && \
cmake --install build-dir-adios2
ENV LD_LIBRARY_PATH=/usr/local/lib
WORKDIR /src/test
COPY mwe.py mwe.py
RUN python3 mwe.py -v
RUN bpls -a -l test.bp
Note that this has seems to have been fixed on the master
branch of ADIOS2
, so it would be good with a new release.
Thank you for the report. I can reproduce this on ubuntu 24.04 and adios2 release_210 branch. And as you state, the master branch works fine.
I have the same issue. Would it be possible to create a new release of adios2?
We decided to make a 2.10.2 release with a handful of bug fixes, including this one. Stay tuned.
We decided to make a 2.10.2 release with a handful of bug fixes, including this one. Stay tuned.
Any update on this?
Yes, it was delayed by vacation, but we're hoping to have 2.10.2 out by the end of the week.
I have the following minimal script that writes a numpy array as an attribute in adios2, and in turn read it into the code again:
This works fine with rockylinux 9:
which you can build with:
However, using numpy 2.0.1, one gets
with the following traceback