适用的是python3.10.6版本,使用python3 ./install.py时安装youcompletme遇到以下错误,这里是什么错误呢?是python版本太高了么,错误显示下面这些python中的库函数被丢弃使用了,找不出具体原因。
报错如下:
[ 66%] Building C object CMakeFiles/_regex.dir/regex_3/_regex_unicode.c.o
/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c: In function ‘unicode_slice’:
/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:19105:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
19105 | length = PyUnicode_GET_SIZE(string);
| ^~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject op) {
| ^~~~~~
/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:19105:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
19105 | length = PyUnicode_GET_SIZE(string);
| ^~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48:
/usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE ) PyUnicode_AsUnicode(
| ^~~~~~~
/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:19105:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
19105 | length = PyUnicode_GET_SIZE(string);
| ^~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48:
/usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject op) {
| ^~~~~~
/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c: In function ‘join_list_info’:
/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:20021:13: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
20021 | joiner = PyUnicode_FromUnicode(NULL, 0);
| ^~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject) PyUnicode_FromUnicode(
| ^~~~~
/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:20051:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
20051 | return PyUnicode_FromUnicode(NULL, 0);
| ^~
In file included from /usr/include/python3.10/unicodeobject.h:1046,
from /usr/include/python3.10/Python.h:83,
from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48:
/usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
| ^~~~~
[100%] Linking C shared library /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.so
[100%] Built target _regex
适用的是python3.10.6版本,使用python3 ./install.py时安装youcompletme遇到以下错误,这里是什么错误呢?是python版本太高了么,错误显示下面这些python中的库函数被丢弃使用了,找不出具体原因。 报错如下: [ 66%] Building C object CMakeFiles/_regex.dir/regex_3/_regex_unicode.c.o /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c: In function ‘unicode_slice’: /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:19105:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 19105 | length = PyUnicode_GET_SIZE(string); | ^
~In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject op) { | ^~~~~~/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:19105:5: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations] 19105 | length = PyUnicode_GET_SIZE(string); | ^~In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48: /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here 580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE ) PyUnicode_AsUnicode( | ^~~~~~~ /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:19105:5: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 19105 | length = PyUnicode_GET_SIZE(string); | ^~In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48: /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject op) { | ^~~~~~/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c: In function ‘join_list_info’: /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:20021:13: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 20021 | joiner = PyUnicode_FromUnicode(NULL, 0); | ^~In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48: /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject) PyUnicode_FromUnicode( | ^~~~~/home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:20051:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations] 20051 | return PyUnicode_FromUnicode(NULL, 0); | ^~In file included from /usr/include/python3.10/unicodeobject.h:1046, from /usr/include/python3.10/Python.h:83, from /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.c:48: /usr/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here 551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode( | ^~~~~[100%] Linking C shared library /home/cyf/.vim/plugged/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.so [100%] Built target _regex