On Tue, 2007-05-22 at 09:55 +0200, Josselin Mouette wrote:
> Le lundi 21 mai 2007 à 09:30 -0700, Ross Boylan a écrit :
> > Package: python-support
> > Version: 0.6.4
> > Severity: normal
> > 
> > In a recent upgrade I got this:
> > Setting up python-support (0.6.4) ...
> > 'import site' failed; use -v for traceback
> > 
> > I have no idea if this has any real significance or what the root cause is.
> 
> You should try to run:
>       python -v /usr/sbin/update-python-modules python-support.dirs
> 
> This will give you additional information on what is failing.
> 
> Cheers,
When I do that, I don't get any failure messages.  There is one message
about 
from /usr/lib/python-support/private/pysupport.pyc
/usr/lib/python-support/private/pysupport.py: inconsistent use of tabs
and spaces in indentation
which might be the problem.

It might also be relevant that the original error occurred while adding
python 2.5 to the system.  All the messages below seem to be about 2.4.

iron:~# date; python -v /usr/sbin/update-python-modules
python-support.dirs
Thu May 24 10:09:57 PDT 2007
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.4/site.pyc matches /usr/lib/python2.4/site.py
import site # precompiled from /usr/lib/python2.4/site.pyc
# /usr/lib/python2.4/os.pyc matches /usr/lib/python2.4/os.py
import os # precompiled from /usr/lib/python2.4/os.pyc
import posix # builtin
# /usr/lib/python2.4/posixpath.pyc
matches /usr/lib/python2.4/posixpath.py
import posixpath # precompiled from /usr/lib/python2.4/posixpath.pyc
# /usr/lib/python2.4/stat.pyc matches /usr/lib/python2.4/stat.py
import stat # precompiled from /usr/lib/python2.4/stat.pyc
# /usr/lib/python2.4/UserDict.pyc matches /usr/lib/python2.4/UserDict.py
import UserDict # precompiled from /usr/lib/python2.4/UserDict.pyc
# /usr/lib/python2.4/copy_reg.pyc matches /usr/lib/python2.4/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.4/copy_reg.pyc
# /usr/lib/python2.4/types.pyc matches /usr/lib/python2.4/types.py
import types # precompiled from /usr/lib/python2.4/types.pyc
# /usr/lib/python2.4/warnings.pyc matches /usr/lib/python2.4/warnings.py
import warnings # precompiled from /usr/lib/python2.4/warnings.pyc
# /usr/lib/python2.4/linecache.pyc
matches /usr/lib/python2.4/linecache.py
import linecache # precompiled from /usr/lib/python2.4/linecache.pyc
import encodings # directory /usr/lib/python2.4/encodings
# /usr/lib/python2.4/encodings/__init__.pyc
matches /usr/lib/python2.4/encodings/__init__.py
import encodings # precompiled
from /usr/lib/python2.4/encodings/__init__.pyc
# /usr/lib/python2.4/codecs.pyc matches /usr/lib/python2.4/codecs.py
import codecs # precompiled from /usr/lib/python2.4/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.4/encodings/aliases.pyc
matches /usr/lib/python2.4/encodings/aliases.py
import encodings.aliases # precompiled
from /usr/lib/python2.4/encodings/aliases.pyc
# /usr/lib/python2.4/encodings/ascii.pyc
matches /usr/lib/python2.4/encodings/ascii.py
import encodings.ascii # precompiled
from /usr/lib/python2.4/encodings/ascii.pyc
Python 2.4.4 (#2, Apr  5 2007, 20:11:18) 
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
# /usr/lib/python2.4/optparse.pyc matches /usr/lib/python2.4/optparse.py
import optparse # precompiled from /usr/lib/python2.4/optparse.pyc
# /usr/lib/python2.4/textwrap.pyc matches /usr/lib/python2.4/textwrap.py
import textwrap # precompiled from /usr/lib/python2.4/textwrap.pyc
# /usr/lib/python2.4/string.pyc matches /usr/lib/python2.4/string.py
import string # precompiled from /usr/lib/python2.4/string.pyc
# /usr/lib/python2.4/re.pyc matches /usr/lib/python2.4/re.py
import re # precompiled from /usr/lib/python2.4/re.pyc
# /usr/lib/python2.4/sre.pyc matches /usr/lib/python2.4/sre.py
import sre # precompiled from /usr/lib/python2.4/sre.pyc
# /usr/lib/python2.4/sre_compile.pyc
matches /usr/lib/python2.4/sre_compile.py
import sre_compile # precompiled from /usr/lib/python2.4/sre_compile.pyc
import _sre # builtin
# /usr/lib/python2.4/sre_constants.pyc
matches /usr/lib/python2.4/sre_constants.py
import sre_constants # precompiled
from /usr/lib/python2.4/sre_constants.pyc
# /usr/lib/python2.4/sre_parse.pyc
matches /usr/lib/python2.4/sre_parse.py
import sre_parse # precompiled from /usr/lib/python2.4/sre_parse.pyc
dlopen("/usr/lib/python2.4/lib-dynload/strop.so", 2);
import strop # dynamically loaded
from /usr/lib/python2.4/lib-dynload/strop.so
# /usr/lib/python2.4/gettext.pyc matches /usr/lib/python2.4/gettext.py
import gettext # precompiled from /usr/lib/python2.4/gettext.pyc
# /usr/lib/python2.4/locale.pyc matches /usr/lib/python2.4/locale.py
import locale # precompiled from /usr/lib/python2.4/locale.pyc
dlopen("/usr/lib/python2.4/lib-dynload/_locale.so", 2);
import _locale # dynamically loaded
from /usr/lib/python2.4/lib-dynload/_locale.so
# /usr/lib/python2.4/copy.pyc matches /usr/lib/python2.4/copy.py
import copy # precompiled from /usr/lib/python2.4/copy.pyc
# /usr/lib/python2.4/inspect.pyc matches /usr/lib/python2.4/inspect.py
import inspect # precompiled from /usr/lib/python2.4/inspect.pyc



# /usr/lib/python2.4/dis.pyc matches /usr/lib/python2.4/dis.py
import dis # precompiled from /usr/lib/python2.4/dis.pyc
# /usr/lib/python2.4/opcode.pyc matches /usr/lib/python2.4/opcode.py
import opcode # precompiled from /usr/lib/python2.4/opcode.pyc
import imp # builtin
# /usr/lib/python2.4/tokenize.pyc matches /usr/lib/python2.4/tokenize.py
import tokenize # precompiled from /usr/lib/python2.4/tokenize.pyc
# /usr/lib/python2.4/token.pyc matches /usr/lib/python2.4/token.py
import token # precompiled from /usr/lib/python2.4/token.pyc
dlopen("/usr/lib/python2.4/lib-dynload/struct.so", 2);
import struct # dynamically loaded
from /usr/lib/python2.4/lib-dynload/struct.so
import errno # builtin
# /usr/lib/python2.4/py_compile.pyc
matches /usr/lib/python2.4/py_compile.py
import py_compile # precompiled from /usr/lib/python2.4/py_compile.pyc
import marshal # builtin
# /usr/lib/python2.4/traceback.pyc
matches /usr/lib/python2.4/traceback.py
import traceback # precompiled from /usr/lib/python2.4/traceback.pyc
# /usr/lib/python-support/private/pysupport.pyc
matches /usr/lib/python-support/private/pysupport.py
import pysupport # precompiled
from /usr/lib/python-support/private/pysupport.pyc
/usr/lib/python-support/private/pysupport.py: inconsistent use of tabs
and spaces in indentation
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] site
# cleanup[1] encodings
# cleanup[1] errno
# cleanup[1] gettext
# cleanup[1] sre_constants
# cleanup[1] optparse
# cleanup[1] _codecs
# cleanup[1] opcode
# cleanup[1] pysupport
# cleanup[1] zipimport
# cleanup[1] warnings
# cleanup[1] encodings.ascii
# cleanup[1] textwrap
# cleanup[1] struct
# cleanup[1] codecs
# cleanup[1] copy
# cleanup[1] strop
# cleanup[1] _locale
# cleanup[1] sre
# cleanup[1] signal
# cleanup[1] token
# cleanup[1] posix
# cleanup[1] encodings.aliases
# cleanup[1] py_compile
# cleanup[1] exceptions
# cleanup[1] sre_parse
# cleanup[1] marshal
# cleanup[1] sre_compile
# cleanup[1] locale
# cleanup[1] _sre
# cleanup[1] inspect
# cleanup[1] imp
# cleanup[1] traceback
# cleanup[1] linecache
# cleanup[1] dis
# cleanup[1] tokenize
# cleanup[1] string
# cleanup[1] types
# cleanup[1] re
# cleanup[2] copy_reg
# cleanup[2] posixpath
# cleanup[2] os.path
# cleanup[2] stat
# cleanup[2] UserDict
# cleanup[2] os
# cleanup sys
# cleanup __builtin__
# cleanup ints: 13 unfreed ints in 3 out of 8 blocks
# cleanup floats
-- 
Ross Boylan                                      wk:  (415) 514-8146
185 Berry St #5700                               [EMAIL PROTECTED]
Dept of Epidemiology and Biostatistics           fax: (415) 514-8150
University of California, San Francisco
San Francisco, CA 94107-1739                     hm:  (415) 550-1062


Reply via email to