Open sandmaennchen opened 10 months ago
@sandmaennchen trying to compile the python interface, I get the error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-4sianxjm/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-4sianxjm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-4sianxjm/pip-egg-info
cwd: /tmp/pip-req-build-4sianxjm/
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-4sianxjm/setup.py", line 38, in <module>
import hpipm_python
File "/tmp/pip-req-build-4sianxjm/hpipm_python/__init__.py", line 36, in <module>
from .common import *
File "/tmp/pip-req-build-4sianxjm/hpipm_python/common.py", line 37, in <module>
from .wrapper.hpipm_solver import *
File "/tmp/pip-req-build-4sianxjm/hpipm_python/wrapper/__init__.py", line 41, in <module>
from .hpipm_ocp_qp_sol import *
File "/tmp/pip-req-build-4sianxjm/hpipm_python/wrapper/hpipm_ocp_qp_sol.py", line 41, in <module>
class hpipm_ocp_qp_sol:
File "/tmp/pip-req-build-4sianxjm/hpipm_python/wrapper/hpipm_ocp_qp_sol.py", line 106, in hpipm_ocp_qp_sol
def get(self, field: str, idx_start: int, idx_end: Optional[int] = None) -> Union[np.ndarray, list[np.ndarray]]:
TypeError: 'type' object is not subscriptable
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I have python 3.8. It seems to be unhappy of the Union stuff, removing that the error is gone. Any hint?
Hi @giaf, type hints should now be backward compatible with python 3.8! Will look into your other comments soon, sorry for the late reply :see_no_evil:
print_stats()
which prints a summary of the IP iterationsidx_end
is given