En Sat, 02 Jun 2007 15:31:40 -0300, Jakob Svavar Bjarnason <[EMAIL PROTECTED]> escribió:
> I have been trying to switch to Python from other languages such as Perl > and now I have a newbie question. > > I have been trying to run a setup script to install a python library. To > do that I need to run "c:> python setup.py install" but the strange > thing is is that when it runs the command: > >>>> from distutils import log > > I get the error ONLY while in cmd. If I run this from the interactive > shell that comes with IDLE it works. But if I go into the interactive > shell in the Windows shell cmd then I get: > > ImportError: cannot import log Maybe you have two different versions installed? Try this and post what you get: import sys print sys.version print sys.executable print sys.path both from inside IDLE and the console. Python versions earlier than 2.3 did not have a distutils.log module. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list