Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker broken build #726

Closed
wiljateiwaz opened this issue Apr 1, 2021 · 5 comments · Fixed by #727
Closed

Docker broken build #726

wiljateiwaz opened this issue Apr 1, 2021 · 5 comments · Fixed by #727

Comments

@wiljateiwaz
Copy link
Contributor

wiljateiwaz commented Apr 1, 2021

Hello, I'm trying to setup an instance with Docker, I cloned the repository on my machine, I followed the documentation with Docker. I changed few options in the Dockerfile:

  • ACTIVATE_DEMO_PROJECT to False
  • ALLOW_PUBLIC_PROJECT_CREATION to False
  • ACTIVATE_ADMIN_DASHBOARD to True

The docker build part worked just fine, but when I'm trying to run the container I face an error to Building wheel for greenlet with following command:

docker run -p 8000:8000 -e SECRET_KEY="....." -e ADMIN_PASSWORD="pbkdf2:sha256:....." -v /var/lib/ihatemoney-db:/database ihatemoney

and the logs from it:

Building wheels for collected packages: ihatemoney, blinker, Flask-Babel, Flask-Mail, Flask-Script, MarkupSafe, SQLAlchemy, greenlet
  Building wheel for ihatemoney (setup.py): started
  Building wheel for ihatemoney (setup.py): finished with status 'done'
  Created wheel for ihatemoney: filename=ihatemoney-4.1.5-py3-none-any.whl size=445582 sha256=bfb417a03469d045e5dcc5fde93ae2312c48c37d6c7c28897b43dc9e5c045d76
  Stored in directory: /tmp/pip-ephem-wheel-cache-x_ips403/wheels/1c/e5/12/0f973d4ae5de53359d441ea998bf5a1944aa718a5279a38cbe
  Building wheel for blinker (setup.py): started
  Building wheel for blinker (setup.py): finished with status 'done'
  Created wheel for blinker: filename=blinker-1.4-py3-none-any.whl size=13451 sha256=e76f38f45fe2bd2176562767847a328abf616459551a5fad26350cf3f48191de
  Stored in directory: /tmp/pip-ephem-wheel-cache-x_ips403/wheels/22/f5/18/df711b66eb25b21325c132757d4314db9ac5e8dabeaf196eab
  Building wheel for Flask-Babel (setup.py): started
  Building wheel for Flask-Babel (setup.py): finished with status 'done'
  Created wheel for Flask-Babel: filename=Flask_Babel-0.12.2-py3-none-any.whl size=9264 sha256=3acee53a5e7b77284b15532f7da4166f5c21c70a0d9b35314f1865b85e1f2004
  Stored in directory: /tmp/pip-ephem-wheel-cache-x_ips403/wheels/4b/84/b6/a63a6e1b865e36aa4fcc9b6da4a7859608d89520d655012bfc
  Building wheel for Flask-Mail (setup.py): started
  Building wheel for Flask-Mail (setup.py): finished with status 'done'
  Created wheel for Flask-Mail: filename=Flask_Mail-0.9.1-py3-none-any.whl size=7568 sha256=ac1e137e2b958844d1af557c1c3226bf4d7f9859ec88f25484784ae8fb00cd40
  Stored in directory: /tmp/pip-ephem-wheel-cache-x_ips403/wheels/c3/46/1d/34849a40eb7e4b84d8c794ef49bce76c7d9e968cf0400f2e5c
  Building wheel for Flask-Script (setup.py): started
  Building wheel for Flask-Script (setup.py): finished with status 'done'
  Created wheel for Flask-Script: filename=Flask_Script-2.0.6-py3-none-any.whl size=14015 sha256=a05bd94b14968620d451d5589042ed2556cf436b1eaf899edbe78bbdb82a74ab
  Stored in directory: /tmp/pip-ephem-wheel-cache-x_ips403/wheels/b5/fb/6b/01ea56e8a6486540ebe086676c8b3a823f1bbcc830df0cd4f0
  Building wheel for MarkupSafe (setup.py): started
  Building wheel for MarkupSafe (setup.py): finished with status 'done'
  Created wheel for MarkupSafe: filename=MarkupSafe-1.1.1-cp37-cp37m-linux_x86_64.whl size=17026 sha256=48df086eca05e5fdb4a9ac6c608c2a3bc7e5fbb4c717df74adc8d365645576b1
  Stored in directory: /tmp/pip-ephem-wheel-cache-x_ips403/wheels/b9/d9/ae/63bf9056b0a22b13ade9f6b9e08187c1bb71c47ef21a8c9924
  Building wheel for SQLAlchemy (setup.py): started
  Building wheel for SQLAlchemy (setup.py): finished with status 'done'
  Created wheel for SQLAlchemy: filename=SQLAlchemy-1.4.4-cp37-cp37m-linux_x86_64.whl size=1455939 sha256=fb3cceb1260d3826b5a7bfba806e475e787603aa6c29857460681f5452fce2c3
  Stored in directory: /tmp/pip-ephem-wheel-cache-x_ips403/wheels/39/f0/4c/0e43fdd81814219b177a1153ce747b7eef0ac0ab203366f043
  Building wheel for greenlet (setup.py): started
  Building wheel for greenlet (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8yn7po5e/greenlet_4060b6b2f65144bf80afbfdc7f9e31e4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8yn7po5e/greenlet_4060b6b2f65144bf80afbfdc7f9e31e4/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-90lm8ybr
       cwd: /tmp/pip-install-8yn7po5e/greenlet_4060b6b2f65144bf80afbfdc7f9e31e4/
  Complete output (82 lines):
  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/greenlet
  copying src/greenlet/__init__.py -> build/lib.linux-x86_64-3.7/greenlet
  creating build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_generator_nested.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_contextvars.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_extension_interface.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_leaks.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/__init__.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_greenlet.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_throw.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_gc.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_cpp.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_stack_saved.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_tracing.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_generator.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_weakref.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/test_version.py -> build/lib.linux-x86_64-3.7/greenlet/tests
  running egg_info
  writing src/greenlet.egg-info/PKG-INFO
  writing dependency_links to src/greenlet.egg-info/dependency_links.txt
  writing requirements to src/greenlet.egg-info/requires.txt
  writing top-level names to src/greenlet.egg-info/top_level.txt
  reading manifest file 'src/greenlet.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  no previously-included directories found matching 'docs/_build'
  warning: no files found matching '*.py' under directory 'appveyor'
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '*.pyd' found anywhere in distribution
  warning: no previously-included files matching '*.so' found anywhere in distribution
  warning: no previously-included files matching '.coverage' found anywhere in distribution
  writing manifest file 'src/greenlet.egg-info/SOURCES.txt'
  copying src/greenlet/greenlet.c -> build/lib.linux-x86_64-3.7/greenlet
  copying src/greenlet/greenlet.h -> build/lib.linux-x86_64-3.7/greenlet
  copying src/greenlet/slp_platformselect.h -> build/lib.linux-x86_64-3.7/greenlet
  creating build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/setup_switch_x64_masm.cmd -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_aarch64_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_alpha_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_amd64_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_arm32_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_arm32_ios.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_csky_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_m68k_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_mips_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_ppc64_aix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_ppc64_linux.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_ppc_aix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_ppc_linux.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_ppc_macosx.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_ppc_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_riscv_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_s390_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_sparc_sun_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_x32_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_x64_masm.asm -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_x64_masm.obj -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_x64_msvc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_x86_msvc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/platform/switch_x86_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
  copying src/greenlet/tests/_test_extension.c -> build/lib.linux-x86_64-3.7/greenlet/tests
  copying src/greenlet/tests/_test_extension_cpp.cpp -> build/lib.linux-x86_64-3.7/greenlet/tests
  running build_ext
  building 'greenlet._greenlet' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/src
  creating build/temp.linux-x86_64-3.7/src/greenlet
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c src/greenlet/greenlet.c -o build/temp.linux-x86_64-3.7/src/greenlet/greenlet.o
  gcc -shared -Wl,--strip-all build/temp.linux-x86_64-3.7/src/greenlet/greenlet.o -L/usr/local/lib -lpython3.7m -o build/lib.linux-x86_64-3.7/greenlet/_greenlet.cpython-37m-x86_64-linux-gnu.so
  building 'greenlet.tests._test_extension' extension
  creating build/temp.linux-x86_64-3.7/src/greenlet/tests
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Isrc/greenlet/ -I/usr/local/include/python3.7m -c src/greenlet/tests/_test_extension.c -o build/temp.linux-x86_64-3.7/src/greenlet/tests/_test_extension.o
  gcc -shared -Wl,--strip-all build/temp.linux-x86_64-3.7/src/greenlet/tests/_test_extension.o -L/usr/local/lib -lpython3.7m -o build/lib.linux-x86_64-3.7/greenlet/tests/_test_extension.cpython-37m-x86_64-linux-gnu.so
  building 'greenlet.tests._test_extension_cpp' extension
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Isrc/greenlet/ -I/usr/local/include/python3.7m -c src/greenlet/tests/_test_extension_cpp.cpp -o build/temp.linux-x86_64-3.7/src/greenlet/tests/_test_extension_cpp.o
  gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for greenlet
  Running setup.py clean for greenlet
Successfully built ihatemoney blinker Flask-Babel Flask-Mail Flask-Script MarkupSafe SQLAlchemy
Failed to build greenlet
Installing collected packages: zipp, typing-extensions, MarkupSafe, Werkzeug, six, Jinja2, itsdangerous, importlib-metadata, greenlet, click, SQLAlchemy, pytz, python-editor, python-dateutil, Mako, Flask, WTForms, idna, Flask-SQLAlchemy, dnspython, blinker, Babel, aniso8601, alembic, Flask-WTF, Flask-Script, Flask-RESTful, Flask-Migrate, Flask-Mail, Flask-Cors, Flask-Babel, email-validator, ihatemoney
    Running setup.py install for greenlet: started
    Running setup.py install for greenlet: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8yn7po5e/greenlet_4060b6b2f65144bf80afbfdc7f9e31e4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8yn7po5e/greenlet_4060b6b2f65144bf80afbfdc7f9e31e4/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-tl97utwx/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7m/greenlet
         cwd: /tmp/pip-install-8yn7po5e/greenlet_4060b6b2f65144bf80afbfdc7f9e31e4/
    Complete output (82 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/greenlet
    copying src/greenlet/__init__.py -> build/lib.linux-x86_64-3.7/greenlet
    creating build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_generator_nested.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_contextvars.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_extension_interface.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_leaks.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/__init__.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_greenlet.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_throw.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_gc.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_cpp.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_stack_saved.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_tracing.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_generator.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_weakref.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/test_version.py -> build/lib.linux-x86_64-3.7/greenlet/tests
    running egg_info
    writing src/greenlet.egg-info/PKG-INFO
    writing dependency_links to src/greenlet.egg-info/dependency_links.txt
    writing requirements to src/greenlet.egg-info/requires.txt
    writing top-level names to src/greenlet.egg-info/top_level.txt
    reading manifest file 'src/greenlet.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no files found matching '*.py' under directory 'appveyor'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.pyd' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    warning: no previously-included files matching '.coverage' found anywhere in distribution
    writing manifest file 'src/greenlet.egg-info/SOURCES.txt'
    copying src/greenlet/greenlet.c -> build/lib.linux-x86_64-3.7/greenlet
    copying src/greenlet/greenlet.h -> build/lib.linux-x86_64-3.7/greenlet
    copying src/greenlet/slp_platformselect.h -> build/lib.linux-x86_64-3.7/greenlet
    creating build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/setup_switch_x64_masm.cmd -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_aarch64_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_alpha_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_amd64_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_arm32_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_arm32_ios.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_csky_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_m68k_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_mips_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_ppc64_aix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_ppc64_linux.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_ppc_aix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_ppc_linux.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_ppc_macosx.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_ppc_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_riscv_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_s390_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_sparc_sun_gcc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_x32_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_x64_masm.asm -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_x64_masm.obj -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_x64_msvc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_x86_msvc.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/platform/switch_x86_unix.h -> build/lib.linux-x86_64-3.7/greenlet/platform
    copying src/greenlet/tests/_test_extension.c -> build/lib.linux-x86_64-3.7/greenlet/tests
    copying src/greenlet/tests/_test_extension_cpp.cpp -> build/lib.linux-x86_64-3.7/greenlet/tests
    running build_ext
    building 'greenlet._greenlet' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/src
    creating build/temp.linux-x86_64-3.7/src/greenlet
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c src/greenlet/greenlet.c -o build/temp.linux-x86_64-3.7/src/greenlet/greenlet.o
    gcc -shared -Wl,--strip-all build/temp.linux-x86_64-3.7/src/greenlet/greenlet.o -L/usr/local/lib -lpython3.7m -o build/lib.linux-x86_64-3.7/greenlet/_greenlet.cpython-37m-x86_64-linux-gnu.so
    building 'greenlet.tests._test_extension' extension
    creating build/temp.linux-x86_64-3.7/src/greenlet/tests
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Isrc/greenlet/ -I/usr/local/include/python3.7m -c src/greenlet/tests/_test_extension.c -o build/temp.linux-x86_64-3.7/src/greenlet/tests/_test_extension.o
    gcc -shared -Wl,--strip-all build/temp.linux-x86_64-3.7/src/greenlet/tests/_test_extension.o -L/usr/local/lib -lpython3.7m -o build/lib.linux-x86_64-3.7/greenlet/tests/_test_extension.cpython-37m-x86_64-linux-gnu.so
    building 'greenlet.tests._test_extension_cpp' extension
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -Isrc/greenlet/ -I/usr/local/include/python3.7m -c src/greenlet/tests/_test_extension_cpp.cpp -o build/temp.linux-x86_64-3.7/src/greenlet/tests/_test_extension_cpp.o
    gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8yn7po5e/greenlet_4060b6b2f65144bf80afbfdc7f9e31e4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8yn7po5e/greenlet_4060b6b2f65144bf80afbfdc7f9e31e4/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-tl97utwx/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7m/greenlet Check the logs for full command output.
@zorun
Copy link
Collaborator

zorun commented Apr 4, 2021

Hmm, it's a bit strange that we install ihatemoney when running the container, as opposed to when building it...

Also, by default, we install the release from Pypi which can be quite old (as it is now)

@bnjbvr do you know if this is expected? Shouldn't we install ihatemoney when building the container?

@spiral-project spiral-project deleted a comment from jonglezb Apr 4, 2021
@bnjbvr
Copy link
Contributor

bnjbvr commented Apr 4, 2021

Hmm I can't recall exactly, but I guess the thinking was to try to get the latest release that was available, so that restarting/respawning the Docker instance would always get the more up to date version. That being said, if it's downloading from pypi and the pypi releases are old, this defeats this purpose. So yeah, it might be better to install ihatemoney when building the container, from the sources; with an automated build on the main branch, we can even ensure it'll always be up to date too! (And use a separate Docker instance for the build, so the build dependencies don't get bundled in the user-facing docker image.)

@Glandos
Copy link
Member

Glandos commented Apr 10, 2021

python-greenlet/greenlet#232

It seems that Alpine changed something in the image…

@Glandos
Copy link
Member

Glandos commented Apr 10, 2021

@ToadCast can you try adding GREENLET_TEST_CPP=no as an environment variable, instead of adding g++?

Of course, we may need g++ someday, but in the meantime… Let's get lowtech ;)

@wiljateiwaz
Copy link
Contributor Author

@Glandos it fixes the build indeed, I'll update my pull request with this change 🙂
The run still faces the issue related to #728 but that's another topic.

wiljateiwaz added a commit to wiljateiwaz/ihatemoney that referenced this issue Apr 10, 2021
almet pushed a commit that referenced this issue Apr 10, 2021
TomRoussel pushed a commit to TomRoussel/ihatemoney that referenced this issue Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants