Your message dated Wed, 26 Oct 2011 21:47:27 +0100
with message-id <[email protected]>
and subject line Re: Bug#646546: mercurial fails to run: abort: couldn't find 
mercurial libraries in [/usr/bin /usr/lib/python2.6 [...]
has caused the Debian Bug report #646546,
regarding mercurial fails to run: abort: couldn't find mercurial libraries in 
[/usr/bin /usr/lib/python2.6 [...]
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
646546: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646546
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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)

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



--- End Message ---
--- Begin Message ---
On 26/10/11 18:41, Thilo-Alexander Ginkel wrote:
> On Wed, Oct 26, 2011 at 10:01, Javi Merino <[email protected]> wrote:
>>> 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)?
> 
> -- 8< --
> tg@vega ~$ ls /usr/lib/pymodules/python2.6/
> beaker                 boto-1.9b.egg-info      hgext
> mercurial                 pygments                 reportbug
> Beaker-1.5.4.egg-info  chardet                 lsb_release.py
> mercurial-1.6.4.egg-info  Pygments-1.3.1.egg-info
> reportbug-4.12.6.egg-info
> boto                   chardet-2.0.1.egg-info  lsb_release.pyc
> OpenSSL                   pyOpenSSL-0.10.egg-info
> -- 8< --

You have mercurial and hgext in /usr/lib/pymodules/python2.6 which is in
your sys.path (as can be seen in your output).  That doesn't make any
sense, python should have found it (it's there!)

>> 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.
> 
> My aptitude does not support --reinstall, but apt-get does:

My mistake, I meant to say "aptitude reinstall", but, as you guessed, I
confused apt-get and aptitude's flags O:-)

> -- 8< --
> tg@vega ~$ sudo apt-get install --reinstall mercurial mercurial-common
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
> Need to get 0 B/1,414 kB of archives.
> After this operation, 0 B of additional disk space will be used.
> (Reading database ... 80369 files and directories currently installed.)
> Preparing to replace mercurial-common 1.6.4-1 (using
> .../mercurial-common_1.6.4-1_all.deb) ...
> Unpacking replacement mercurial-common ...
> Preparing to replace mercurial 1.6.4-1 (using
> .../mercurial_1.6.4-1_amd64.deb) ...
> Unpacking replacement mercurial ...
> Setting up mercurial-common (1.6.4-1) ...
> Setting up mercurial (1.6.4-1) ...
> -- 8< --
> 
> No triggers.
> 
>> I've just installed mercurial in a fresh squeeze install and it works
>> for me.
> 
> I also set up another virtual machine where it works correctly, but I
> cannot easily perform a reinstall as the system in question is
> provided as a VPS image, so I cannot really perform a scratch install.
> 
> Based on the output I got on my VM when installing mercurial I however
> figured out that the triggers for python-support are not being
> invoked.
> 
> debsums -c python-support showed no differences, but reinstalling
> python-support before reinstalling mercurial and mercurial-common
> actually solved the issue.

Maybe there was something wrong with the VPS image, then? python-support
not properly installed (or half-installed?)

> Thanks for your help!

hmmm, I'm closing the bug, but I'm short of worried that there was
something wrong and we didn't fix it.  Oh well, hopefully it was the VPS
image as I (and you) can't reproduce it in a fresh install of squeeze.
Glad that it works for you :)

Cheers,
Javi (Vicho)

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to