Closed Maik93 closed 4 years ago
Thanks @Maik93 for reporting this. I reproduced the issue and fixed the issue locally. I'll release an updated version of opengen
and I'll ping you.
The issue is solved in opengen version 0.6.3 (just released).
Thank you!! 😄
Hi, I'm trying to connect to a remote TCP server that runs the compiled solver. As exposed here: https://github.com/alphaville/optimization-engine/blob/d655a88295ea786a8f788f851b589ae2c5c68a7b/open-codegen/opengen/tcp/optimizer_tcp_manager.py#L37-L39
I've written
mng = og.tcp.OptimizerTcpManager(ip="127.0.0.1", port=8333)
but this throwsKeyError: 'build'
on line https://github.com/alphaville/optimization-engine/blob/d655a88295ea786a8f788f851b589ae2c5c68a7b/open-codegen/opengen/tcp/optimizer_tcp_manager.py#L69It's trivial that only
if optimizer_path is not None
the variableself.__optimizer_details
is correctly populated (through the callself.__load_tcp_details()
, I suppose), but ifoptimizer_path
is not given, there is simply https://github.com/alphaville/optimization-engine/blob/d655a88295ea786a8f788f851b589ae2c5c68a7b/open-codegen/opengen/tcp/optimizer_tcp_manager.py#L65It's clear that it is a dictionary with no
build
key, but I don't know how to fix it, so here I am to write this report ;)Have a good job and a nice day!