Issues in installing multichain explorer

+1 vote
Hi Multichain ,

We have issues in installing multichain explorer.We have downloaded the Python2.7.5 and multichain explorer from the git hub ,but when we are triggering the command from the multichain explorer folder for launching the explorer

python2.7 -m Mce.abe --config  testChain.conf --commit-bytes 100000 --no-serve ,it is giving the error

Traceback (most recent call last):

  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main

    "__main__", fname, loader, pkg_name)

  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code

    exec code in run_globals

  File "/home/admin/multichain-explorer-master/Mce/abe.py", line 30, in <module>

    import DataStore

  File "Mce/DataStore.py", line 32, in <module>

    import Chain

  File "Mce/Chain/__init__.py", line 17, in <module>

    from .. import deserialize, BCDataStream, util

  File "Mce/deserialize.py", line 11, in <module>

    from util import short_hex, long_hex

  File "Mce/util.py", line 24, in <module>

    import Crypto.Hash.SHA256 as SHA256

ImportError: No module named Crypto.Hash.SHA256

Please advise how to proceed on this
asked Apr 11, 2018 by anonymous
I ahd the same issue, install pycrypto here https://pypi.python.org/pypi/pycrypto
After that it should work ;)
We downloaded it from here , the tar.gz file and extracted it also.
Where should this file be extracted (means the location) so that when this command is triggered :

python2.7 -m Mce.abe --config  testChain.conf --commit-bytes 100000 --no-serve ,it is giving the error

It should fetch the SHA256 module and dont give this error ?

Can you please suggest on this?

Thanks in Advance.

1 Answer

0 votes

It sounds like you don't have the Python Crypto library installed. Please try this:

pip install pycrypto
answered Apr 11, 2018 by MultiChain
Hi Multichain,

Actually Our Multichain is running on Linux VM's and these VM's dont have internet connectivity so pip wont work i guess.

Is there any other workaround for this issue?
You would need to find some other way to get this module installed. This might help you (we've not tried it):

https://stackoverflow.com/questions/36725843/installing-python-packages-without-internet-and-using-source-code-as-tar-gz-and/36730026
Hi,
We too faced same issue and even after installing "pip install pycrypto" we are getting same error. Python version which we are using is 2.7, Could you please provide some inputs on this?
Are you sure you installed pycrypto into the correct version of Python? This can be an issue if you have multiple versions of Python installed at the same time.
...