google/visqol

Please specify the supported Python versions.

Opened this issue · 2 comments

Hello, I tried to install the visqol pacakge on python3.8 using pip install .but failed, saying that "undefined reference to symbol PyFrame_GetCode". And I successfully install it on python3.11 .
I think that the supported Python versions should be specified. Maybe we can mention the supported python version in README.md or add the code like python_requires='>=3.10' in setup.py .

IcyW commented

same problem.

external/pybind11_abseil/pybind11_abseil/absl_casters.h:91:24: error: use of undeclared identifier 'PyUnicode_AsUTF8'

external/pybind11_abseil/pybind11_abseil/import_status_module.cc:13:8: error: use of undeclared identifier 'PyGILState_Check'

我遇到了和你一样的问题,我把克隆的库删除重新克隆,再在新的pyhton3.9环境中安装就不再出现这个问题了。我想我出现这种问题的原因是我在3.11的环境中使用linux安装的方式安装过这个包,导致里面的文件被py3.11编译过,然后再在其他pyhton版本就出现这种问题(但只是猜想)