ViperMonkey
ViperMonkey copied to clipboard
pip2 install meets error - Module regex
regex_3/_regex.c:26230:16: note: declared here
26230 | PyMODINIT_FUNC PyInit__regex(void) {
| ^~~~~~~~~~~~~
regex_3/_regex.c:26326:16: warning: ‘return’ with a value, in function returning void
26326 | return NULL;
| ^~~~
regex_3/_regex.c:26230:16: note: declared here
26230 | PyMODINIT_FUNC PyInit__regex(void) {
| ^~~~~~~~~~~~~
regex_3/_regex.c:26329:12: warning: ‘return’ with a value, in function returning void
26329 | return m;
| ^
regex_3/_regex.c:26230:16: note: declared here
26230 | PyMODINIT_FUNC PyInit__regex(void) {
| ^~~~~~~~~~~~~
regex_3/_regex.c: At top level:
regex_3/_regex.c:26217:27: error: storage size of ‘regex_module’ isn’t known
26217 | static struct PyModuleDef regex_module = {
| ^~~~~~~~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-eFf_oB/regex/setup.py'"'"'; file='"'"'/tmp/pip-install-eFf_oB/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-6VOyDb/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/regex Check the logs for full command output.
could anyone help me? Thx!!
Can you add the pip command you ran that generated the failure? Also, if you are not already doing so try out the pyuno_elimination branch (that's the one that is being actively maintained right now). That runs only with python 3 (I use pypy3 for all the dev and testing).