Hi, I installed numpy and pysparse from source: $ python -c "import numpy; print numpy.__version__" 1.6.1 $ python -c "import pysparse; print pysparse.__version__" 1.2-dev224 $ python -c "import PyTrilinos; print PyTrilinos.version()" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named PyTrilinos
I do not install PyTrilinos because I am not running in parallel. I also installed matplotlib from source, the same procedure as numpy and pysparse, but when I call it from python, it can not be found: $ python Python 2.7.2+ (default, Oct 4 2011, 20:06:09) [GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named matplotlib >>> How could python found matplotlib? why numpy and pysparse can be found? My notebook is x86_64 GNU/Linux I do not understand either that error (> AttributeError: 'module' object has no attribute 'core'). It seems to have a problem with the file polynomial.py (?). Thanks, Lucia On Tue, Feb 7, 2012 at 11:02 AM, Fausto Arinos de A. Barbuto <[email protected]> wrote: > > Hi, > > I'm confused about your problem, but the "import" command immediately below: > > import numpy.core.numeric as NX > AttributeError: 'module' object has no attribute 'core' > > should have worked. I assume you have numpy installed on your Ubuntu box. > How did you install it? From Synaptic or building from the tarball (or any > other > source)? I too run a Ubuntu 11.04 home. > > I had the same "Could not import any solver package" message in the past, > but > as far as I can remember the error history you got and mine were different. > > 32- versus 64- bit packages have given trouble to some people (and not only > with > regard to FiPy). Is your system a 64-bit one? > > Good luck, > > Fausto > > > ________________________________ > From: Lucia AvOlocc <[email protected]> > To: fipy <[email protected]> > Sent: Monday, February 6, 2012 4:11:51 PM > Subject: fipy installation problems on ubuntu > > Hi, > I am having problems when installing fipy in my notebook (ubuntu 11.10) > > I got the following errors: > > home:~/FiPy-2.1.2$ sudo python setup.py install > running install > Checking .pth file support in /usr/local/lib/python2.7/dist-packages/ > /usr/bin/python -E -c pass > TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to > support .pth files > running bdist_egg > running egg_info > writing FiPy.egg-info/PKG-INFO > writing top-level names to FiPy.egg-info/top_level.txt > writing dependency_links to FiPy.egg-info/dependency_links.txt > writing entry points to FiPy.egg-info/entry_points.txt > writing FiPy.egg-info/PKG-INFO > writing top-level names to FiPy.egg-info/top_level.txt > writing dependency_links to FiPy.egg-info/dependency_links.txt > writing entry points to FiPy.egg-info/entry_points.txt > reading manifest file 'FiPy.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > warning: no previously-included files matching '*.png' found under > directory 'examples' > warning: no previously-included files matching '*.pdf' found under > directory 'examples' > warning: no previously-included files matching '*.png' found under > directory 'fipy' > warning: no previously-included files matching '*.pdf' found under > directory 'fipy' > writing manifest file 'FiPy.egg-info/SOURCES.txt' > installing library code to build/bdist.linux-x86_64/egg > running install_lib > running build_py > creating build/bdist.linux-x86_64/egg > creating build/bdist.linux-x86_64/egg/fipy > creating build/bdist.linux-x86_64/egg/fipy/steppers > ................ > .................. > removing 'build/bdist.linux-x86_64/egg' (and everything under it) > Processing FiPy-2.1.2-py2.7.egg > removing '/usr/local/lib/python2.7/dist-packages/FiPy-2.1.2-py2.7.egg' > (and everything under it) > creating /usr/local/lib/python2.7/dist-packages/FiPy-2.1.2-py2.7.egg > Extracting FiPy-2.1.2-py2.7.egg to /usr/local/lib/python2.7/dist-packages > FiPy 2.1.2 is already the active version in easy-install.pth > > Installed /usr/local/lib/python2.7/dist-packages/FiPy-2.1.2-py2.7.egg > Processing dependencies for FiPy==2.1.2 > Finished processing dependencies for FiPy==2.1.2 > Traceback (most recent call last): > File "setup.py", line 594, in <module> > __import__(pkg) > File > "/usr/local/lib/python2.7/dist-packages/pysparse-1.2_dev224-py2.7-linux-x86_64.egg/pysparse/__init__.py", > line 6, in <module> > from numpy._import_tools import PackageLoader > File "/usr/local/lib/python2.7/dist-packages/numpy/__init__.py", > line 137, in <module> > import add_newdocs > File "/usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py", > line 9, in <module> > from numpy.lib import add_newdoc > File "/usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py", > line 13, in <module> > from polynomial import * > File "/usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py", > line 11, in <module> > import numpy.core.numeric as NX > AttributeError: 'module' object has no attribute 'core' > > So, I try to run fipy from python: > > home:~/FiPy-2.1.2$ python > Python 2.7.2+ (default, Oct 4 2011, 20:06:09) > [GCC 4.6.1] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>> import fipy > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "fipy/__init__.py", line 41, in <module> > from solvers import * > File "fipy/solvers/__init__.py", line 68, in <module> > raise ImportError, "Could not import any solver package. If you > are using Trilinos, make sure you have all of the necessary Trilinos > packages installed - Epetra, EpetraExt, AztecOO, Amesos, ML, and > IFPACK." > ImportError: Could not import any solver package. If you are using > Trilinos, make sure you have all of the necessary Trilinos packages > installed - Epetra, EpetraExt, AztecOO, Amesos, ML, and IFPACK. >>>> > > > I don't know how to fix this problem. Thanks in advance for your help > Regards, > Lucia > _______________________________________________ > fipy mailing list > [email protected] > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] > > > > _______________________________________________ > fipy mailing list > [email protected] > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] > _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
