flair  for FLUKA
© 2006-2019 CERN INFN

About | Screenshots | Documentation | Download | Contact

Flair F.A.Q.

Questions

  1. Installation
    1. Which method should I prefer to use for the installation?
    2. Error: AttributeError: ConfigParser instance has no attribute 'items'?
    3. Error: ImportError: No module named Tkinter?
    4. Error: _tkinter.TclError: invalid command name "labelframe"?
    5. Can I use flair on Windows XP?
    6. Can I use flair on Mac OS/X?
    7. Can I use flair on SUSE linux?
    8. Can I use a different python distribution?
  2. Fonts
    1. Why my fonts have different size on different computers?
    2. Why greek characters and symbols look crappy?
    3. How to defining global fonts?
  3. Interface
    1. Why Ctrl-Fn keys do not work?
  4. Plotting
    1. Nothing appears for a simple USRBIN plot?
    2. Message: line 0: color axis has cb coord of -1; must be above 0 for log scale!

Answers

  1. Installation
    1. Which method should I prefer to use for the installation?
      First try the rpm version, if your system supports it.
      Otherwise the .tgz and follow the instructions in the manual.
      The cvs should be used only if you want to have the latest bug fixes, but it could be that some features are broken.
    2. Error: AttributeError: ConfigParser instance has no attribute 'items'?
      Please upgrade your python distribution to version 2.3 or higher.
    3. Error: ImportError: No module named Tkinter?
      Please install the tkinter python package.
    4. Error: _tkinter.TclError: invalid command name "labelframe"?
      Please upgrade the tk/tcl library to version 8.4 or greater.
    5. Can I use flair on Windows XP?
      Ofcourse, flair is multiplatform. For the moment my effort is concentrating to have a stable version on linux, but at the same time I am testing it under Windows. However on Windows XP you will have a few limatations:
      • *Recommended* Installation with cygwin: Install cygwin and ensure you have installed the following packages: X11, python, tk/tcl, gnuplot. Start the X11 and start normally the flair program like in linux with the script. Limitations/Bugs: For the moment there is no official version of FLUKA for cygwin. A small problem with the way file-paths are written. There is a mixup between windows format and linux format. I will correct it in the next releases. MouseWheel is broken on the cygwin version
      • Install python for windows and use the flair.bat to start the program. Youi will have to modify the program for the correct paths. Limitations: Only the editing will work. No running, since there is no FLUKA for windows, No pipeing with the utilities programs, and neither plotting
    6. Can I use flair on Mac OS/X?
      Certainly. Flair has been tested to run on various Mac OS/X platforms. You will need the following requirements.
      • X11 V1.1 or greater
        To install the X11, insert your Mac OS X Install disc. Double-click the "Optional installs.mpkg." You may need to scroll down to see the Optional Installs icon. After the installer opens, expand the "Applications" section and select the "X11" then click Install.
      • Fink
        Download the last version for PowerPC or Intel from
        http://www.finkproject.org/download/index.php?phpLang=en
        At the end of the installation, the pathsetup utility will be launched. You will be asked for permission before your shell's configuration files are edited. When the utility has finished, you are set to go! If anything goes wrong during this process, you can try again by launching the pathsetup application.
      • Python, tcltk, gnuplot...
        You can install python, tcltk etc. with the use of fink
        fink install python
        fink install tcltk
        fink install gnuplot povray
      • Python on Intel
        When you install the developers library, to compile fortran program in Mac, it installs it's own version of python and tk/tcl libraries. These libraries are somehow broken and some functionality is missing. Probably you will get errors of the type:
        m.entryconfig(i, state=DISABLED)
        This is because you are using the python from the xcode rather the one installed by fink. The solution is
        • Use the environement variable PYTHON to specify which interpreter to use
        • or, replace the /usr/bin/python with a link to the fink intallation like: ln -sf /sw/bin/python25 /usr/bin/python
      • Yellow mouse pointer
        On Intel Mac OS/X X11 there is a known byte order bug in Xquartz. To correct it read the instruction in the following posting: MacOSXhints A fix for a miscolored X11 cursor on Intel Macs
    7. Can I use flair on SUSE Linux
      The tkinter package in Suse is called "python-tk" which usually is preinstalled. If you use the flair-X.X-X.noarch.rpm you will have to ask the rpm to ignore dependencies like
      rpm -ivh --nodeps flair-X.X-X-noarch.rpm
    8. Can I use a different python distribution?
      The launching script flair by default is using the system wide python version. To change the default behavior set the environemnt variable PYTHON to point the python version you want to use.
      PYTHON=/usr/local/mypython/bin/python flair
  2. Fonts
    1. Why my fonts have different size on different computers?
      The tk/tcl libraries have two methods of defining the font size. The "real" in points (1/72inch) declared as a positive number, and the "fixed" declared as a negative number.
      The "real" is scaling the fonts to the DPI settings on your X11 configuration typically on the Monitor section in the /etc/X11/xorg.conf file. The dimension of the screen is defined with the variable DisplaySize like below
      	Section "Monitor"
      		...
      		DisplaySize	340 240
      		...
      	EndSection
      	
      assuming your screen has 75dpi resolution The "fixed" is using a fixed DPI assuming your pixel size is of 75 DPI.
    2. Why greek characters and symbols look crappy?
      The tk/tcl libraries tries to find the best match for the fonts requested. Sometimes if font-sets are missing the unicode characters can be non-consistent with the other fonts.
      One easy way to fix this is to install extra fonts or change the font settings from the configuration dialog.
      A nice set of fonts are the Microsoft TrueType core fonts which can be freally downloaded and installed on linux. The RPM file and information can be found on the following site. or here
  3. How to defining fonts for the manual?
    Open or create the file ~/.Xresources in your home directory. And add entries in the form e.g.
    	*Text*font: Courier 20 bold
    	*Listbox*font: Helvetica 20
    
    load the X resources with the xrdb program.
    xrdb ~/.Xresources
    Now when you start the manual or the periodic table as stand-alone programs the fonts will be taken from the X resources.
    You can place it in your login script or preferably on the autostart programs like the .xinitrc or .kde/Autostart/
  • Interface
    1. Why Ctrl-Fn keys do not work?
      Some desktop managers like KDE use this Shortcut combinations to change desktop pages. You can disable the default behavior with the kcontrol program.
  • Plotting
    1. Nothing appears for a simple USRBIN plot?
      Please make sure that you have installed and compiled correctly the auxiliary program gplevbin. You can download it from the pageExtra requirements section.
    1. Message: line 0: color axis has cb coord of -1; must be above 0 for log scale!
    2. When the above message appears from gnuplot in the output window it means that the plot you are generating has all the values 0. It could be the case of an empty USRBIN file or a geometry plot that no boundaries are plotted.

    About | Screenshots | Documentation | Download | Contact

    For comments and changes send e-mail to fluka-discuss@fluka.org
    Last modified 30/01/07