Hello,
After a successful installation of fluka 4-3.0 on Ubuntu 20.04 LTS, as usual, I proceeded with installing Flair 3.2.
Using a terminal, I asked to upgrade from the ubuntu repository by typing ‘apt upgrade’, but apt returned with a “nothing to upgrade” message. So, I moved to the flair site, and after downloading the new flair and flair-geoviewer packages, I successfully installed it manually.
Launching “flair” on a terminal produces the following traceback:
tino@oldboy:~$ flair
Traceback (most recent call last):
File “/usr/local/flair/flair.py”, line 3405, in
if not tkFlair._SKIP_INTRO: tkFlair.aboutDialog(flair, 2500)
File “/usr/local/flair/tkFlair.py”, line 1585, in aboutDialog
img = tk.PhotoImage(file=fn)
File “/usr/lib/python3.8/tkinter/init.py”, line 4064, in init
Image.init(self, ‘photo’, name, cnf, master, **kw)
File “/usr/lib/python3.8/tkinter/init.py”, line 4009, in init
self.tk.call((‘image’, ‘create’, imgtype, name,) + options)
_tkinter.TclError: couldn’t open “/usr/local/flair/manual/html/_images/flair-logo.gif”: no such file or directory
That is caused by the absence of some resources in the flair manual (running flair with the -s option allowed the program to run, but the flair manual appears to be missed).
This problem was confirmed when I tried to install flair using the tgz source files: the “make install” stops when sphinx-build is called because some resources requested to build the flair manual weren’t found. Here is the message
make[1]: Entering directory ‘/home/tino/Flair3.2/flair-3.2/manual’
cp -Rdpvu …/icons .
sphinx-build -M html “.” “.”
Running Sphinx v1.8.5
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 69 source files that are out of date
updating environment: 69 added, 0 changed, 0 removed
reading sources… [100%] prologue
/home/tino/Flair3.2/flair-3.2/manual/index.rst:31: WARNING: Unexpected indentation.
/home/tino/Flair3.2/flair-3.2/manual/prologue.rst:164: WARNING: Error parsing content block for the “list-table” directive: uniform two-level bullet list expected, but row 3 does not contain the same number of items as row 1 (1 vs 2).
… list-table::
:widths: 25 75
-
-1
- Load the first flair file in the folder
-
--compile
- Compile executable
-
-
-c # | --convert #
- Convert to simulation mode
-
-
-d
- Activate the beta-development features
-
-D
- Deactivate beta-development features (default)
-
--data #
- Process/Merge the data files of all or specific runs (no default)
Accepts patterns or comma separated names e.g.*
orfoo*
orfoo,bar*
-
--exe file
- Fluka executable. (default:
{FlukaDir}/bin/fluka
)
-
-h|-?|--help
- print this help page
-
-i/--ini file
- Alternative configuration file (default: $HOME/.flair/flair.ini)
-
-l | --list
- List recent projects
-
-m #
- Force mode of new project/input
Accepted types:fluka, moira, mcnp, phits
-
--noansi
- disable ansi coloring on dumps
-
--nocleanup
- disable cleanup of temporary files
-
-p
- enable profiling
-
-P
- disable profiling (default)
-
--page #
- Start flair in specified page
-
--plots
- Do all plots and save the files
-
-r|--recent
- Load most recent project
-
-R #
- Load recent project (number 1…10 or filename)
-
--run #
- Start runs given as (name, pattern or a comma-list of runs)
-
-s
- Skip About dialog
-
-u | --update
- Recalculate and save input file variables
-
-v | --verbose
- Increase verbosity level by one
-
-V
- Decrease verbosity level by one
-
-
filename
[s] -
flair project, input, imported files or directory
automatically detect type from file extension
extensions supported:<none|.flair>, .inp, .fluka, .moira, .mac[ro], .gdml .mcnp, .m, .phits, .pht, .pickle
-
Sphinx error:
master file /home/tino/Flair3.2/flair-3.2/manual/contents.rst not found
make[1]: *** [makefile:27: html] Error 2
make[1]: Leaving directory ‘/home/tino/Flair3.2/flair-3.2/manual’
make: *** [makefile:206: manual] Error 2
Sorry for the long and tedious text, I prefer circumstantiating the problem to save time.
Thank in advance