ViperMonkey icon indicating copy to clipboard operation
ViperMonkey copied to clipboard

pip2 install meets error - Module regex

Open WHOLETTHEDOG-OUT opened this issue 2 years ago • 2 comments

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.

WHOLETTHEDOG-OUT avatar Jun 21 '22 15:06 WHOLETTHEDOG-OUT

could anyone help me? Thx!!

WHOLETTHEDOG-OUT avatar Jun 21 '22 15:06 WHOLETTHEDOG-OUT

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).

kirk-sayre-work avatar Jul 21 '22 21:07 kirk-sayre-work