Closed Aashish07 closed 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 ?
@Aashish07, Are you able to provide the details @pSchlarb requested. That would allow us to help you better.
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.
@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?
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.
Since a week is gone without further notice i consider this issue closed.
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