ImportError: numpy.core.multiarray failed to import [Solved]

1,111 views
Skip to first unread message

Gökhan

unread,
May 19, 2017, 12:49:57 PM5/19/17
to EMAN2
Hi,

I compiled and installed the latest EMAN2.2 from GitHub.

It worked fine after installation, but after rebooting the computer, I started getting:


ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
 
File "/home/username/EMAN2/bin/e2projectmanager.py", line 33, in <module>
   
from EMAN2 import *
 
File "/home/username/EMAN2/lib/EMAN2.py", line 44, in <module>
   
from EMAN2_cppwrap import *
 
File "/home/username/EMAN2/lib/EMAN2_cppwrap.py", line 47, in <module>
   
from libpyTypeConverter2 import *
ImportError: numpy.core.multiarray failed to import



Turns out, Miniconda added this into my .bashrc:


# added by Miniconda2 4.3.11 installer
export PATH="/home/tolung/miniconda2/bin:$PATH"



which messed up python, which, in turn, messed up EMAN2.

I just commented out the last line, and EMAN2.2 works again.

I thought I would post it here in case others run into the same issue.

Cheers...

Steven Ludtke

unread,
May 21, 2017, 8:37:32 PM5/21/17
to em...@googlegroups.com
Hi Gokhan,
 Which instructions were you following?  I don't think we have any that are based on miniconda? 

We are putting new compilation instructions together now to accompany the 2.2 release, which will focus on an Anaconda-based build, similar to the new binary distributions. However, there are a couple of issues with this strategy, as Anaconda isn't compatible with GCC5, so if you have a GCC5 or 6 based system, you currently still need to use a non-Anaconda approach. The traditional build approach still works fine, but to make use of some of the new capabilities (like the neural-network methods) you need additional dependencies (SciPy and Theano). 

----------------------------------------------------------------------------
Steven Ludtke, Ph.D.
Professor, Dept. of Biochemistry and Mol. Biol.                Those who do
Co-Director National Center For Macromolecular Imaging            ARE
Baylor College of Medicine                                     The converse
slu...@bcm.edu  -or-  ste...@alumni.caltech.edu               also applies
http://ncmi.bcm.edu/~stevel

--
--
----------------------------------------------------------------------------------------------
You received this message because you are subscribed to the Google
Groups "EMAN2" group.
To post to this group, send email to em...@googlegroups.com
To unsubscribe from this group, send email to eman2+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eman2

---
You received this message because you are subscribed to the Google Groups "EMAN2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eman2+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages