Git Product home page Git Product logo

Comments (9)

maxbachmann avatar maxbachmann commented on June 9, 2024 1

I never came across x86_64-linux-gnu-gcc: fatal error: Killed signal terminated program cc1plus yet, but apparently this might happen when you run out of ram.
Let me know in case you find out whats causing this :)

from rapidfuzz.

RheingoldRiver avatar RheingoldRiver commented on June 9, 2024 1

wow ok, upgraded to 2GB RAM and it successfully installed within seconds - I'm unsure if it was just the server restart that was needed, maybe I should have tried turn-it-off-and-turn-it-on-again before opening this issue, either way I really appreciate the help debugging, and hopefully this thread is helpful to someone in the future!

Collecting rapidfuzz
  Using cached https://files.pythonhosted.org/packages/f6/fc/663e696d1f75816d244dd4a8e9f2351ddacd6c07e2c32c780f7f0c39b934/rapidfuzz-0.9.1.tar.gz
Building wheels for collected packages: rapidfuzz
  Running setup.py bdist_wheel for rapidfuzz ... done
  Stored in directory: /root/.cache/pip/wheels/21/05/9a/c14195745fef04b01dc9c0cb83c4c2de057ab75f26f6fb8927
Successfully built rapidfuzz
Installing collected packages: rapidfuzz
Successfully installed rapidfuzz-0.9.1

from rapidfuzz.

maxbachmann avatar maxbachmann commented on June 9, 2024

I did never run into this myself yet. Could you share the command line output from before the error?

Btw what hardware are you using? At least for X86 and Amd64 there are wheels on pypi. So as long as your not using ARMv6 you should be able to use pip install rapidfuzz without compiling anything.

from rapidfuzz.

RheingoldRiver avatar RheingoldRiver commented on June 9, 2024
Collecting rapidfuzz
  Using cached https://files.pythonhosted.org/packages/f6/fc/663e696d1f75816d244dd4a8e9f2351ddacd6c07e2c32c780f7f0c39b934/rapidfuzz-0.9.1.tar.gz
Building wheels for collected packages: rapidfuzz

Edit - oops, I misread, here's the output.

I'm not getting any error, it's just timing out on Running setup.py bdist_wheel for rapidfuzz .... I did find this other issue so maybe I'll just leave it running for a couple hours?

I'm running on a digital ocean droplet, cheapest tier they have, I'm not sure hardware specifics. Debian 10.2.

from rapidfuzz.

RheingoldRiver avatar RheingoldRiver commented on June 9, 2024

Okay so I'd started it about 30 minutes before responding above I think, so after about an hour total I got this:

Collecting rapidfuzz
  Using cached https://files.pythonhosted.org/packages/f6/fc/663e696d1f75816d244dd4a8e9f2351ddacd6c07e2c32c780f7f0c39b934/rapidfuzz-0.9.1.tar.gz
Building wheels for collected packages: rapidfuzz
  Running setup.py bdist_wheel for rapidfuzz ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-jgv0b5zc/rapidfuzz/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-d7w0gj0e --python-tag cp37:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/rapidfuzz
  copying src/rapidfuzz/__init__.py -> build/lib.linux-x86_64-3.7/rapidfuzz
  copying src/rapidfuzz/process.py -> build/lib.linux-x86_64-3.7/rapidfuzz
  running egg_info
  writing src/rapidfuzz.egg-info/PKG-INFO
  writing dependency_links to src/rapidfuzz.egg-info/dependency_links.txt
  writing top-level names to src/rapidfuzz.egg-info/top_level.txt
  reading manifest file 'src/rapidfuzz.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files found matching 'src/rapidfuzz-cpp/src/process.hpp'
  warning: no previously-included files found matching 'src/rapidfuzz-cpp/src/process.txx'
  writing manifest file 'src/rapidfuzz.egg-info/SOURCES.txt'
  running build_ext
  building 'rapidfuzz.levenshtein' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/src
  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 -Isrc/rapidfuzz-cpp/src -Isrc/rapidfuzz-cpp/extern -Iextern -I/usr/include/python3.7m -c src/py_levenshtein.cpp -o build/temp.linux-x86_64-3.7/src/py_levenshtein.o -O3 -std=c++14 -DVERSION_INFO="0.9.1"
  x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.7/src/py_levenshtein.o -o build/lib.linux-x86_64-3.7/rapidfuzz/levenshtein.cpython-37m-x86_64-linux-gnu.so
  building 'rapidfuzz.fuzz' extension
  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 -Isrc/rapidfuzz-cpp/src -Isrc/rapidfuzz-cpp/extern -Iextern -I/usr/include/python3.7m -c src/py_fuzz.cpp -o build/temp.linux-x86_64-3.7/src/py_fuzz.o -O3 -std=c++14 -DVERSION_INFO="0.9.1"
  x86_64-linux-gnu-gcc: fatal error: Killed signal terminated program cc1plus
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for rapidfuzz
  Running setup.py clean for rapidfuzz
Failed to build rapidfuzz
Installing collected packages: rapidfuzz
  Running setup.py install for rapidfuzz ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-jgv0b5zc/rapidfuzz/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-5pxgsrsx/install-record.txt --single-version-externally-managed --compile:
    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/rapidfuzz
    copying src/rapidfuzz/__init__.py -> build/lib.linux-x86_64-3.7/rapidfuzz
    copying src/rapidfuzz/process.py -> build/lib.linux-x86_64-3.7/rapidfuzz
    running egg_info
    writing src/rapidfuzz.egg-info/PKG-INFO
    writing dependency_links to src/rapidfuzz.egg-info/dependency_links.txt
    writing top-level names to src/rapidfuzz.egg-info/top_level.txt
    reading manifest file 'src/rapidfuzz.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files found matching 'src/rapidfuzz-cpp/src/process.hpp'
    warning: no previously-included files found matching 'src/rapidfuzz-cpp/src/process.txx'
    writing manifest file 'src/rapidfuzz.egg-info/SOURCES.txt'
    running build_ext
    building 'rapidfuzz.levenshtein' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/src
    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 -Isrc/rapidfuzz-cpp/src -Isrc/rapidfuzz-cpp/extern -Iextern -I/usr/include/python3.7m -c src/py_levenshtein.cpp -o build/temp.linux-x86_64-3.7/src/py_levenshtein.o -O3 -std=c++14 -DVERSION_INFO="0.9.1"
    x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.7/src/py_levenshtein.o -o build/lib.linux-x86_64-3.7/rapidfuzz/levenshtein.cpython-37m-x86_64-linux-gnu.so
    building 'rapidfuzz.fuzz' extension
    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 -Isrc/rapidfuzz-cpp/src -Isrc/rapidfuzz-cpp/extern -Iextern -I/usr/include/python3.7m -c src/py_fuzz.cpp -o build/temp.linux-x86_64-3.7/src/py_fuzz.o -O3 -std=c++14 -DVERSION_INFO="0.9.1"
    x86_64-linux-gnu-gcc: fatal error: Killed signal terminated program cc1plus
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-jgv0b5zc/rapidfuzz/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-5pxgsrsx/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-jgv0b5zc/rapidfuzz/

from rapidfuzz.

maxbachmann avatar maxbachmann commented on June 9, 2024

Hm weird I did just create a droplet of the smallest size with debian 10.3 at DO and installed it within a couple seconds (same when I recompile it by ignoring the wheel pip3 install rapidfuzz --no-binary :all:)

pip3 install rapidfuzz
Collecting rapidfuzz
  Downloading https://files.pythonhosted.org/packages/f6/fc/663e696d1f75816d244dd4a8e9f2351ddacd6c07e2c32c780f7f0c39b934/rapidfuzz-0.9.1.tar.gz (70kB)
    100% |████████████████████████████████| 71kB 6.7MB/s 
Building wheels for collected packages: rapidfuzz
  Running setup.py bdist_wheel for rapidfuzz ... done
  Stored in directory: /root/.cache/pip/wheels/21/05/9a/c14195745fef04b01dc9c0cb83c4c2de057ab75f26f6fb8927
Successfully built rapidfuzz
Installing collected packages: rapidfuzz
Successfully installed rapidfuzz-0.9.1

@RheingoldRiver how do you install rapidfuzz?

from rapidfuzz.

RheingoldRiver avatar RheingoldRiver commented on June 9, 2024

Same as you, pip3 install rapidfuzz

Just now I tried installing python3.7-dev and running again based on this thread, I'm gonna eat breakfast and shower and see if it successfully installed when I get back to my computer.

A friend of mine set up this server and configured a bunch of stuff for me so I'm not sure if he did anything that could be interfering with this, but he's been unavailable for a few days. This library is a dependency of another that I need to host a flask app on my website which is currently hosted on this server; if I can't get this installed I could host it on another domain instead, at least temporarily until my friend can figure out what's going on.

from rapidfuzz.

RheingoldRiver avatar RheingoldRiver commented on June 9, 2024

Ahh ok if/when this fails, I'll try temporarily upgrading the ram and see if that fixes the issue, thanks!

from rapidfuzz.

maxbachmann avatar maxbachmann commented on June 9, 2024

Great glad to see it working now :)

from rapidfuzz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.