On 25/10/11 00:40, Thilo-Alexander Ginkel wrote: > Package: mercurial > Version: 1.6.4-1 > Severity: normal > Tags: squeeze > > Mercurial as installed on a fresh Debian 6.0 installation fails to execute > with the following error message: > > tg@vega ~$ hg > abort: couldn't find mercurial libraries in [/usr/bin /usr/lib/python2.6 > /usr/lib/python2.6/plat-linux2 /usr/lib/python2.6/lib-tk > /usr/lib/python2.6/lib-old /usr/lib/python2.6/lib-dynload > /usr/local/lib/python2.6/dist-packages /usr/lib/python2.6/dist-packages > /usr/lib/pymodules/python2.6] > (check your install and PYTHONPATH)
Can you please run "ls /usr/lib/pymodules/python2.6/" and "debsums -c mercurial mercurial-common" (you may need to install the debsums package)? Can you try to reinstall the package with "aptitude install --reinstall mercurial mercurial-common"? It should say "Processing triggers for python-support ..." as part of the output. I've just installed mercurial in a fresh squeeze install and it works for me. > Some more verbose output: > > tg@vega ~$ PYTHONVERBOSE=x hg > # installing zipimport hook > import zipimport # builtin > # installed zipimport hook > # /usr/lib/python2.6/site.pyc matches /usr/lib/python2.6/site.py > import site # precompiled from /usr/lib/python2.6/site.pyc > # /usr/lib/python2.6/os.pyc matches /usr/lib/python2.6/os.py > import os # precompiled from /usr/lib/python2.6/os.pyc > import errno # builtin > import posix # builtin > # /usr/lib/python2.6/posixpath.pyc matches /usr/lib/python2.6/posixpath.py > import posixpath # precompiled from /usr/lib/python2.6/posixpath.pyc > # /usr/lib/python2.6/stat.pyc matches /usr/lib/python2.6/stat.py > import stat # precompiled from /usr/lib/python2.6/stat.pyc > # /usr/lib/python2.6/genericpath.pyc matches /usr/lib/python2.6/genericpath.py > import genericpath # precompiled from /usr/lib/python2.6/genericpath.pyc > # /usr/lib/python2.6/warnings.pyc matches /usr/lib/python2.6/warnings.py > import warnings # precompiled from /usr/lib/python2.6/warnings.pyc > # /usr/lib/python2.6/linecache.pyc matches /usr/lib/python2.6/linecache.py > import linecache # precompiled from /usr/lib/python2.6/linecache.pyc > # /usr/lib/python2.6/types.pyc matches /usr/lib/python2.6/types.py > import types # precompiled from /usr/lib/python2.6/types.pyc > # /usr/lib/python2.6/UserDict.pyc matches /usr/lib/python2.6/UserDict.py > import UserDict # precompiled from /usr/lib/python2.6/UserDict.pyc > # /usr/lib/python2.6/_abcoll.pyc matches /usr/lib/python2.6/_abcoll.py > import _abcoll # precompiled from /usr/lib/python2.6/_abcoll.pyc > # /usr/lib/python2.6/abc.pyc matches /usr/lib/python2.6/abc.py > import abc # precompiled from /usr/lib/python2.6/abc.pyc > # /usr/lib/python2.6/copy_reg.pyc matches /usr/lib/python2.6/copy_reg.py > import copy_reg # precompiled from /usr/lib/python2.6/copy_reg.pyc > # /usr/lib/python2.6/sitecustomize.pyc matches > /usr/lib/python2.6/sitecustomize.py > import sitecustomize # precompiled from /usr/lib/python2.6/sitecustomize.pyc > import encodings # directory /usr/lib/python2.6/encodings > # /usr/lib/python2.6/encodings/__init__.pyc matches > /usr/lib/python2.6/encodings/__init__.py > import encodings # precompiled from /usr/lib/python2.6/encodings/__init__.pyc > # /usr/lib/python2.6/codecs.pyc matches /usr/lib/python2.6/codecs.py > import codecs # precompiled from /usr/lib/python2.6/codecs.pyc > import _codecs # builtin > # /usr/lib/python2.6/encodings/aliases.pyc matches > /usr/lib/python2.6/encodings/aliases.py > import encodings.aliases # precompiled from > /usr/lib/python2.6/encodings/aliases.pyc > # /usr/lib/python2.6/encodings/utf_8.pyc matches > /usr/lib/python2.6/encodings/utf_8.py > import encodings.utf_8 # precompiled from > /usr/lib/python2.6/encodings/utf_8.pyc > Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) > [GCC 4.4.5] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > abort: couldn't find mercurial libraries in [/usr/bin /usr/lib/python2.6 > /usr/lib/python2.6/plat-linux2 /usr/lib/python2.6/lib-tk > /usr/lib/python2.6/lib-old /usr/lib/python2.6/lib-dynload > /usr/local/lib/python2.6/dist-packages /usr/lib/python2.6/dist-packages > /usr/lib/pymodules/python2.6] > (check your install and PYTHONPATH) > # clear __builtin__._ > [...] > > Manually attempting to import mercurial from a python shell also fails (but > succeeds on Lenny, where mercurial is also working correctly): > > tg@vega ~$ python > Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) > [GCC 4.4.5] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import mercurial > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named mercurial > > > -- System Information: > Debian Release: 6.0.3 > APT prefers stable-updates > APT policy: (500, 'stable-updates'), (500, 'stable') > Architecture: amd64 (x86_64) > > Kernel: Linux 2.6.32-028stab092.1 (SMP w/1 CPU core) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/bash > > Versions of packages mercurial depends on: > ii libc6 2.11.2-10 Embedded GNU C Library: Shared > lib > ii mercurial-common 1.6.4-1 scalable distributed version > contr > ii python 2.6.6-3+squeeze6 interactive high-level > object-orie > ii python-support 1.0.10 automated rebuilding support for > P > ii ucf 3.0025+nmu1 Update Configuration File: > preserv > > mercurial recommends no packages. > > Versions of packages mercurial suggests: > pn kdiff3 | tkd <none> (no description available) > pn qct <none> (no description available) > ii vim 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor > pn wish <none> (no description available) > > -- no debconf information > > >
signature.asc
Description: OpenPGP digital signature