Forums

installing heartbeat module

Hi. I have been trying to install storj-heartbeat module in pythonanywhere. However, i am getting error:

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/heartbeat
copying heartbeat/util.py -> build/lib.linux-x86_64-3.7/heartbeat
copying heartbeat/exc.py -> build/lib.linux-x86_64-3.7/heartbeat
copying heartbeat/version.py -> build/lib.linux-x86_64-3.7/heartbeat
copying heartbeat/__init__.py -> build/lib.linux-x86_64-3.7/heartbeat
creating build/lib.linux-x86_64-3.7/heartbeat/Merkle
copying heartbeat/Merkle/Merkle.py -> build/lib.linux-x86_64-3.7/heartbeat/Merkle
copying heartbeat/Merkle/MerkleTree.py -> build/lib.linux-x86_64-3.7/heartbeat/Merkle
copying heartbeat/Merkle/__init__.py -> build/lib.linux-x86_64-3.7/heartbeat/Merkle
creating build/lib.linux-x86_64-3.7/heartbeat/OneHash
copying heartbeat/OneHash/OneHash.py -> build/lib.linux-x86_64-3.7/heartbeat/OneHash
copying heartbeat/OneHash/__init__.py -> build/lib.linux-x86_64-3.7/heartbeat/OneHash
creating build/lib.linux-x86_64-3.7/heartbeat/PySwizzle
copying heartbeat/PySwizzle/__init__.py -> build/lib.linux-x86_64-3.7/heartbeat/PySwizzle
copying heartbeat/PySwizzle/PySwizzle.py -> build/lib.linux-x86_64-3.7/heartbeat/PySwizzle
running build_ext
Compiling with unix
building 'heartbeat.Swizzle' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/cxx
creating build/temp.linux-x86_64-3.7/cxx/pycxx
creating build/temp.linux-x86_64-3.7/cxx/pycxx/Src
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icxx/pycxx -Icxx -I/usr/include/python3.7m -c cxx/shacham_waters_private.cxx -o build/temp.linux-x86_64-3.7/cxx/shacham_waters_private.o
In file included from cxx/shacham_waters_private.hxx:41:0,
                 from cxx/shacham_waters_private.cxx:30:
cxx/prf.hxx:29:30: fatal error: cryptopp/integer.h: No such file or directory
 #include <cryptopp/integer.h>
                              ^
compilation terminated.
error: command 'gcc' failed with exit status 1
Command "/usr/local/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-12jpqhqh/storj-heartbeat/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-gg_kjws4/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-12jpqhqh/storj-heartbeat/

`

This module is dependent on libcrypto++-dev and libgmp-dev. It can found here Can someone help me get this working?

libgmp-dev is installed on PythonAnywhere. libcrypto++-dev is not. We can add it to the wishlist for the next system image later this year.