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!
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.