This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
标题: Can not import readline on python3.0 (ubuntu 8.04)
类型: behavior Stage:
Components: Installation Versions: Python 3.0
process
状态: closed Resolution: not a bug
Dependencies: 后续:
分配给: 抄送列表: benjamin.peterson, xxiao
优先级: normal 关键字:

Created on 2008-12-11 02:45 by xxiao, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg77585 - (view) Author: X Xiao (xxiao) 日期: 2008-12-11 02:45
I can "import readline" just fine on AMD64 ubuntu 8.04 under python3.0,
however on 32-bit ubuntu 8.04 I could not "import readline" for
python3.0. It says 
"import readline
ImportError: No module named readline". I made sure both ubuntu machines
have readline installed correctly, python2.x runs well and can import
readline without any issues.
msg77586 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) 日期: 2008-12-11 02:47
Did you build Python yourself? If so, can you paste the last lines of
the build process like this:

Failed to find the necessary bits to build these modules:
bsddb185           gdbm               linuxaudiodev   
ossaudiodev        spwd               sunaudiodev     
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.

running build_scripts
msg77587 - (view) Author: X Xiao (xxiao) 日期: 2008-12-11 02:59
I just rebuild it again, it went away. not sure what I did wrong at
first try.

The last few lines during compilation are:
INFO: Can't locate Tcl/Tk libs and/or headers

Failed to find the necessary bits to build these modules:
_dbm               _sqlite3           _tkinter        
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.

Looks like I need install python-sqlite etc.
历史
日期 用户 动作 参数
2022-04-11 14:56:42admin修改github: 48874
2008-12-11 02:59:43benjamin.peterson修改状态: open -> closed
resolution: not a bug
2008-12-11 02:59:01xxiao修改消息: + msg77587
2008-12-11 02:47:50benjamin.peterson修改抄送: + benjamin.peterson
消息: + msg77586
2008-12-11 02:45:13xxiao创建