Can't install on Debian using pip

Create issue
Issue #379 new
Former user created an issue

Hi, I'm trying to install this package using pip 20.1.1 on Debian 10 (Python 3.7.3).

Probably I'm doing something wrong, can you see what...? Or some workaround to get the app installed? (Btw, the same pip command executed from another computer, always Debian 10, works without problems).

(venvtest) ericette@do-cm-ericette:~/tmp/venvtest $ pip install git+https://bitbucket.org/mrabarnett/mrab-regex.git@fe9fb05890e6c9f04f34a36ebb1067d5a8277635
Collecting git+https://bitbucket.org/mrabarnett/mrab-regex.git@fe9fb05890e6c9f04f34a36ebb1067d5a8277635
  Cloning https://bitbucket.org/mrabarnett/mrab-regex.git (to revision fe9fb05890e6c9f04f34a36ebb1067d5a8277635) to /tmp/pip-req-build-913_hn3u
  Running command git clone -q https://bitbucket.org/mrabarnett/mrab-regex.git /tmp/pip-req-build-913_hn3u
Using legacy setup.py install for regex, since package 'wheel' is not installed.
Installing collected packages: regex
    Running setup.py install for regex ... error
    ERROR: Command errored out with exit status 1:
     command: /home/ericette/tmp/venvtest/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-913_hn3u/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-913_hn3u/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-awoj7nai/install-record.txt --single-version-externally-managed --compile --install-headers /home/ericette/tmp/venvtest/include/site/python3.7/regex
         cwd: /tmp/pip-req-build-913_hn3u/
    Complete output (51 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/regex
    copying regex_3/__init__.py -> build/lib.linux-x86_64-3.7/regex
    copying regex_3/regex.py -> build/lib.linux-x86_64-3.7/regex
    copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.7/regex
    copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.7/regex
    running build_ext
    building 'regex._regex' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/regex_3
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/ericette/tmp/venvtest/include -I/usr/include/python3.7m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.7/regex_3/_regex.o
    regex_3/_regex.c: In function folded_char_at:
    regex_3/_regex.c:9897:9: warning: variable folded_len set but not used [-Wunused-but-set-variable]
         int folded_len;
             ^~~~~~~~~~
    regex_3/_regex.c: In function fuzzy_match_group_fld:
    regex_3/_regex.c:10815:10: warning: data.new_text_pos may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (!record_fuzzy(state, data.fuzzy_type, data.fuzzy_type == RE_FUZZY_DEL ?
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           data.new_text_pos : data.new_text_pos - data.step))
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    regex_3/_regex.c: In function fuzzy_match_string_fld:
    regex_3/_regex.c:10580:10: warning: data.new_text_pos may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (!record_fuzzy(state, data.fuzzy_type, data.fuzzy_type == RE_FUZZY_DEL ?
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           data.new_text_pos : data.new_text_pos - data.step))
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    regex_3/_regex.c: In function basic_match:
    regex_3/_regex.c:10921:10: warning: data.new_text_pos may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (!record_fuzzy(state, data.fuzzy_type, data.fuzzy_type == RE_FUZZY_DEL ?
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           data.new_text_pos : data.new_text_pos - data.step))
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    regex_3/_regex.c:10835:18: note: data.new_text_pos was declared here
         RE_FuzzyData data;
                      ^~~~
    regex_3/_regex.c:10680:10: warning: data.new_text_pos may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (!record_fuzzy(state, data.fuzzy_type, data.fuzzy_type == RE_FUZZY_DEL ?
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           data.new_text_pos : data.new_text_pos - data.step))
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    regex_3/_regex.c:10599:18: note: data.new_text_pos was declared here
         RE_FuzzyData data;
                      ^~~~
    x86_64-linux-gnu-gcc: fatal error: Killed signal terminated program cc1
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/ericette/tmp/venvtest/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-913_hn3u/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-913_hn3u/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-awoj7nai/install-record.txt --single-version-externally-managed --compile --install-headers /home/ericette/tmp/venvtest/include/site/python3.7/regex Check the logs for full command output.

Comments (1)

  1. Matthew Barnett repo owner

    Try comparing with the options being passed to gcc on the other machine. The only error I can see is the “Killed signal terminated program cc1“, which doesn’t seem to be anything to do with the code; all the rest are warnings (and false positives).

  2. Log in to comment