"cannot import name demandimport" and "index 00changelog.i invalid format 2!"
Hans Fangohr
h.fangohr at soton.ac.uk
Tue May 13 03:25:09 CDT 2008
Hi Ethan,
> Hello,
>
> I'm running into issues with Mercurial 0.9.1 RPMs on SuSE
> 10.1.
>
> $ hg clone /foo/bar /tmp/foo
> abort: index 00changelog.i invalid format 2!
>
> The same "hg" command works on another machine with 0.9.5,
> so I thought this might be a repository/Mercurial-version
> incompatibility.
This was the case for us. If you create a repository that is 'too
modern' (and this means version number 0.9.3 or 0.9.5 -- I don't know
which, but somewhere in those numbers) and try to read (or clone) this
with an older hg, it will fail in the way you show above.
> Uppgrading to Mercurial 0.9.5, I now get:
>
> $ hg --help
> Traceback (most recent call last):
> File "/usr/bin/hg", line 11, in <module>
> from mercurial import demandimport; demandimport.enable()
> ImportError: cannot import name demandimport
>
> I'm using the RPMs posted here:
>
> http://download.opensuse.org/repositories/devel:/tools:/scm/SUSE_Linux_10.1/x86_64/
This I don't know, but would guess this is an installation problem.
I would think that if you have a working hg install that is -- in your
case -- at least version 0.9.5, the clone should work.
Regards,
Hans
> Any ideas what might be going on?
>
> Thanks,
> Ethan
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
>
>
--
Hans Fangohr
School of Engineering Sciences
University of Southampton
Phone: +44 (0) 238059 8345
Email: fangohr at soton.ac.uk
http://www.soton.ac.uk/~fangohr
More information about the Mercurial
mailing list