Mandrake 10.1 and Python 2.3.4

Terry Reedy tjreedy at udel.edu
Sun May 15 14:36:36 EDT 2005


"Joal Heagney" <jhe13586 at bigpond.net.au> wrote in message 
news:AsGhe.3663$E7.3600 at news-server.bigpond.net.au...
> 'import site' failed; traceback:
> Traceback (most recent call last):
>   File "/usr/lib/python2.3/site.py", line 169, in ?
>     sys.lib,
> AttributeError: 'module' object has no attribute 'lib'

Right: the sys module usually has no .lib attribute that I know of

>>> import sys; sys.lib
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'lib'

> Is this a Mandrake or a Python mistake?

It is a site.py code mistake, but who wrote your copy of site.py?

> And does anyone know how to fix it?

Correct or remove the offending line (169)

Terry J. Reedy






More information about the Python-list mailing list