icon-project / icon-sdk-python

ICON SDK for Python
45 stars 45 forks source link

IconSDK installation error in Ubuntu 20 #67

Closed pyanishjain closed 2 years ago

pyanishjain commented 2 years ago

ERROR: Command errored out with exit status 1: command: /home/itsanishjan/Documents/blockchain/icon-hackathon-python/myenv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fkf3g0o9/cytoolz/setup.py'"'"'; file='"'"'/tmp/pip-install-fkf3g0o9/cytoolz/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-6bgfj34n cwd: /tmp/pip-install-fkf3g0o9/cytoolz/ Complete output (7 lines): ALERT: Cython not installed. Building without Cython. usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: invalid command 'bdist_wheel'

ERROR: Failed building wheel for cytoolz Running setup.py clean for cytoolz Failed to build cytoolz ERROR: eth-utils 1.10.0 has requirement eth-typing<3.0.0,>=2.2.1, but you'll have eth-typing 3.0.0 which is incompatible. ERROR: eth-keys 0.4.0 has requirement eth-utils<3.0.0,>=2.0.0, but you'll have eth-utils 1.10.0 which is incompatible. Installing collected packages: cytoolz, eth-hash, eth-utils, eth-keys, pycryptodome, eth-keyfile, iconsdk Running setup.py install for cytoolz ... error ERROR: Command errored out with exit status 1: command: /home/itsanishjan/Documents/blockchain/icon-hackathon-python/myenv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fkf3g0o9/cytoolz/setup.py'"'"'; file='"'"'/tmp/pip-install-fkf3g0o9/cytoolz/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-ar4xwxcs/install-record.txt --single-version-externally-managed --compile --install-headers /home/itsanishjan/Documents/blockchain/icon-hackathon-python/myenv/include/site/python3.8/cytoolz cwd: /tmp/pip-install-fkf3g0o9/cytoolz/ Complete output (56 lines): ALERT: Cython not installed. Building without Cython. running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/_version.py -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/init.py -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/_signatures.py -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/compatibility.py -> build/lib.linux-x86_64-3.8/cytoolz creating build/lib.linux-x86_64-3.8/cytoolz/curried copying cytoolz/curried/operator.py -> build/lib.linux-x86_64-3.8/cytoolz/curried copying cytoolz/curried/exceptions.py -> build/lib.linux-x86_64-3.8/cytoolz/curried copying cytoolz/curried/init.py -> build/lib.linux-x86_64-3.8/cytoolz/curried copying cytoolz/dicttoolz.pyx -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/functoolz.pyx -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/recipes.pyx -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/utils.pyx -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/itertoolz.pyx -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/functoolz.pxd -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/itertoolz.pxd -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/init.pxd -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/recipes.pxd -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/cpython.pxd -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/dicttoolz.pxd -> build/lib.linux-x86_64-3.8/cytoolz copying cytoolz/utils.pxd -> build/lib.linux-x86_64-3.8/cytoolz creating build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_docstrings.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_itertoolz.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_tlz.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_signatures.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_inspect_args.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_recipes.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/dev_skip_test.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_dev_skip_test.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_curried.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_serialization.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_doctests.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_compatibility.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_dicttoolz.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_functoolz.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_curried_toolzlike.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_none_safe.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_utils.py -> build/lib.linux-x86_64-3.8/cytoolz/tests copying cytoolz/tests/test_embedded_sigs.py -> build/lib.linux-x86_64-3.8/cytoolz/tests running build_ext building 'cytoolz.dicttoolz' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/cytoolz x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/itsanishjan/Documents/blockchain/icon-hackathon-python/myenv/include -I/usr/include/python3.8 -c cytoolz/dicttoolz.c -o build/temp.linux-x86_64-3.8/cytoolz/dicttoolz.o cytoolz/dicttoolz.c:19:10: fatal error: Python.h: No such file or directory 19 | #include "Python.h" | ^~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Command errored out with exit status 1: /home/itsanishjan/Documents/blockchain/icon-hackathon-python/myenv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fkf3g0o9/cytoolz/setup.py'"'"'; file='"'"'/tmp/pip-install-fkf3g0o9/cytoolz/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-ar4xwxcs/install-record.txt --single-version-externally-managed --compile --install-headers /home/itsanishjan/Documents/blockchain/icon-hackathon-python/myenv/include/site/python3.8/cytoolz Check the logs for full command output.

ICONationDevTeam commented 2 years ago

You need to install Python dev headers.

sudo apt-get install python3-dev
yakkle commented 2 years ago

stale