Problems with ROOT breaking my shell echoing

alex@whoosh:~$ PYTHONPATH=/usr/local/lib/root LD_LIBRARY_PATH=/usr/local/lib/root python
Python 2.6.4 (r264:75706, Nov 2 2009, 14:44:17)
[GCC 4.4.1] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

import ROOT
ROOT.TVector3
<class ‘ROOT.TVector3’>

alex@whoosh:~$ dsadsadadsadsad: command not found

At the last python prompt I pressed Ctrl+D to exit the interpreter, and then I typed dsadsadsadsad but nothing shows up on terminal until I press enter. It continues to not respond to my input until I “reset” my shell. Within the Python interpreter, it still seems to work.

This is stock Bash on Ubuntu 9.10. Tested in both GNOME Terminal and xterm.

This also may be related, but not sure. When using IPython, I notice a rogue “print” when autoloading the physics vectors stuff:

In [1]: import ROOT

In [2]: ROOT.TVector3
(Bool_t)1
Out[2]: <class ‘ROOT.TVector3’>

That (Bool_t)1 seems to just come out of nowhere. Indeed, after this, if I exit IPython, my Bash echoing is broken.

Hi,

you do not post the ROOT version you’re using, but it may very well be related to this recent topic: http://root.cern.ch/phpBB2/viewtopic.php?t=9294. The issue was with editline and has since been fixed (alternatively, you can rebuild ROOT with --disable-editline).

Cheers,
Wim