Error with built-in MPI in Neuron 7.3 for Win32

Post Reply
ihq
Posts: 1
Joined: Mon Sep 23, 2013 3:31 pm

Error with built-in MPI in Neuron 7.3 for Win32

Post by ihq » Fri Sep 27, 2013 11:42 am

Hello,

With the Win32 distribution of Neuron 7.3 under Windows 7, I run into an error when trying to start mpd that says "ImportError: cannot import name md5." I've included the entire output at the end of this post. It looks like a library (perhaps openssl) may be missing. Does anyone have advice on how to get around this error?

I have been able to use the built-in MPI executables in the Win32 distribution of Neuron 7.2, which I'm using this for debugging purposes before running my models on a Linux cluster. I'm upgrading to make use of Reaction Diffusion modeling.

I tried the 64-bit distribution instead, but it doesn't appear to include mpd or mpiexec/mpirun. I don't know if it is compiled with MPI support. Would the 64-bit distribution work with a separately installed MPI library, and if so, which one?

I also tried to compile 7.3 myself with MPI support through both Cygwin32 and newly available Cygwin64, but Cygwin no longer includes the option to install gcc3, which is necessary for part of the build process. I made symbolic links from the gcc3 to gcc4 compilers, but the make process still failed looking for a deprecated flag (-mnocygwin).

As long as I can use the built-in MPI executables, though, I won't have to worry about Cygwin.

Here is the error starting mpd:

Code: Select all

bash-4.1$ mpd
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/usr/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
  File "/cygdrive/c/nrn73/bin/mpd", line 57, in <module>
    from  mpdlib  import  mpd_version
  File "/cygdrive/c/nrn73/bin/mpdlib.py", line 20, in <module>
    from  md5       import  new as md5new
  File "/usr/lib/python2.7/md5.py", line 10, in <module>
    from hashlib import md5
ImportError: cannot import name md5
I would appreciate any help getting things to work. Thank you!

ted
Site Admin
Posts: 5057
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Error with built-in MPI in Neuron 7.3 for Win32

Post by ted » Fri Sep 27, 2013 12:43 pm

7.3 eliminates the need to start the daemon with mpd. Just use mpiexec like so
mpiexec -n numproc command
e.g.
mpiexec -n 2 nrniv -mpi test0.hoc

Post Reply