ImportError: No module named Crypto.Hash.SHA256

+1 vote
Below is the issue that I am facing,

When I try to launch the MultiChain Explorer, I am getting the below 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 "/usr/local/apps/MultiChain/MultiChainExplorer/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

==============================================================================

 

The Multichain version which I am using is multichain-1.0-alpha-26

We have successfully installed the previous packages that are required for it to run. Please let me know, as to what is going wrong
asked Dec 12, 2016 by lipi

1 Answer

0 votes

It looks like you need to install pycryptohttps://pypi.python.org/pypi/pycrypto

answered Dec 12, 2016 by MultiChain
Thanks for the help. The above issue is now resolved. But now when I try to launch the MultiChain explorer, I am still unable to connect to it. I am following the same steps as given on the below link:

https://github.com/MultiChain/multichain-explorer

I am successfully able to run the below command (from localhost):

python -m Mce.abe --config chain1.conf

Also getting successful output such as "Abe Initialized..Listening to http://localhost:2753"

But when I try to run the command  (for running it on server):

nohup python -m Mce.abe --config chain1.conf &

and when I try to access it from the browser, I am still unable to connect to it

Any help is appreciated. Thanks!
Are you entering the right port number in the URL in your browser?
Yes I am entering the correct port number.
...