I have installed the new Ubuntu 12.04 today, so I had to install ROOT again. Unfortunately I have now some problems with PyROOT. Does anybody know how I can install PyROOT on Ubuntu 12.04? At the moment I have the newest Version of ROOT installed and my C++ scripts work fine, but I prefer to use ROOT with Python. I hope that you can help me! Thanks!
the easiest is to build ROOT from source, but what does âsome problemsâ mean? Note that there was this savannah report, which may be the same for you?
yes, I have built ROOT from source and I have used the first method which is presented in this help (http://root.cern.ch/drupal/content/installing-root-source). The problem is that I get âno module named ROOTâ if I write âimport ROOTâ after writing âpythonâ in the terminal. On Ubuntu 10.10 I was able to solve this problem, but now I donât know what I have to do.
Configure ROOT adding ââenable-python --prefix=/Where/You/Want/To/Install/It --etcdir=/Where/You/Want/To/Install/It/etc/rootâ (if you do not set âetcdirâ, it will default to â/etc/rootâ, regardless of what your âprefixâ is).
Or ⌠use my installation instructions (ROOTâs âetcdirâ is automatically set to â${ROOTSYS}/etcâ), adding just ââenable-pythonâ: [url]Installing ROOT from Source
yes, I had to install ROOT again, but now without the --prefix-blabla. Now everything works and I have no errors. But one little problem is still there!
If I run a python-script with a ROOT-canvas, the canvas is only for a second visible. I am not sure, but I remember that I fix it when I type âipython name.pyâ, but it doesnât work.
And when i start ROOT, I get this:
Couldn't find font "-adobe-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1",
trying "fixed". Please fix your system so helvetica can be found,
this font typically is in the rpm (or pkg equivalent) package
XFree86-[75,100]dpi-fonts or fonts-xorg-[75,100]dpi.
run:$ python -i tornado.pyto get an interactive prompt, keeping the application (and hence the window) alive. The python default, when given a file, is to execute and exit. This is different from root.exeâs behavior.