Dear Prof. Troyer,
As you pointed out, I found I mistakenly ran the tutorial using another Python 2.6 (not the one contained in Vistrails directory). Sorry for that!
As another try, I ran the vispython.bat in C:\Program Files\ALPS\bin, and I got an error "The specified procedure could not be found." Opening vispython.bat by notepad, I found the followings:
"IF EXIST %HOMEDRIVE%"Program Files"\VisTrails\vistrails %HOMEDRIVE%"Program Files"\VisTrails\vistrails\Python25\python.exe IF EXIST %HOMEDRIVE%"Program Files (x86)"\VisTrails\vistrails %HOMEDRIVE%"Program Files (x86)"\VisTrails\vistrails\Python25\python.exe"
I thought maybe "Python25" should be replaced by "Python26", so I made the change, and the vispython was loaded properly. But when I entered "import pyalps" again, the error remains:
"Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Program Files\Vistrails\vistrails\Python26\lib\site-packages\pyalps__init__.py", line 29, in <module> from tools import * File "C:\Program Files\Vistrails\vistrails\Python26\lib\site-packages\pyalps\tools.py", line 39, in <module> from pyalps.pytools import convert2xml, hdf5_name_encode, hdf5_name_decode, rng File "C:\Program Files\Vistrails\vistrails\Python26\lib\site-packages\pyalps\pytools.py", line 28, in <module> from pytools_c import * ImportError: DLL load failed: The specified module could not be found."
When I ran the tutorial in ALPS by python.exe contained in C:\Program Files\Vistrails\vistrals\Python26, this error still occurs.
I don't know what is missing, I'm eager to hear your advices. Thanks a lot!
Best,
Bolun
------------------ 原始邮件 ------------------
From: Matthias Troyer troyer@phys.ethz.ch Reply-To: comp-phys-alps-users@lists.phys.ethz.ch To: "comp-phys-alps-users@lists.phys.ethz.ch"comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Question on running tutorial in ALPS_2.0b3 Date: Mon, 19 Jul 2010 14:30:55 -0600
Hi Bolun Chen
I am confused by your reference to C:\Python26\lib\site-packages\pyalps\tools.py below. ALPS does not install anything into that location.
Matthias Troyer
Sent from my iPad
On Jul 19, 2010, at 8:57 AM, Matthias Troyer
wrote:
Did that problem occur when running the tutorial from Vistrails or from the shell using vispython?
Matthioas
On 19 Jul 2010, at 08:09, bolun_chen@mail.bnu.edu.cn wrote:
Hi All,
I am a beginner to ALPS and I want to use it to perform QMC. I have downloaded and installed the Vistrails 1.5, the ALPS 2.0b3 and ALPS Vistrails extensions on Windows. But when I ran the tutorial using Python 2.65 contained in the Vistrails, I got an error, which read,