On Tue, Jan 02, 2007 at 05:23:48PM +0100, Vincent Danjean wrote:
> Ok, can you try also :

+ echo 'import sys; print sys.path; from mercurial import bdiff'
+ python2.4
['', '/usr/lib/python24.zip', '/usr/lib/python2.4',
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk',
'/usr/lib/python2.4/lib-dynload',
'/usr/local/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages/Numeric',
'/usr/lib/python2.4/site-packages/PIL',
'/usr/lib/python2.4/site-packages/cairo',
'/var/lib/python-support/python2.4',
'/usr/lib/python2.4/site-packages/gtk-2.0',
'/var/lib/python-support/python2.4/gtk-2.0']
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: cannot import name bdiff
+ ls -l /var/lib/python-support/python2.4/mercurial/bdiff.so
lrwxrwxrwx 1 root root 62 Jan  2 10:35
/var/lib/python-support/python2.4/mercurial/bdiff.so ->
/usr/lib/python-support/mercurial/python2.4/mercurial/bdiff.so
+ ls -l /usr/lib/python-support/mercurial/python2.4/mercurial/bdiff.so
-rw-r--r-- 1 root root 7024 Dec 19 11:31
/usr/lib/python-support/mercurial/python2.4/mercurial/bdiff.so
+ file /usr/lib/python-support/mercurial/python2.4/mercurial/bdiff.so
/usr/lib/python-support/mercurial/python2.4/mercurial/bdiff.so: ELF
32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped

> And can you send me the precise hg command you run that leads to the error
> (with the full error message) ?

Anything.

$ hg help
*** failed to import extension hgext/hgk: No module named bdiff
Mercurial Distributed SCM

list of commands (use "hg help -v" to show aliases and global options):

Commands provided by core mercurial:
 add          add the specified files on the next commit
 annotate     show changeset information per file line
...



$ hg clone http://xxx.net:8000/cgi-bin/hgwebdir.cgi/yyyyyyyyyyy
*** failed to import extension hgext/hgk: No module named bdiff
requesting all changes
adding changesets
** unknown exception encountered, details follow
** report bug details to [EMAIL PROTECTED]
** Mercurial Distributed SCM (version 0.9)
Traceback (most recent call last):
  File "/usr/bin/hg", line 12, in ?
    commands.run()
  File "/usr/lib/python2.4/commands.py", line 3200, in run

  File "/usr/lib/python2.4/commands.py", line 3371, in dispatch

  File "/usr/lib/python2.4/commands.py", line 3348, in <lambda>

  File "/usr/lib/python2.4/commands.py", line 946, in clone

  File "/usr/lib/python2.4/site-packages/mercurial/localrepo.py", line
1082, in pull
  File "/usr/lib/python2.4/site-packages/mercurial/localrepo.py", line
1490, in addchangegroup
  File "/usr/lib/python2.4/site-packages/mercurial/revlog.py", line
1145, in addgroup
  File "/usr/lib/python2.4/site-packages/mercurial/revlog.py", line 742,
in patches
  File "/usr/lib/python2.4/site-packages/mercurial/demandload.py", line
61, in __getattribute__
  File "/usr/lib/python2.4/site-packages/mercurial/demandload.py", line
54, in module
  File "/usr/lib/python2.4/site-packages/mercurial/demandload.py", line
30, in module
  File "/usr/lib/python2.4/site-packages/mercurial/mdiff.py", line 9, in
?
ImportError: No module named bdiff
transaction abort!
rollback completed



$ hg status
*** failed to import extension hgext/hgk: No module named bdiff



$ hg diff linux/drivers/media/dvb/frontends/blablabla.c
*** failed to import extension hgext/hgk: No module named bdiff
** unknown exception encountered, details follow
** report bug details to [EMAIL PROTECTED]
** Mercurial Distributed SCM (version 0.9)
Traceback (most recent call last):
  File "/usr/bin/hg", line 12, in ?
    commands.run()
  File "/usr/lib/python2.4/commands.py", line 3200, in run

  File "/usr/lib/python2.4/commands.py", line 3371, in dispatch

  File "/usr/lib/python2.4/commands.py", line 3346, in <lambda>

  File "/usr/lib/python2.4/commands.py", line 1379, in diff

  File "/usr/lib/python2.4/commands.py", line 342, in dodiff

  File "/usr/lib/python2.4/site-packages/mercurial/changelog.py", line
37, in read
  File "/usr/lib/python2.4/site-packages/mercurial/revlog.py", line 823,
in revision
  File "/usr/lib/python2.4/site-packages/mercurial/revlog.py", line 742,
in patches
  File "/usr/lib/python2.4/site-packages/mercurial/demandload.py", line
61, in __getattribute__
  File "/usr/lib/python2.4/site-packages/mercurial/demandload.py", line
54, in module
  File "/usr/lib/python2.4/site-packages/mercurial/demandload.py", line
30, in module
  File "/usr/lib/python2.4/site-packages/mercurial/mdiff.py", line 9, in
?
ImportError: No module named bdiff


> note: I'm trying to find a difference with my system. I do not know where
> the problem comes from.

The funny thing is that this:

PYTHONPATH=/var/lib/python-support/python2.4/mercurial hg help

behaves correctly, but this doesn't:

$ echo 'from mercurial import bdiff' |
PYTHONPATH=/var/lib/python-support/python2.4/mercurial python2.4

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: cannot import name bdiff


But as I said, I don't know enough about Python to understand why...

Attachment: signature.asc
Description: Digital signature

Reply via email to