hummingbot / dashboard

Application that helps you create, backtest, deploy, and manage Hummingbot instances
Apache License 2.0
162 stars 98 forks source link

Failed to build pysha3 safe-pysha3 #130

Closed fer000n closed 2 months ago

fer000n commented 2 months ago

Failed to build pysha3 safe-pysha3

Hi friends

when I run "make env_create" command after "Installing pip dependencies" section I got error below. I tested with Anaconda3 and Miniconda and both is same error Any Idea?

Successfully built hbotrc docker-manager Failed to build pysha3 safe-pysha3 - Pip subprocess error: Running command git clone --filter=blob:none --quiet https://github.com/hummingbot/hbot-remote-client-py.git /tmp/pip-req-build-ii2dynoh Running command git clone --filter=blob:none --quiet https://github.com/hummingbot/docker-manager.git /tmp/pip-req-build-ibbu09ri error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [13 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 copying sha3.py -> build/lib.linux-x86_64-cpython-310 running build_ext building '_pysha3' extension creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/Modules creating build/temp.linux-x86_64-cpython-310/Modules/_sha3 gcc -pthread -B /root/miniconda3/envs/dashboard/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/dashboard/include -fPIC -O2 -isystem /root/miniconda3/envs/dashboard/include -fPIC -DPY_WITH_KECCAK=1 -I/root/miniconda3/envs/dashboard/include/python3.10 -c Modules/_sha3/sha3module.c -o build/temp.linux-x86_64-cpython-310/Modules/_sha3/sha3module.o error: command 'gcc' failed: No such file or directory [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pysha3 error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [13 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 copying sha3.py -> build/lib.linux-x86_64-cpython-310 running build_ext building '_pysha3' extension creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/Modules creating build/temp.linux-x86_64-cpython-310/Modules/_sha3 gcc -pthread -B /root/miniconda3/envs/dashboard/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /root/miniconda3/envs/dashboard/include -fPIC -O2 -isystem /root/miniconda3/envs/dashboard/include -fPIC -DPY_WITH_KECCAK=1 -I/root/miniconda3/envs/dashboard/include/python3.10 -c Modules/_sha3/sha3module.c -o build/temp.linux-x86_64-cpython-310/Modules/_sha3/sha3module.o error: command 'gcc' failed: No such file or directory [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for safe-pysha3 ERROR: Could not build wheels for pysha3, safe-pysha3, which is required to install pyproject.toml-based projects failed

CondaEnvException: Pip failed

make: *** [Makefile:13: env_create] Error 1

Steps to reproduce bug

  1. installing requirement
  2. installing docker and anaconda
  3. running make env_create command and got this error
fer000n commented 2 months ago

Solved by this article:

https://hummingbot.org/academy-content/using-dashboard-to-deploy-and-backtest-strategies---part-1/#3-set-up-the-conda-environment