Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17790 closed defect (worksforme)

devel/mercurial fails with 'convert' extension

Reported by: easye Owned by: deric@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: mercurial

Description

Something in the devel/mercurial port has problems with the Python path when invoking the 'convert' extension.

To reproduce the bug:

1) Add the extensions configuration to '~/.hgrc'

[extensions] hgext.convert=

2) Try to invoke the 'hg convert' command (doesn't really matter where)

cmd$ hg convert foo Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap

I think something in mercurial is trying to use the Python interpreter under '/usr/bin' as opposed to the one provided by Macports.

I verified that a mercurial-1.1.1 built to run "in place", works, so there is something divergent about Macports invocation of Mercurial.

Change History (5)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Port: mercurial added

There was also an issue where the Python framework appeared to be a different version to the .dylib. I think that's meant to be fixed though?

comment:2 Changed 16 years ago by deric@…

Resolution: worksforme
Status: newclosed

This works for me, at least with the updated mercurial i commited in r44382.

"> hg convert foo assuming destination foo-hg initializing destination foo-hg repository foo does not look like a CVS checkout foo does not look like a Git repo Subversion python bindings could not be loaded foo is not a local Mercurial repo foo does not look like a darcs repo foo does not look like a monotone repo foo does not look like a GNU Arch repo Bazaar modules could not be loaded abort: foo: missing or unsupported repository "

comment:3 in reply to:  1 Changed 16 years ago by blb@…

Replying to jmr@…:

There was also an issue where the Python framework appeared to be a different version to the .dylib. I think that's meant to be fixed though?

Yes, that was #16111, fixed in python25 2.5.2_7, python24 2.4.6, and shouldn't be an issue at all with python26; not sure about python30 though.

comment:4 Changed 16 years ago by easye

Looking a little closer at my Macports python installation, I saw it was confused (at best), with two versions of Python installed, and python_select pointing to the Apple supply Python. After deleting python24, re-installing python25, and pointing python_select at 'python25', the Mecurial 'convert' extension works.

Thanks for the help.

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.