From: Subhasis R. <ray...@gm...> - 2013-03-16 03:59:52
|
Most likely you have multiple installations of Python and the Python interpreter you are using is different from the version of python your modules are linked to. Searching the Internet shows this: http://mail.scipy.org/pipermail/scipy-dev/2008-January/008205.html and/or this: http://timhatch.com/ark/2008/08/07/py_initmodule4_64 might have solution to your problem. - Subha On Sat, Mar 16, 2013 at 3:23 AM, Vadim Astakhov <ast...@nc...>wrote: > I did that before import and it does not work. > Vadim > > > Kenneth Yoshimoto <ke...@sd...> wrote: > > > > >I think there is a bunch of extra python stuff available > >through > >module load python > > > >Give that a try. > > > >Kenneth > > > >On Fri, 15 Mar 2013, Vadim A wrote: > > > >> Date: Fri, 15 Mar 2013 13:24:45 -0700 > >> From: Vadim A <ast...@nc...> > >> To: Subhasis Ray <ray...@gm...> > >> Cc: Kenneth Yoshimoto <ke...@sd...>, > >> Subhashini Sivagnanam <siv...@sd...>, > >> Amitava Majumdar <maj...@sd...>, > >> "moo...@li..." > >> <moo...@li...> > >> Subject: Re: [moose-generic] MOOSE_installation_problem > >> > >> Also, I am getting error when I just importing MOOSE : > >> import moose > >> on node 0, numNodes = 1, numCores = 16, numComputeThreads = 16 > >> ImportError: numpy.core.multiarray failed to import > >> Traceback (most recent call last): > >> File "<stdin>", line 1, in <module> > >> File "/home/astakhov/moose/moose/moose/python/moose/__init__.py", line > >> 201, in <module> > >> from .moose import * > >> File "/home/astakhov/moose/moose/moose/python/moose/moose.py", line > 40, in > >> <module> > >> from . import _moose > >> ImportError: numpy.core.multiarray failed to import > >> > >> > >> > >> . Sorry for bothering but it seems that we are still missing > >> something. > >> > >> I exported PYTHONPATH and trying to run examples from Demo/snippets > >> > >> but none of them work for me and I am getting errors like this > >> > >> > >> Traceback (most recent call last): > >> > >> > >> File "./Demos/snippets/compartment_net.py", line 53, in <module> > >> from pylab import * > >> …... > >> import numpy as np > >> File "/home/diag/opt/python/lib64/python/numpy/__init__.py", line > >> 130, in <module> > >> import add_newdocs > >> File "/home/diag/opt/python/lib64/python/numpy/add_newdocs.py", line > >> 9, in <module> > >> from lib import add_newdoc > >> File "/home/diag/opt/python/lib64/python/numpy/lib/__init__.py", > >> line 4, in <module> > >> from type_check import * > >> File "/home/diag/opt/python/lib64/python/numpy/lib/type_check.py", > >> line 8, in <module> > >> import numpy.core.numeric as _nx > >> File "/home/diag/opt/python/lib64/python/numpy/core/__init__.py", > >> line 5, in <module> > >> import multiarray > >> > >> > >> ImportError: > >> /home/diag/opt/python/lib64/python/numpy/core/multiarray.so: undefined > >> symbol: Py_InitModule4 > >> > >> > >> > >> Do you know what we might need to adjust ? > >> > >> > >> Is there any other test examples which we can try ? > >> > >> Thanks a lot in advance for any advice. > >> > >> Vadim. > >> > >> > >> On Mar 12, 2013, at 8:22 PM, Subhasis Ray wrote: > >> > >> > >> > >> > >> On Wed, Mar 13, 2013 at 2:53 AM, Vadim A > >> <ast...@nc...> wrote: > >> You saying that I don't really need to do > >> "make install" ? > >> after " make BUILD=release USE_HDF5=0" > >> > >> return -> pymoose module built. > >> > >> > >> All I need to do just export PYTHONPATH, correct ? > >> > >> > >> Yes, that is all :) > >> > >> > >> > --------------------------------------------------------------------------- > >> --- > >> Everyone hates slow websites. So do we. > >> Make your web apps faster with AppDynamics > >> Download AppDynamics Lite for free today: > >> > http://p.sf.net/sfu/appdyn_d2d_mar_________________________________________ > >> ______ > >> moose-generic mailing list > >> moo...@li... > >> https://lists.sourceforge.net/lists/listinfo/moose-generic > >> > >> > >> > >> > |