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

Error installing with "pip install durable-rules" #378

Open
alexsomoza opened this issue Jun 17, 2021 · 1 comment
Open

Error installing with "pip install durable-rules" #378

alexsomoza opened this issue Jun 17, 2021 · 1 comment

Comments

@alexsomoza
Copy link

I'm just porting to AWS some code that plays well in my laptop.

But when executing in AWS SageMaker Linux terminal "pip install durable-rules" I get this error:

bash-4.2$ pip install durable-rules
Collecting durable-rules
Downloading durable_rules-2.0.28.tar.gz (57 kB)
|████████████████████████████████| 57 kB 553 kB/s
Building wheels for collected packages: durable-rules
Building wheel for durable-rules (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b1o2bmff/durable-rules_5d45f4d8836440bca40170e367aa5d5c/setup.py'"'"'; file='"'"'/tmp/pip-install-b1o2bmff/durable-rules_5d45f4d8836440bca40170e367aa5d5c/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-8jbfjsa7
cwd: /tmp/pip-install-b1o2bmff/durable-rules_5d45f4d8836440bca40170e367aa5d5c/
Complete output (17 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/durable
copying libpy/durable/lang.py -> build/lib.linux-x86_64-3.7/durable
copying libpy/durable/init.py -> build/lib.linux-x86_64-3.7/durable
copying libpy/durable/engine.py -> build/lib.linux-x86_64-3.7/durable
running build_clib
building 'durable_rules_engine_py' library
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/rules
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -D_GNU_SOURCE -fPIC -c src/rules/json.c -o build/temp.linux-x86_64-3.7/src/rules/json.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for durable-rules
Running setup.py clean for durable-rules
Failed to build durable-rules
Installing collected packages: durable-rules
Running setup.py install for durable-rules ... error
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b1o2bmff/durable-rules_5d45f4d8836440bca40170e367aa5d5c/setup.py'"'"'; file='"'"'/tmp/pip-install-b1o2bmff/durable-rules_5d45f4d8836440bca40170e367aa5d5c/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-st24wdr2/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/include/python3.7m/durable-rules
cwd: /tmp/pip-install-b1o2bmff/durable-rules_5d45f4d8836440bca40170e367aa5d5c/
Complete output (17 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/durable
copying libpy/durable/lang.py -> build/lib.linux-x86_64-3.7/durable
copying libpy/durable/init.py -> build/lib.linux-x86_64-3.7/durable
copying libpy/durable/engine.py -> build/lib.linux-x86_64-3.7/durable
running build_clib
building 'durable_rules_engine_py' library
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/rules
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -D_GNU_SOURCE -fPIC -c src/rules/json.c -o build/temp.linux-x86_64-3.7/src/rules/json.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-b1o2bmff/durable-rules_5d45f4d8836440bca40170e367aa5d5c/setup.py'"'"'; file='"'"'/tmp/pip-install-b1o2bmff/durable-rules_5d45f4d8836440bca40170e367aa5d5c/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-st24wdr2/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/include/python3.7m/durable-rules Check the logs for full command output.
bash-4.2$ pip3 install durable-rules
Collecting durable-rules
Using cached durable_rules-2.0.28.tar.gz (57 kB)
Building wheels for collected packages: durable-rules
Building wheel for durable-rules (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uej8svba/durable-rules_2f9a9bf007224e93a5a4c756d97a5916/setup.py'"'"'; file='"'"'/tmp/pip-install-uej8svba/durable-rules_2f9a9bf007224e93a5a4c756d97a5916/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-nydx0ojt
cwd: /tmp/pip-install-uej8svba/durable-rules_2f9a9bf007224e93a5a4c756d97a5916/
Complete output (17 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/durable
copying libpy/durable/lang.py -> build/lib.linux-x86_64-3.7/durable
copying libpy/durable/init.py -> build/lib.linux-x86_64-3.7/durable
copying libpy/durable/engine.py -> build/lib.linux-x86_64-3.7/durable
running build_clib
building 'durable_rules_engine_py' library
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/rules
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -D_GNU_SOURCE -fPIC -c src/rules/json.c -o build/temp.linux-x86_64-3.7/src/rules/json.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for durable-rules
Running setup.py clean for durable-rules
Failed to build durable-rules
Installing collected packages: durable-rules
Running setup.py install for durable-rules ... error
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uej8svba/durable-rules_2f9a9bf007224e93a5a4c756d97a5916/setup.py'"'"'; file='"'"'/tmp/pip-install-uej8svba/durable-rules_2f9a9bf007224e93a5a4c756d97a5916/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-k5z85dut/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/include/python3.7m/durable-rules
cwd: /tmp/pip-install-uej8svba/durable-rules_2f9a9bf007224e93a5a4c756d97a5916/
Complete output (17 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/durable
copying libpy/durable/lang.py -> build/lib.linux-x86_64-3.7/durable
copying libpy/durable/init.py -> build/lib.linux-x86_64-3.7/durable
copying libpy/durable/engine.py -> build/lib.linux-x86_64-3.7/durable
running build_clib
building 'durable_rules_engine_py' library
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/rules
gcc -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -D_GNU_SOURCE -fPIC -c src/rules/json.c -o build/temp.linux-x86_64-3.7/src/rules/json.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/conda/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uej8svba/durable-rules_2f9a9bf007224e93a5a4c756d97a5916/setup.py'"'"'; file='"'"'/tmp/pip-install-uej8svba/durable-rules_2f9a9bf007224e93a5a4c756d97a5916/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-k5z85dut/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/include/python3.7m/durable-rules Check the logs for full command output.

Any idea what happens ????

@jayvdb
Copy link

jayvdb commented Mar 7, 2024

The installer could not find a compiler (gcc). The two relevant lines of the error are

unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1

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

No branches or pull requests

2 participants