[Tutor] Re: Import Site Failed Resolution

jhomme jhomme at libcom.com
Tue Jan 25 20:19:53 CET 2005


Hi,
Here is all the information I could get from the display of the output from this error. How do I figure out what is going on and fix the problem? This is on a Windows 2000 machine.

graphic 910  C:\WINNT\system32\command.com
C:\PYTHON>python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# c:\python24\lib\site.pyc matches c:\python24\lib\site.py
import site # precompiled from c:\python24\lib\site.pyc
import os # precompiled from os.pyc
'import site' failed; traceback:
Traceback (most recent call last):
File "c:\python24\lib\site.py", line 61, in ?
import os
File "c:\python24\lib\os.py", line 4, in ?
- all functions from posix, nt, os2, mac, or ce, e.g. unlink, stat, etc.
AttributeError: 'module' object has no attribute 'path'
# c:\python24\lib\warnings.pyc matches c:\python24\lib\warnings.py
import warnings # precompiled from c:\python24\lib\warnings.pyc
# c:\python24\lib\types.pyc matches c:\python24\lib\types.py
import types # precompiled from c:\python24\lib\types.pyc
# c:\python24\lib\linecache.pyc matches c:\python24\lib\linecache.py
import linecache # precompiled from c:\python24\lib\linecache.pyc
import os # precompiled from os.pyc
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Thanks.

Jim



More information about the Tutor mailing list