Python 2.5 in F8 has no module "test"

Cameron Simpson cs at zip.com.au
Fri Nov 16 04:39:17 UTC 2007


On 14Nov2007 21:50, yapple <no-reply-gw at fcp.surfsite.org> wrote:
| "test" is a builtin module in Python since 2.3. But in Pyhton 2.5 come with F8, I can not do "import test", why?

On my Fedora 7 box the module test isn't in the "python" RPM, it's in
the "python-devel" RPM:

  rpm -qf /usr/lib/python2.5/test/__init__.py

So try:

  yum install python-devel

I found the __init__.py file by going:

  strace -e trace=file python

and then seeing what it opened when I said "import test".

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Do not taunt Happy Fun Coder.




More information about the fedora-list mailing list