[mcstas-users] two problems with 2.0RC2
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Fri Dec 21 19:58:19 CET 2012
Hi Evgeny,
On Dec 20, 2012, at 13:49 , Evgeny Moskvin <emoskvin at lns.pnpi.spb.ru<mailto:emoskvin at lns.pnpi.spb.ru>> wrote:
In regard to the Tk package - a new one built on Snow Leopard including Tk::CodeText is now available here:
http://mcstas-20rc2.mcstas.org/MacOS/10.6_Snow_Leopard/Tk-804_030_MacOSX_10_6_Perl_5_8_9.pkg.zip
it works, thank you!
But another problem appeared. It happens at some point during "sim-edit-sim... etc" iterations. Suddenly the run menu appears without parameters list, and the log is:
[emoskvin:17843] *** Process received signal ***
[emoskvin:17843] Signal: Segmentation fault (11)
Ouch - doesn't sound good… Try if the official 2.0 is any better?
It happens not only with my own files, but also with mcstas examples. And of corse it's not possible to start simulations, because if you press "run" button (in gui), the system waits for user to enter parameters in the back (terminal window which is not available for typing in it). Restarting mcgui helps with build in examples, but doesn't with my file.
I tried to run without gui by
mcrun H2_D2.instr
doesn't work either, the error message is
Traceback (most recent call last):
File "/usr/local/bin/mcrun", line 9, in <module>
from mcstas import McStas
File "/usr/local/lib/mcstas-tools-python-mcrun-2.0RC2/mcstas.py", line 6, in <module>
import yaml
ImportError: No module named yaml
This means the Python mcrun is missing yaml - try getting it like this in a terminal:
sudo easy_install pyyaml
Alternatively the mccode-select command can be used to define the "default" mcrun to be the perl one, using:
mccode-select --install mcrun 2.0RC2
Hope my explanations are clear (more or less)... So, what would be a problem?
You need to use the "environment" script that was also created in /tmp to enable a "mcstas 1.12c
I did run this script right after migration process, and it was fine. So now it's in /usr/local/bin and when I run mcgui after this script in terminal, it starts old gui with new engine:
mcstas-2.0RC2 version 2.0RC2 (Dec. 02, 2012)
Copyright (C) Risoe National Laboratory, 1997-2010
Additions (C) Institut Laue Langevin, 2003-2010
All rights reserved
Plotters: PGPLOT/McStas HTML VRML
Warning: No MPI/grid machine list. Running locally.
Define /Users/emoskvin/.mcstas/hosts
or /usr/local/lib/mcstas-1.12c/tools/perl/hosts
or use option --machines=<file>
Clustering methods: Single MPI Grid
and in my case "run menu" doesn't have parameters list as described above.
So, I'm stacked….
Sounds like a mix between the 1.12c and 2.0 still… Have a look if your 1.12c is in /usr/local/lib/mcstas-1.12c with bin and lib subfolders? In that case it should be safe to remove the mcgui mcplot etc commands in /usr/local/bin and afterwards reinstall the new packages…
Best,
Peter
Peter Kjær Willendrup
Development engineer
DTU Physics
Technical University of Denmark
[cid:image002.gif at 01CCCAF1.5E6331F0]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk<mailto:pkwi at fysik.dtu.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20121221/26834831/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20121221/26834831/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20121221/26834831/attachment-0001.gif>
More information about the mcstas-users
mailing list