Outdated zeroc-ice version
I get this error when I try to pip install -e $armarx__python3_armarx__PATH
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DICE_PYPI -DICE_STATIC_LIBS -Isrc -Isrc/ice/cpp/include -Isrc/ice/cpp/include/generated -Isrc/ice/cpp/src -I/common/homes/students/uzivy_duran/fluxio/armarx/core/armarest/.venv/include -I/common/homes/students/uzivy_duran/fluxio/tools/python/3.11/install/include/python3.11 -c src/Util.cpp -o build/temp.linux-x86_64-cpython-311/src/Util.o -w
src/Util.cpp: In function ‘std::__cxx11::string IcePy::getFunction()’:
src/Util.cpp:237:45: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
PyFrameObject *f = PyThreadState_GET()->frame;
^~~~~
cframe
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for zeroc-ice
Successfully built armarx
Failed to build zeroc-ice
ERROR: Could not build wheels for zeroc-ice, which is required to install pyproject.toml-based projects
After some debugging and researching, I found this issue that is not directly related to the current error but one I had before (But I can't seem to recreate). So I tried to check the zeroc-ice version used in here and realized it is still using 3.7.0
. When I change the version to something newer than 3.7.7
it seems to work. I used e.g. 3.7.10
.