On 10/15/05, Andy Dani <[EMAIL PROTECTED]> wrote: >When I python from /usr/loca/Python-2.4.1/bin, it does launch the interpreter but with an traceback error saying there is some conflict with "import readline" line on pythonrc.py file located somewhere in /etc/ directory. Is there any harm If I comment the it out (import readline)?
andy, did you build 2.4.1 yourself and install it in /usr/local? it's possible that when you compiled it, you did not have the readline library installed -- Python by default looks for it and tries to build Python with it. you may have to download the readline code, build it 1st, then rebuild Python. the readline page is http://cnswww.cns.cwru.edu/~chet/readline/rltop.html i would say commenting out the import line is not a good idea. an import stmt like the one in question usually means that a module will be doing something with it, i.e., readline.XXX(). if you take it out, you'll likely get an error that reads something like, "NameError: global name 'readline' not found." hope this helps! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Core Python Programming", Prentice Hall, (c)2006,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor