hyperledger / indy-node

The server portion of a distributed ledger purpose-built for decentralized identity.
https://wiki.hyperledger.org/display/indy
Apache License 2.0
683 stars 656 forks source link

Not able to install this module for ubuntu2004 branch #1757

Closed Aashish07 closed 2 years ago

Aashish07 commented 2 years ago

The documnet is outdated even when this has been going on for a month. Please help me out , or update the document so that we can what updates are there. Need to install this on ubuntu 20.04 lts asap. @shemnon @redongjun @m00sey @trentlarson @peacekeeper

pSchlarb commented 2 years ago

First of all what document is outdated? Which module is not installable? Have you checked the ubuntu-20.04-upgrade branch? Have your read the NewNetwork Documentation ?

WadeBarnes commented 2 years ago

@Aashish07, Are you able to provide the details @pSchlarb requested. That would allow us to help you better.

Aashish07 commented 2 years ago

@WadeBarnes Extremely sorry for delay, @pSchlarb Yes I have checked out the branch ubuntu-20.04-upgrade , And i am talking about this documentation -> https://github.com/hyperledger/indy-node/blob/ubuntu-20.04-upgrade/docs/source/setup-dev.md I can see that i can build and install the module directly using pip for which it will download all the whl file, (As it happens in aries agent) -> pip install -e . (As mentioned in the above document). but it gives error. I am attaching the snippet for the same . Please help if you can. Logs ---------------------------------------------------->>>>> pip install -e . ------------------------------->>>>>> Obtaining file:///home/ubuntu/indy-node Requirement already satisfied: distro>=1.5.0 in /home/ubuntu/.local/lib/python3.8/site-packages (from indy-node==1.13.0.dev0) (1.7.0) Requirement already satisfied: importlib-metadata==3.10.1 in /home/ubuntu/.local/lib/python3.8/site-packages (from indy-node==1.13.0.dev0) (3.10.1) Collecting indy-plenum==1.13.0.dev14 Using cached indy_plenum-1.13.0.dev14-py3-none-any.whl (1.5 MB) Processing /home/ubuntu/.cache/pip/wheels/38/05/4e/161d1463ca145ec1023bd4e5e1f31cbf9239aa8f39a2a2b643/timeout_decorator-0.5.0-py3-none-any.whl Requirement already satisfied: zipp>=0.5 in /usr/lib/python3/dist-packages (from importlib-metadata==3.10.1->indy-node==1.13.0.dev0) (1.0.0) Requirement already satisfied: libnacl==1.6.1 in /home/ubuntu/.local/lib/python3.8/site-packages (from indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (1.6.1) Collecting python-rocksdb Using cached python-rocksdb-0.7.0.tar.gz (219 kB) Requirement already satisfied: portalocker in /home/ubuntu/.local/lib/python3.8/site-packages (from indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (2.4.0) Processing /home/ubuntu/.cache/pip/wheels/07/b0/56/44a707a048cab1b2a765e234a8f815049979958416adea4f4f/orderedset-2.0.3-cp38-cp38-linux_x86_64.whl Collecting psutil Using cached psutil-5.9.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (284 kB) Processing /home/ubuntu/.cache/pip/wheels/2c/09/38/7c8c5dc224099d3a7194d154a99093d429bb4bda18c241c4b5/Pympler-0.8-py3-none-any.whl Requirement already satisfied: python-ursa==0.1.1 in /home/ubuntu/.local/lib/python3.8/site-packages (from indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (0.1.1) Collecting semver Using cached semver-2.13.0-py2.py3-none-any.whl (12 kB) Processing /home/ubuntu/.cache/pip/wheels/00/e5/7e/5b2f83e86a3607a54001800de33ca47b5c219ebb75e5642c4b/rlp-0.6.0-py2.py3-none-any.whl Processing /home/ubuntu/.cache/pip/wheels/47/7e/22/cfdc83fca939d984e7a2666d86e8bc719cd213afc256fcf083/ujson-1.33-cp38-cp38-linux_x86_64.whl Requirement already satisfied: python-dateutil in /home/ubuntu/.local/lib/python3.8/site-packages (from indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (2.8.2) Processing /home/ubuntu/.cache/pip/wheels/a6/fb/0c/6ec4369ee276dfd823f510fe96f2304b957e7bb0ba86f3963f/ioflo-2.0.2-py3-none-any.whl Requirement already satisfied: jsonpickle in /home/ubuntu/.local/lib/python3.8/site-packages (from indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (2.2.0) Collecting sortedcontainers==1.5.7 Using cached sortedcontainers-1.5.7-py2.py3-none-any.whl (32 kB) Requirement already satisfied: packaging in /home/ubuntu/.local/lib/python3.8/site-packages (from indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (20.9) Processing /home/ubuntu/.cache/pip/wheels/03/7f/e7/8ec405fe5220fe1401be3dfa943f6e1f10b525f54f68d75e0a/msgpack_python-0.5.6-cp38-cp38-linux_x86_64.whl Processing /home/ubuntu/.cache/pip/wheels/bc/dc/f6/b56f7de35f2c5c0c21dc681c1f8f7bd228e7ccab44eb056ce1/leveldb-0.201-cp38-cp38-linux_x86_64.whl Requirement already satisfied: six in /usr/lib/python3/dist-packages (from indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (1.14.0) Processing /home/ubuntu/.cache/pip/wheels/84/da/8b/d1ebc79bd446ef961b09ae181639c3506310e36bfc2a545dc7/sha3-0.2.1-cp38-cp38-linux_x86_64.whl Requirement already satisfied: base58 in /home/ubuntu/.local/lib/python3.8/site-packages (from indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (2.1.1) Collecting prompt-toolkit>=3.0.16 Using cached prompttoolkit-3.0.29-py3-none-any.whl (381 kB) Requirement already satisfied: setuptools>=25 in /usr/lib/python3/dist-packages (from python-rocksdb->indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (45.2.0) Requirement already satisfied: pytest in /home/ubuntu/.local/lib/python3.8/site-packages (from python-ursa==0.1.1->indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (7.1.2) Requirement already satisfied: pyparsing>=2.0.2 in /home/ubuntu/.local/lib/python3.8/site-packages (from packaging->indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (3.0.9) Requirement already satisfied: wcwidth in /home/ubuntu/.local/lib/python3.8/site-packages (from prompt-toolkit>=3.0.16->indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (0.2.5) Requirement already satisfied: iniconfig in /home/ubuntu/.local/lib/python3.8/site-packages (from pytest->python-ursa==0.1.1->indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (1.1.1) Requirement already satisfied: tomli>=1.0.0 in /home/ubuntu/.local/lib/python3.8/site-packages (from pytest->python-ursa==0.1.1->indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (2.0.1) Requirement already satisfied: pluggy<2.0,>=0.12 in /home/ubuntu/.local/lib/python3.8/site-packages (from pytest->python-ursa==0.1.1->indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (1.0.0) Requirement already satisfied: attrs>=19.2.0 in /usr/lib/python3/dist-packages (from pytest->python-ursa==0.1.1->indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (19.3.0) Requirement already satisfied: py>=1.8.2 in /home/ubuntu/.local/lib/python3.8/site-packages (from pytest->python-ursa==0.1.1->indy-plenum==1.13.0.dev14->indy-node==1.13.0.dev0) (1.11.0) Building wheels for collected packages: python-rocksdb Building wheel for python-rocksdb (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z3n9gqf/python-rocksdb/setup.py'"'"'; file='"'"'/tmp/pip-install-z3n9gqf_/python-rocksdb/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-ka01seu cwd: /tmp/pip-install-z3n9gqf/python-rocksdb/ Complete output (64 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/merge_operators.py -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/init.py -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/interfaces.py -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/errors.py -> build/lib.linux-x86_64-3.8/rocksdb creating build/lib.linux-x86_64-3.8/rocksdb/tests copying rocksdb/tests/test_db.py -> build/lib.linux-x86_64-3.8/rocksdb/tests copying rocksdb/tests/init.py -> build/lib.linux-x86_64-3.8/rocksdb/tests copying rocksdb/tests/test_memtable.py -> build/lib.linux-x86_64-3.8/rocksdb/tests copying rocksdb/tests/test_options.py -> build/lib.linux-x86_64-3.8/rocksdb/tests running egg_info writing python_rocksdb.egg-info/PKG-INFO writing dependency_links to python_rocksdb.egg-info/dependency_links.txt writing requirements to python_rocksdb.egg-info/requires.txt writing top-level names to python_rocksdb.egg-info/top_level.txt reading manifest file 'python_rocksdb.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'python_rocksdb.egg-info/SOURCES.txt' copying rocksdb/_rocksdb.cpp -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/_rocksdb.pyx -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/backup.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/cache.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/comparator.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/db.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/env.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/filter_policy.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/iterator.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/logger.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/memtablerep.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/merge_operator.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/options.pxd -> build/lib.linux-x8664-3.8/rocksdb copying rocksdb/slice.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/slice_transform.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/snapshot.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/status.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/std_memory.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/table_factory.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/universal_compaction.pxd -> build/lib.linux-x86_64-3.8/rocksdb creating build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/comparator_wrapper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/filter_policy_wrapper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/memtable_factories.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/merge_operator_wrapper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/slice_transform_wrapper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/utils.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/write_batch_iter_helper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp running build_ext cythoning rocksdb/_rocksdb.pyx to rocksdb/rocksdb.cpp /tmp/pip-install-z3n9gqf/python-rocksdb/.eggs/Cython-0.29.30-py3.8-linux-x86_64.egg/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'languagelevel' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-z3n9gqf/python-rocksdb/rocksdb/_rocksdb.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'rocksdb._rocksdb' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/rocksdb 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/usr/include/python3.8 -c rocksdb/_rocksdb.cpp -o build/temp.linux-x86_64-3.8/rocksdb/_rocksdb.o -std=c++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing -fno-rtti rocksdb/_rocksdb.cpp:722:10: fatal error: rocksdb/slice.h: No such file or directory 722 | #include "rocksdb/slice.h" | ^~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Failed building wheel for python-rocksdb Running setup.py clean for python-rocksdb Failed to build python-rocksdb ERROR: aries-cloudagent 0.7.4rc2 has requirement prompt-toolkit~=2.0.9, but you'll have prompt-toolkit 3.0.29 which is incompatible. ERROR: aries-cloudagent 0.7.4rc2 has requirement rlp==0.5.1, but you'll have rlp 0.6.0 which is incompatible. Installing collected packages: python-rocksdb, orderedset, psutil, pympler, semver, rlp, ujson, ioflo, sortedcontainers, msgpack-python, leveldb, sha3, prompt-toolkit, indy-plenum, timeout-decorator, indy-node Running setup.py install for python-rocksdb ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z3n9gqf/python-rocksdb/setup.py'"'"'; file='"'"'/tmp/pip-install-z3n9gqf/python-rocksdb/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-wv81dzs7/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/ubuntu/.local/include/python3.8/python-rocksdb cwd: /tmp/pip-install-z3n9gqf_/python-rocksdb/ Complete output (62 lines): 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/rocksdb copying rocksdb/merge_operators.py -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/init.py -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/interfaces.py -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/errors.py -> build/lib.linux-x86_64-3.8/rocksdb creating build/lib.linux-x86_64-3.8/rocksdb/tests copying rocksdb/tests/test_db.py -> build/lib.linux-x86_64-3.8/rocksdb/tests copying rocksdb/tests/init.py -> build/lib.linux-x86_64-3.8/rocksdb/tests copying rocksdb/tests/test_memtable.py -> build/lib.linux-x86_64-3.8/rocksdb/tests copying rocksdb/tests/test_options.py -> build/lib.linux-x86_64-3.8/rocksdb/tests running egg_info writing python_rocksdb.egg-info/PKG-INFO writing dependency_links to python_rocksdb.egg-info/dependency_links.txt writing requirements to python_rocksdb.egg-info/requires.txt writing top-level names to python_rocksdb.egg-info/top_level.txt reading manifest file 'python_rocksdb.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'python_rocksdb.egg-info/SOURCES.txt' copying rocksdb/_rocksdb.cpp -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/_rocksdb.pyx -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/backup.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/cache.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/comparator.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/db.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/env.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/filter_policy.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/iterator.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/logger.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/memtablerep.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/merge_operator.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/options.pxd -> build/lib.linux-x8664-3.8/rocksdb copying rocksdb/slice.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/slice_transform.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/snapshot.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/status.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/std_memory.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/table_factory.pxd -> build/lib.linux-x86_64-3.8/rocksdb copying rocksdb/universal_compaction.pxd -> build/lib.linux-x86_64-3.8/rocksdb creating build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/comparator_wrapper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/filter_policy_wrapper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/memtable_factories.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/merge_operator_wrapper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/slice_transform_wrapper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/utils.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp copying rocksdb/cpp/write_batch_iter_helper.hpp -> build/lib.linux-x86_64-3.8/rocksdb/cpp running build_ext skipping 'rocksdb/_rocksdb.cpp' Cython extension (up-to-date) building 'rocksdb._rocksdb' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/rocksdb 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/usr/include/python3.8 -c rocksdb/_rocksdb.cpp -o build/temp.linux-x86_64-3.8/rocksdb/_rocksdb.o -std=c++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing -fno-rtti rocksdb/_rocksdb.cpp:722:10: fatal error: rocksdb/slice.h: No such file or directory 722 | #include "rocksdb/slice.h" | ^~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-z3n9gqf/python-rocksdb/setup.py'"'"'; file='"'"'/tmp/pip-install-z3n9gqf/python-rocksdb/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-wv81dzs7/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/ubuntu/.local/include/python3.8/python-rocksdb Check the logs for full command output.

pSchlarb commented 2 years ago

@Aashish07 I checked the Gitpod Image and the local vscode devcontainer image. Both are working. They are able to install it without any problems.

I can see that i can build and install the module directly using pip for which it will download all the whl file, (As it happens in aries agent) -> pip install -e . (As mentioned in the above document).

Not sure if you meant installing the local(cloned) folder with -e, --editable or installing from pypi.

The documentation setup-dev.md describes setting up a development environmet, to work on the indy-node code.

Installing from Pypi or apt is meant for "production" use of indy-node. Also from the view of pypi the last stable release (1.12.4) is still meant for ubuntu16.04.

ERROR: Failed building wheel for python-rocksdb Running setup.py clean for python-rocksdb Failed to build python-rocksdb ERROR: aries-cloudagent 0.7.4rc2 has requirement prompt-toolkit~=2.0.9, but you'll have prompt-toolkit 3.0.29 which is incompatible. ERROR: aries-cloudagent 0.7.4rc2 has requirement rlp==0.5.1, but you'll have rlp 0.6.0 which is incompatible. Installing collected packages: python-rocksdb, orderedset, psutil, pympler, semver, rlp, ujson, ioflo, sortedcontainers, msgpack-python, leveldb, sha3, prompt-toolkit, indy-plenum, timeout-decorator, indy-node Running setup.py install for python-rocksdb ... error

It also seems that your machine is very unhappy to have aries installed AND trying to install indy-node ;)

As a matter of fact installing indy-node (latest prerelease) from pypi on a clean ubuntu20.04 container throws the exact same error when building rocksdb:

cythoning rocksdb/_rocksdb.pyx to rocksdb/_rocksdb.cpp /tmp/pip-install-99a8sb8p/python-rocksdb/.eggs/Cython-0.29.30-py3.8-linux-x86_64.egg/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-99a8sb8p/python-rocksdb/rocksdb/_rocksdb.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'rocksdb._rocksdb' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/rocksdb 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/usr/include/python3.8 -c rocksdb/_rocksdb.cpp -o build/temp.linux-x86_64-3.8/rocksdb/_rocksdb.o -std=c++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing -fno-rtti rocksdb/_rocksdb.cpp:722:10: fatal error: rocksdb/slice.h: No such file or directory 722 | #include "rocksdb/slice.h" | ^~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ERROR: Failed building wheel for python-rocksdb

The containers install python rocksdb via apt and the sovrin repos. https://github.com/hyperledger/indy-node/blob/59bb3a95784e2a45283c634ec0c716c50520364c/.gitpod.Dockerfile#L29-L32 and https://github.com/hyperledger/indy-node/blob/59bb3a95784e2a45283c634ec0c716c50520364c/.gitpod.Dockerfile#L41 Perhaps an approach like this is a helpful workaround for you.

@WadeBarnes Not sure if the issue with the failing pypi install is known or still an artifact from the old fixed rocksdb version?

WadeBarnes commented 2 years ago

Yes, you need to install the dependencies for rocksdb before the pip install. Following the patterns in either .gitpod.Dockerfile, or .devcontainer/Dockerfile, should help as @pSchlarb pointed out.

pSchlarb commented 2 years ago

Since a week is gone without further notice i consider this issue closed.