Update to juniqutils package
In theory these are the only two changes to be made:
However at the moment I couldnt resolve the environment from the project as the dependcies are 1 year old, to begin with I get:
❯ uv pip install -r requirements.txt --no-cache
Updated https://jugit.fz-juelich.de/juniq/benchmark-suite/juniqutils (69255b7905b11faedb1eeb023299a0358db71903)
Resolved 38 packages in 12.26s
Built juniqutils @ git+https://jugit.fz-juelich.de/juniq/benchmark-suite/juniqutils@69255b7905b11faedb1eeb023299a0358db71903
× Failed to build `numpy==1.24.2`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 8, in <module>
File "/tmp/.tmpbz92w8/builds-v0/.tmpUZUkNw/lib64/python3.12/site-packages/setuptools/__init__.py", line 10, in <module>
import distutils.core
ModuleNotFoundError: No module named 'distutils'
hint: `distutils` was removed from the standard library in Python 3.12. Consider adding a constraint (like `numpy >1.24.2`) to avoid building
a version of `numpy` that depends on `distutils`.
But then If I go to python3.11 which seems to be the newest version that is happy to build the fixed version of numpy, I get the following when importing DWaveSampler:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 9
7 import matplotlib as mpl
8 import matplotlib.pyplot as plt
----> 9 from dwave.system import DWaveSampler, EmbeddingComposite, LeapHybridSampler
10 from collections import defaultdict
11 np.__version__, pd.__version__, dimod.__version__, dwave.system.__version__, mpl.__version__
[ ... ]
File ~/Sandbox/Projects/factoring-ising/.venv/lib64/python3.11/site-packages/dwave/cloud/utils.py:31
29 from dateutil.tz import UTC
30 from functools import partial, wraps
---> 31 from pkg_resources import iter_entry_points
32 from typing import Any, Optional, Sequence, Union
34 import requests
ModuleNotFoundError: No module named 'pkg_resources'
I suppose we should check the versions and update them ( which is problematic in the future, we should come up with some solution for this)
Edited by Karnad, Ashwin