Please don't type
ls -lR /home/jiang/opt/alps/lib/
but instead type
ls -lR $PYTHONPATH
Also, please check whether you have multiple versions of Python installed.
Another way to test it is to use the alpspython script to launch Python instead.
Matthias Troyer
On Mar 21, 2013, at 7:55 AM, Bo-Nan JIANG bonanjiang@gmail.com wrote:
I enter python and import pyalps at 22:52 Mar 21 2013, here is the result of ls -lR /home/jiang/opt/alps/lib/:
/home/jiang/opt/alps/lib/: total 11600 -rw-r--r-- 1 jiang jiang 889600 2013-03-21 14:30 libalps_fortran.a lrwxrwxrwx 1 jiang jiang 12 2013-03-21 15:12 libalps.so -> libalps.so.2 lrwxrwxrwx 1 jiang jiang 16 2013-03-21 15:12 libalps.so.2 -> libalps.so.2.1.1 -rw-r--r-- 1 jiang jiang 7439614 2013-03-21 14:29 libalps.so.2.1.1 -rw-r--r-- 1 jiang jiang 3530420 2013-03-21 14:20 libboost.so drwxr-xr-x 2 jiang jiang 4096 2013-03-21 15:12 pyalps drwxr-xr-x 3 jiang jiang 4096 2013-03-21 15:12 python drwxr-xr-x 2 jiang jiang 4096 2013-03-21 15:12 xml
/home/jiang/opt/alps/lib/pyalps: total 3744 -rw-r--r-- 1 jiang jiang 1245 2012-04-27 15:55 alea_detail.py -rw-r--r-- 1 jiang jiang 178 2013-03-21 07:29 alea_detail.pyc -rw-r--r-- 1 jiang jiang 5950 2012-04-27 15:55 alea.py -rw-r--r-- 1 jiang jiang 5507 2013-03-21 07:29 alea.pyc -rw-r--r-- 1 jiang jiang 29656 2012-05-22 22:56 apptest.py -rw-r--r-- 1 jiang jiang 20518 2012-05-23 06:05 apptest.pyc -rw-r--r-- 1 jiang jiang 2319 2012-04-27 15:55 dataset.py -rw-r--r-- 1 jiang jiang 2134 2013-03-21 07:29 dataset.pyc -rw-r--r-- 1 jiang jiang 2382 2012-04-27 15:55 dict_intersect.py -rw-r--r-- 1 jiang jiang 1427 2013-03-21 07:29 dict_intersect.pyc -rw-r--r-- 1 jiang jiang 1840 2012-04-27 15:55 fit_wrapper.py -rw-r--r-- 1 jiang jiang 1791 2013-03-21 07:29 fit_wrapper.pyc -rw-r--r-- 1 jiang jiang 9722 2012-04-27 15:55 floatwitherror.py -rw-r--r-- 1 jiang jiang 11704 2013-03-21 07:29 floatwitherror.pyc -rw-r--r-- 1 jiang jiang 1563 2012-04-27 15:55 hdf5.py -rw-r--r-- 1 jiang jiang 1061 2013-03-21 07:29 hdf5.pyc -rw-r--r-- 1 jiang jiang 4927 2012-04-27 15:55 hlist.py -rw-r--r-- 1 jiang jiang 6080 2013-03-21 07:29 hlist.pyc -rw-r--r-- 1 jiang jiang 1601 2012-04-27 15:55 __init__.py -rw-r--r-- 1 jiang jiang 626 2013-03-21 07:29 __init__.pyc -rw-r--r-- 1 jiang jiang 1802 2012-04-27 15:55 lattice.py -rw-r--r-- 1 jiang jiang 1670 2012-04-28 06:05 lattice.pyc -rw-r--r-- 1 jiang jiang 31453 2012-04-27 15:55 load.py -rw-r--r-- 1 jiang jiang 22467 2013-03-21 07:29 load.pyc -rw-r--r-- 1 jiang jiang 1967 2012-04-27 15:55 math.py -rw-r--r-- 1 jiang jiang 932 2013-03-21 07:29 math.pyc -rw-r--r-- 1 jiang jiang 1445 2012-05-03 22:56 mpi.py -rw-r--r-- 1 jiang jiang 378 2012-05-03 23:33 mpi.pyc -rw-r--r-- 1 jiang jiang 1000143 2013-03-21 14:21 mpi.so -rw-r--r-- 1 jiang jiang 1311 2012-04-27 15:55 mpl_setup_macosx.py -rw-r--r-- 1 jiang jiang 219 2012-04-28 06:05 mpl_setup_macosx.pyc -rw-r--r-- 1 jiang jiang 1311 2012-04-27 15:55 mpl_setup_qt.py -rw-r--r-- 1 jiang jiang 215 2012-04-28 06:05 mpl_setup_qt.pyc -rw-r--r-- 1 jiang jiang 1311 2012-04-27 15:55 mpl_setup_tk.py -rw-r--r-- 1 jiang jiang 215 2012-04-28 06:05 mpl_setup_tk.pyc -rw-r--r-- 1 jiang jiang 942 2012-04-27 15:55 natural_sort.py -rw-r--r-- 1 jiang jiang 1465 2013-03-21 07:29 natural_sort.pyc -rw-r--r-- 1 jiang jiang 4123 2012-04-27 15:55 ngs.py -rw-r--r-- 1 jiang jiang 3657 2012-04-28 06:05 ngs.pyc -rw-r--r-- 1 jiang jiang 16379 2012-04-27 15:55 plot_core.py -rw-r--r-- 1 jiang jiang 12759 2013-03-21 07:29 plot_core.pyc -rw-r--r-- 1 jiang jiang 10730 2012-04-27 15:55 plot.py -rw-r--r-- 1 jiang jiang 7616 2013-03-21 07:29 plot.pyc -rw-r--r-- 1 jiang jiang 1314358 2013-03-21 14:30 pyalea_c.so -rw-r--r-- 1 jiang jiang 346017 2013-03-21 14:30 pyhdf5_c.so -rw-r--r-- 1 jiang jiang 632351 2013-03-21 14:30 pymcdata_c.so -rw-r--r-- 1 jiang jiang 81409 2013-03-21 14:30 pytools_c.so -rw-r--r-- 1 jiang jiang 1338 2012-04-27 15:55 pytools.py -rw-r--r-- 1 jiang jiang 283 2013-03-21 07:29 pytools.pyc -rw-r--r-- 1 jiang jiang 51832 2012-05-03 14:26 tools.py -rw-r--r-- 1 jiang jiang 41341 2013-03-21 07:29 tools.pyc
/home/jiang/opt/alps/lib/python: total 4 drwxr-xr-x 2 jiang jiang 4096 2013-03-21 15:12 alps
/home/jiang/opt/alps/lib/python/alps: total 36 -rw-r--r-- 1 jiang jiang 1817 2013-03-21 14:16 config.py -rw-r--r-- 1 jiang jiang 7215 2012-04-27 15:55 license.py -rw-r--r-- 1 jiang jiang 23635 2012-04-27 15:55 preview.py
/home/jiang/opt/alps/lib/xml: total 116 -rw-r--r-- 1 jiang jiang 17912 2012-05-22 22:56 ALPS.xsl -rw-r--r-- 1 jiang jiang 8532 2012-04-27 15:55 archive2plot.xsl -rw-r--r-- 1 jiang jiang 595 2012-04-27 15:55 changestylesheet.xsl -rw-r--r-- 1 jiang jiang 3040 2012-04-27 15:55 helpers.xsl -rw-r--r-- 1 jiang jiang 16305 2013-03-21 14:15 lattices.xml -rw-r--r-- 1 jiang jiang 19407 2013-03-21 14:15 models.xml -rw-r--r-- 1 jiang jiang 4904 2012-04-27 15:55 plot2gp.xsl -rw-r--r-- 1 jiang jiang 2594 2012-04-27 15:55 plot2mpl.xsl -rw-r--r-- 1 jiang jiang 1219 2012-04-27 15:55 plot2text.xsl -rw-r--r-- 1 jiang jiang 1188 2012-04-27 15:55 plot2xmgr.xsl -rw-r--r-- 1 jiang jiang 12230 2012-04-27 15:55 plot2xsl.xsl -rw-r--r-- 1 jiang jiang 4685 2012-04-27 15:55 QMCXML2text.xsl