Open LGro opened 1 year ago
The issue might also go away with the release of python-poetry/poetry/pull/5172 EDIT: Still seems to be an issue with Poetry 1.2.1
Hi,
thanks for your feedback! Unfortunately, I dont have any experience with poetry. Could you provide me the commands you use to install hpobench?
Sure, i will check if we can install yahpo_gym
also per wheel. Fyi, yahpo_gym
was moved to https://github.com/slds-lmu/yahpo_gym
.
Therefore, the link in the dependencies ( extra_requirements/yahpo_gym.json
) has changed to
{
"yahpo_gym": ["yahpo_gym@git+https://github.com/slds-lmu/yahpo_gym@9ec63dddcdfc4ba9d6084a9fd17dcd63a1386233#egg=yahpo_gym&subdirectory=yahpo_gym"],
}
Maybe this already solves the issue?
One thing that makes me curious:
Why does poetry try to install yahpo_gym
at all? Actually, you don't have to install the extra dependencies to use the benchmark.
Since each benchmark is located in a container (that is the main advantage of your package, :wink:) the following should already work:
from hpobench.container.benchmarks.surrogates.yahpo_gym import YAHPOGymMOBenchmark
If you could describe me your usecase a little bit more, i might be able to provide better support :-)
Cheers, Philipp
Hi, apologies for the lackluster reproduction instructions; here is another take :relaxed:
pip install poetry==1.2.1
pyproject.toml
hpobench_yahpo_failure
that contains an empty __init__.py
poetry install
I'm aware of the convenient container isolation and this is the use case, so I share your confusion about why poetry is looking for yahpo_gym
in the first place.
With the following
pyproject.toml
in a Python 3.9 environment with Poetry version 1.2.0:the following error occurs:
which I don't get when just using vanilla pip to
This makes me think that poetry might miss the subdirectory specification in the hpobench dependencies and I'm wondering if it might be viable to switch in hpobench to the wheel from pypi.org instead of installing the
yahpo-gym
dependency from source in hpobench.