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
2013/3/21 comp-phys-alps-users-request@lists.phys.ethz.ch
Send Comp-phys-alps-users mailing list submissions to comp-phys-alps-users@lists.phys.ethz.ch
To subscribe or unsubscribe via the World Wide Web, visit https://lists.phys.ethz.ch/listinfo/comp-phys-alps-users or, via email, send a message with subject or body 'help' to comp-phys-alps-users-request@lists.phys.ethz.ch
You can reach the person managing the list at comp-phys-alps-users-owner@lists.phys.ethz.ch
When replying, please edit your Subject line so it is more specific than "Re: Contents of Comp-phys-alps-users digest..."
Today's Topics:
- Re: tebd error (Matthias Troyer)
- error import pyalps (Bo-Nan JIANG)
- Re: error import pyalps (Matthias Troyer)
- Question about the spin-orbit coupling term (Chen Ahai)
- Re: linux and ALPS (Matthias Troyer) (???)
- Re: Question about the spin-orbit coupling term (Matthias Troyer)
Message: 1 Date: Wed, 20 Mar 2013 08:23:45 -0700 From: Matthias Troyer troyer@phys.ethz.ch To: Bo-Nan JIANG bonanjiang@gmail.com Cc: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] tebd error Message-ID: B2AD0D0D-41C1-4E93-BBBF-86ADE2C8E32A@phys.ethz.ch Content-Type: text/plain; charset=iso-8859-1
You use ccmake to set the variable CMAKE_Fortran_FLAGS to -fopenmp
On Mar 20, 2013, at 7:54 AM, Bo-Nan JIANG bonanjiang@gmail.com wrote:
Hi,Matthias Thanks for your reply: "Which Fortran compiler are you using? If it is gfortran you need to add
-fopenmp to the Fortran compiler flags."
I do use gfortran. But I really have no idea how to add it. Can you be so kind to show me how to do this in Lucid? And in which stage shall I add this (cmake stage? make stage?)
Bo-Nan
-- Stay foolish,Stay hungry.
Message: 2 Date: Thu, 21 Mar 2013 08:50:38 +0800 From: Bo-Nan JIANG bonanjiang@gmail.com To: "comp-phys-alps-users@lists.phys.ethz.ch" comp-phys-alps-users@lists.phys.ethz.ch Subject: [ALPS-users] error import pyalps Message-ID: <CADqUQBOQ46_vsVQ1mt7rqtTLO95u9jfn3QR3f= PZevnLvJB3CA@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1"
Hi, all With kind help of Matthias, I finally compile all functions of ALPS2.1.1 and install it on my Ubuntu 10.02 Lucid. And in my system, it is python 2.6.5, and no VisTrails or ALPS vistrails extensions installed.
But I have got an extra problem: When I am trying to run python file in tutorials via command line, it always returns ---------------------------------error---------------------------------- Traceback (most recent call last): File "tutorial8a.py", line 28, in <module> import pyalps ImportError: No module named pyalps ---------------------------------END----------------------------------
So, I run the test_py.py, all files in tutorials return the same error mentioned above.(see attachment) Besides, before runing ALPS, I have already added lines to /home/jiang/.bashrc as some users in ALPS-users suggest
---------------------lines added to .bashrc------------------- # ALPS release_dir=/home/jiang/opt/alps (I am sure this is where I install the ALPS) export LD_LIBRARY_PATH=$release_dir/lib/ export PATH=$PATH:$release_dir/bin/ export PYTHONPATH=$release_dir/lib/ ------------------------END-----------------------------------------
Any advice is welcome and helpful.
-- Stay foolish,Stay hungry.
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
comp-phys-alps-users@lists.phys.ethz.ch