Skip to content

Commit d17564b

Browse files
committed
Unpin openfermion, needed for tests
Without this change, the following test error will occur: libs/solvers/python/tests/test_jordan_wigner.py::test_ground_state - AttributeError: `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead. This message originates from openfermion, which we had previously pinned to 1.6.1. This change unpins that to allow it to advance to 0.7. Signed-off-by: Ben Howe <[email protected]>
1 parent 1bcb91d commit d17564b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker/release/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ USER cudaq
5050
RUN python3 -m pip install --user fastapi uvicorn pyscf networkx
5151

5252
# Needed for testing
53-
RUN python3 -m pip install --user openfermion==1.6.1 openfermionpyscf
53+
RUN python3 -m pip install --user openfermion openfermionpyscf
5454

5555
WORKDIR /home/cudaq
5656
ENTRYPOINT ["bash", "-l"]

scripts/validation/wheel/validate_wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ test_examples() {
6262

6363
# Needed for tests:
6464
pip install pytest
65-
pip install openfermion==1.6.1 openfermionpyscf
65+
pip install openfermion openfermionpyscf
6666

6767
# Dump a version string to the logs
6868
python3 -c 'import cudaq; print(cudaq.__version__)'

0 commit comments

Comments
 (0)