On 23 Sep 2010, at 01:26, Andreas Nunnenkamp wrote:
Dear Prof Troyer,
I have recently installed the ALPS package. To check that everything is working I am going through the tutorials. The command line and vistrails (for the most recent version the ALPS patch does not work, so I am using the last-to-recent one) seem to work fine. Vispython runs if I cut and paste the comments directly into the interpreter but if I try to run it from the command line I get the following error message:
31-34-185:ed-02-gaps Andreas$ vispython tutorial2a.py Traceback (most recent call last): File "tutorial2a.py", line 29, in <module> import matplotlib.pyplot as plt File "/Applications/Vistrails/Vistrails.app/Contents/Resources/lib/python2.6/matplotlib/pyplot.py", line 78, in <module> new_figure_manager, draw_if_interactive, show = pylab_setup() File "/Applications/Vistrails/Vistrails.app/Contents/Resources/lib/python2.6/matplotlib/backends/__init__.py", line 25, in pylab_setup globals(),locals(),[backend_name]) File "/Applications/Vistrails/Vistrails.app/Contents/Resources/lib/python2.6/matplotlib/backends/backend_tkagg.py", line 7, in <module> import Tkinter as Tk, FileDialog ImportError: No module named Tkinter 31-34-185:ed-02-gaps Andreas$
I am running Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin. Can you help and point me in the right direction?
Many thanks, Andreas
Dear Andreas,
vispython was never meant to be used like that, since Python is an interactive language and we typically use it as such, and not for just running canned Python scripts. The fix to your problem is easy. Just add the following at the beginning of the Python scripts if you run them on MacOS X:
import matplotlib matplotlib.use('macosx') import matplotlib.pyplot
ALternatively, use the latest nightly snapshot, which does that for you if pyalps is the first package that you include.
Best regards
Matthias
Hey!
May you have an example for a ALPS program using MPI? I did my thesis in ALPS-1.3.4, because I'm just implementing a tempering in my program – but if everything works fine, I'll change everything to ALPS 2.0.
I reinstalled MPI and use the MPI C libraries, but have still the same problems.
Lg michael
Zitat von Matthias Troyer troyer@phys.ethz.ch:
On 23 Sep 2010, at 01:26, Andreas Nunnenkamp wrote:
Dear Prof Troyer,
I have recently installed the ALPS package. To check that everything is working I am going through the tutorials. The command line and vistrails (for the most recent version the ALPS patch does not work, so I am using the last-to-recent one) seem to work fine. Vispython runs if I cut and paste the comments directly into the interpreter but if I try to run it from the command line I get the following error message:
31-34-185:ed-02-gaps Andreas$ vispython tutorial2a.py Traceback (most recent call last): File "tutorial2a.py", line 29, in <module> import matplotlib.pyplot as plt File "/Applications/Vistrails/Vistrails.app/Contents/Resources/lib/python2.6/matplotlib/pyplot.py", line 78, in
<module> new_figure_manager, draw_if_interactive, show = pylab_setup() File "/Applications/Vistrails/Vistrails.app/Contents/Resources/lib/python2.6/matplotlib/backends/__init__.py", line 25, in pylab_setup globals(),locals(),[backend_name]) File "/Applications/Vistrails/Vistrails.app/Contents/Resources/lib/python2.6/matplotlib/backends/backend_tkagg.py", line 7, in <module> import Tkinter as Tk, FileDialog ImportError: No module named Tkinter 31-34-185:ed-02-gaps Andreas$
I am running Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin. Can you help and point me in the right direction?
Many thanks, Andreas
Dear Andreas,
vispython was never meant to be used like that, since Python is an interactive language and we typically use it as such, and not for just running canned Python scripts. The fix to your problem is easy. Just add the following at the beginning of the Python scripts if you run them on MacOS X:
import matplotlib matplotlib.use('macosx') import matplotlib.pyplot
ALternatively, use the latest nightly snapshot, which does that for you if pyalps is the first package that you include.
Best regards
Matthias
Any of the ALPS applications can use MPI, and there was essentially no change in the applications going to 2.0. What are your MPI problems when building ALPS 2.0?
Matthias
On Sep 28, 2010, at 1:44 PM, Michael Franz Krenn wrote:
Hey!
May you have an example for a ALPS program using MPI? I did my thesis in ALPS-1.3.4, because I'm just implementing a tempering in my program – but if everything works fine, I'll change everything to ALPS 2.0.
I reinstalled MPI and use the MPI C libraries, but have still the same problems.
Lg michael
comp-phys-alps-users@lists.phys.ethz.ch