Non-Working Mercurial after Mac OS X Lion (10.7) Install
Augie Fackler
durin42 at gmail.com
Sat Aug 20 23:33:32 UTC 2011
(please keep the list CC'ed, others may be able to help)
On 8/20/2011 6:28 PM, Kime H. Smith, Jr. wrote:
> Augie:
>
> Neither binary seems to be working for me. Thanks for your reply! I hope
> this answers your question (I seem to have a few duplicate directories
> in my PATH):
>
> *$ which -a hg*
> /opt/local/bin/hg
> /usr/local/bin/hg
> /opt/local/bin/hg
> /usr/local/bin/hg
> /opt/local/bin/hg
> *$ /usr/local/bin/hg*
> abort: file:// URLs can only refer to localhost
> *$ /opt/local/bin/hg*
> abort: file:// URLs can only refer to localhost
Try this:
python -c 'import mercurial ; print mercurial.__file__'
and delete the libraries for Mercurial. Repeat until the python oneliner
fails with an ImportError, then delete all the `hg` binaries and
reinstall. It's a bit of a raindance, but it might work (I don't have a
Lion system here to test against).
>
>
> Best,
> Kime
>
>
> On Aug 20, 2011, at 3:25 PM, Augie Fackler wrote:
>
>> On 8/19/2011 10:47 AM, Kime H. Smith, Jr. wrote:
>>>
>>> 1. I recently installed Mac OS X Lion (10.7) on my laptop. Mercurial
>>> stopped working -- all attempts to run "hg" (no matter what command)
>>> resulted in the message:
>>>
>>> abort: file:// URLs can only refer to localhost
>>>
>>> 2. "which python" results in /usr/bin/python; python --version yields
>>> "Python 2.7.1"
>>>
>>> 3. I tried re-installing mercurial using "sudo Port install
>>> mercurial"; running "/opt/local/bin/hg" results in the same message
>>> as before:
>>>
>>> abort: file:// URLs can only refer to localhost
>>>
>>> 4. I then downloaded and installed the 10.7 package from selenic.com
>>> <http://selenic.com>
>>> (mercurial-1.9.1+20110801-py2.7-macosx10.7.mpkg). running
>>> "/usr/local/bin/hg" I am still getting the same message:
>>>
>>> abort: file:// URLs can only refer to localhost
>>>
>>> This is probably something quick and easy to fix. Can anyone on the
>>> list advise me?
>>>
>>> Thanks in advance for your help.
>>
>> Are you sure you're running the right 'hg' binary? What does `which
>> hg` say?
>>
>>>
>>> Best,
>>> Kime Smith
>>>
>>>
>>>
>>> _______________________________________________
>>> Mercurial mailing list
>>> Mercurial at selenic.com <mailto:Mercurial at selenic.com>
>>> http://selenic.com/mailman/listinfo/mercurial
>>
>>
>
More information about the Mercurial
mailing list