[Python-bugs-list] [ python-Bugs-441580 ] can't import readline in 2.1.1c1

noreply@sourceforge.net noreply@sourceforge.net
Mon, 16 Jul 2001 17:27:05 -0700


Bugs item #441580, was opened at 2001-07-15 21:05
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=441580&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Thomas Wouters (twouters)
Summary: can't import readline in 2.1.1c1

Initial Comment:
I get the following error for 2.1.1c1 built on SuSE 
Linux 7.1 , gcc 2.95.2 :

>>> import readline
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: undefined symbol: BC

Needless to say, this makes the interactive session 
interesting as readline is not imported on startup. 
Temporary fix for me is to use readline.so from 2.0 - 
it seems to work fine in 2.1.1c1.

Chuck


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2001-07-16 17:27

Message:
Logged In: NO 

Ok, I looked at the Setup file for 2.0 from SuSE. They had

readline readline.c -lreadline -lncurses #-ltermcap 

whereas 2.1.1c1 had

readline readline.c -lreadline -ltermcap

I made the change, recompiled, and everything is dandy.

Chuck 


----------------------------------------------------------------------

Comment By: Thomas Wouters (twouters)
Date: 2001-07-16 08:11

Message:
Logged In: YES 
user_id=34209

Did this work in Python 2.1(.0) ? Nothing readline-specific
changed in 2.1.1c1... It looks like setup.py is using the
wrong libraries to link with. When you enable readline.so in
2.0's Setup file, do you edit the list of include/library
paths or libraries linked with ?

I don't have a SuSe installation to test with, unfortunately.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=441580&group_id=5470