[issue826] hg convert fails importing socket

Florian Hars mercurial-bugs at selenic.com
Wed Nov 7 03:37:05 CST 2007


New submission from Florian Hars <hars at bik-gmbh.de>:

I installed hg 0.9.5  on ubuntu feisty/i386 and gutsy/amd64 (both Python 2.5.1)
and FreeBSD 6.2/i386 (Python 2.4.3) get the exact same behaviour:
If i try to convert a local or remote cvs-repository (or a nonexisting
repository of any type), it complains about

abort: <whatever>: unknown repository type

The last few system calls are vain attempts to load the socket module from
within the mercurial install (i hope the automatic line breaks don't make it
unreadable, use truss instead of strace on FreeBSD):

$ strace hg convert -s printout foo bar 2>&1 | cat -n | grep socket | tail
  2384  open("/usr/lib/python2.5/lib-tk/_socket.py", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
  2385  open("/usr/lib/python2.5/lib-tk/_socket.pyc", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
  2386  stat64("/usr/lib/python2.5/lib-dynload/_socket", 0xbfa403a4) = -1 ENOENT
(No such file or directory)
  2387  open("/usr/lib/python2.5/lib-dynload/_socket.so", O_RDONLY|O_LARGEFILE) = 4
  2389  open("/usr/lib/python2.5/lib-dynload/_socket.so", O_RDONLY) = 5
  2431  stat64("/home/hars/lib/python/mercurial/_socket", 0xbfa3dee4) = -1
ENOENT (No such file or directory)
  2432  open("/home/hars/lib/python/mercurial/_socket.so", O_RDONLY|O_LARGEFILE)
= -1 ENOENT (No such file or directory)
  2433  open("/home/hars/lib/python/mercurial/_socketmodule.so",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  2434  open("/home/hars/lib/python/mercurial/_socket.py", O_RDONLY|O_LARGEFILE)
= -1 ENOENT (No such file or directory)
  2435  open("/home/hars/lib/python/mercurial/_socket.pyc",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

----------
messages: 4283
nosy: fhars
priority: bug
status: unread
title: hg convert fails importing socket

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue826>
____________________________________________________



More information about the Mercurial-devel mailing list