Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376537 - Can't import readline in Python 2.7 and 3.2
Summary: Can't import readline in Python 2.7 and 3.2
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 22:55 UTC by Marek Sapota
Modified: 2011-07-27 12:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Sapota 2011-07-26 22:55:42 UTC
`python -c 'import readline'` gives:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "readline.py", line 8, in <module>
AttributeError: 'module' object has no attribute 'parse_and_bind'

and `python3 -c 'import readline'` gives:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: Bad magic number in readline.pyc

Using Python 2.7.2-r2 and 3.2-r2

Reproducible: Always
Comment 1 Tolga Dalman 2011-07-27 08:06:37 UTC
Works for me - I don't see a problem. Perhaps you should provide more information ? 
For instance, have you enabled readline flag in Python ?
Comment 2 Marek Sapota 2011-07-27 12:07:42 UTC
Sorry, by bad - running this command in a directory with a file named 'readline.py' wasn't one of my brightest ideas.  Works well without it.