You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zopyx/txng3/ext/python-Levenshtein-0.10/Levenshtein.c:1374:27: error: implicit declaration of function 'PyInt_AS_LONG' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
ops[i].spos = (size_t)PyInt_AS_LONG(item);
^
zopyx/txng3/ext/python-Levenshtein-0.10/Levenshtein.c:1416:28: error: implicit declaration of function 'PyInt_AS_LONG' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
bops[i].sbeg = (size_t)PyInt_AS_LONG(item);
^
zopyx/txng3/ext/python-Levenshtein-0.10/Levenshtein.c:1487:20: error: implicit declaration of function 'PyInt_AS_LONG' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
long int len = PyInt_AS_LONG(object);
PyInt_AS_LONG was removed in Python 3; the replacement is PyLong_AS_LONG, which is just a define for the function call PyLong_AsLong(op).
When I did the initial port to Python 3, these would have been logged as warnings (which of course pip hides), but they do mean that uses of the function (module?) that contain them would fail. I was using a different compiler here (ccache) that explicitly asked for those warnings to be errors.
The text was updated successfully, but these errors were encountered:
jamadden
added a commit
to NextThought/zopyx.txng3.ext
that referenced
this issue
May 20, 2021
The compiler produces these errors:
PyInt_AS_LONG
was removed in Python 3; the replacement isPyLong_AS_LONG
, which is just a define for the function callPyLong_AsLong(op)
.When I did the initial port to Python 3, these would have been logged as warnings (which of course pip hides), but they do mean that uses of the function (module?) that contain them would fail. I was using a different compiler here (
ccache
) that explicitly asked for those warnings to be errors.The text was updated successfully, but these errors were encountered: