Dear Hartmut,
Did you use python or alpspython? alpspython sets all paths.
On the Mac the easiest is to install VisTrails and use the vispython command. Otherwise you need to install Python, numpy, scipy, matplotlib, then configure ALPS to use your installed Python.
Matthias
On 11 Sep 2011, at 16:14, Hartmut Hafermann wrote:
Dear Matthias,
thank you for the quick reply. I was trying this on a MacBook, however I get similar errors (pytools_c missing) on our local cluster. ALPS_BUILD_PYTHON and all PYTHON_ENABLE_MODULE_... flags are turned on. I tried setting the PYTHONPATH to /path/to/alps_installation/lib/pyalps. This directory does contain libpyhdf5_c.a (and .so as I tried the option BUILD_SHARED).
Best, Hartmut
Am 11.09.2011 um 15:58 schrieb Matthias Troyer:
Dear Hartmut,
A few questions:
- which platform are you trying to use this on?
- did you turn on building of the ALPS Python modules?
- where did you try setting PYTHONPATH to?
Matthias
On 11 Sep 2011, at 15:54, Hartmut Hafermann wrote:
Dear ALPS-community,
I have written a C++ application based on ALPS. Now I would like to interface it with python via hdf5 archives. Assuming that pyalps.hdf5.archive.write is compatible with alps::make_pvp(...), everything I need is contained in test/pyalps/pyhdf5.py . However I have problems executing the script. Using alpspython or vispython, I get import errors, such as "ImportError: No module named pyhdf5_c" (or pyalea_c). I tried compiling the modules with the build shared option and setting the PYTHONPATH, without success.
I'd very much appreciate any hint on how to properly install and use the ALPS python extensions.
Best regards, Hartmut
-- Hartmut Hafermann
École Polytechnique Centre de Physique Theorique (CPHT) 91128 Palaiseau Cedex, France
Tel.: +33 1 69 33 42 34 Fax: +33 1 69 33 49 49
-- Hartmut Hafermann
École Polytechnique Centre de Physique Theorique (CPHT) 91128 Palaiseau Cedex, France
Tel.: +33 1 69 33 42 34 Fax: +33 1 69 33 49 49