With root v5.25/02 on Fedora 11 (i386, fully updated),
[ul]
after importing TH1 to python, an empty file named “-” is created,
and after exiting python, local echo is turned off,
[/ul]
as the following:
[code][furutaka@Furutaka-1 tmptmp] cat /etc/fedora-release
Fedora release 11 (Leonidas)
[furutaka@Furutaka-1 tmptmp] ls
[furutaka@Furutaka-1 tmptmp]$ python
Python 2.6 (r26:66714, Jun 8 2009, 16:07:26)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
[quote=“furutaka”]With root v5.25/02 on Fedora 11 (i386, fully updated),
[ul]
after importing TH1 to python, an empty file named “-” is created,
and after exiting python, local echo is turned off,
[/ul][/quote]
The same occurs on Gentoo systems (i386 as well asl alpha):
[code]furutaka@Gentoo_x86 ~ ls
Desktop res rootlogon.C work
furutaka@Gentoo_x86 ~ uname -a
Linux Gentoo_x86 2.6.30-gentoo-r6 #1 SMP Thu Sep 17 05:07:05 JST 2009 i686 AMD Athlon™ 64 X2 Dual Core Processor 4600+ AuthenticAMD GNU/Linux
furutaka@Gentoo_x86 ~ $ python
Python 2.6.2 (r262:71600, Oct 1 2009, 20:22:39)
[GCC 4.1.2 (Gentoo 4.1.2 p1.3)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
from ROOT import TH1
furutaka@Gentoo_x86 ~ $ - Desktop res rootlogon.C work
[/code]
[code]furutaka@genalpha ~ ls
Desktop res rootlogon.C work
furutaka@genalpha ~ uname -a
Linux genalpha 2.6.30-gentoo-r6 #1 SMP Sun Sep 20 15:48:20 JST 2009 alpha EV56 EB164 GNU/Linux
furutaka@genalpha ~ $ python
Python 2.6.2 (r262:71600, Oct 1 2009, 20:45:28)
[GCC 4.3.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
from ROOT import TH1
furutaka@genalpha ~ $ - Desktop res rootlogon.C work
[/code]
Well, even with a newly created account without init files such as ~/rootlogon.C and ~/.rootrc, it does occur (I made sure this morning)…
I also tried after removing all the files under $ROOTSYS and reinstalling, but it does.
[code][furutaka@Peart tmptmp]$ python
Python 2.6 (r26:66714, Jun 8 2009, 16:07:29)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
from ROOT import TH1
print “This is just a test.”
This is just a test.
well, I have no idea where to get started on this one (searching for ‘-’ with google is kinda hard). I’ve hardly made any changes between 5.24 and trunk, so I doubt that it is the python side.
What can still be, is some weird interaction with ncurses (we’ve had spurious characters on shutdown on a RH box a while back, which occurred b/c a very specific version of ncurses and a very specific version of readline did not like each other, given certain values of the TERM envar).
Can you edit your local ROOT.py file to not setup readline and history? Basically remove the whole piece between: ‘## readline support, if available’ and ‘## special filter on MacOS X …’?
I commented out a fragment of codes to support readline in $ROOTSYS/lib/ROOT.py.
Even with the modified version, the “-” file is created and local echo is turned off…
editline appears to be something new indeed: I only noticed it this week when I did an svn update, and editline did not configure nor compile properly on my system.
I’ll ask around on ROOTDEV.
In the meantime, it can be disabled with ‘–disable-editline’ as argument to configure. I’m not certain for what it is used, but disabling it did not affect any of my normal tests.
The creation of the empty file named “-” had disappeared in ROOT 5.25/03, trunk@30738. Also, with the version, local echo is normal after exiting PyROOT session!!!
Thank you too, Axel and Wim, for your effort to fix it!