Re: Python 2.5 in F8 has no module "test"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14Nov2007 21:50, yapple <no-reply-gw@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Do not taunt Happy Fun Coder.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux