pkg_resources.ResolutionError: No script named 'hg'

774 views
Skip to first unread message

Stefan

unread,
Nov 17, 2009, 1:43:30 PM11/17/09
to golang-nuts
Hi

Following the instructions on the web site i can't seem to make the hg
script work to fetch the release of Go.

Here is what happens.

~ >: env|grep Go
~ >: setenv GOROOT $HOME/go
~ >: setenv GOARCH 'darwin/386'
~ >: ls go
ls: go: No such file or directory
~ >: hg clone -r release https://go.googlecode.com/hg/ $GOROOT
Traceback (most recent call last):
File "/usr/local/bin/hg", line 5, in <module>
pkg_resources.run_script('mercurial==1.4', 'hg')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/
Extras/lib/python/pkg_resources.py", line 442, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/
Extras/lib/python/pkg_resources.py", line 1154, in run_script
raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'hg'

I used the easy_install tool to install mercurial, and i'm using tcsh.
Python has worked fine so far, is anyone else having this issue?

Adam Langley

unread,
Nov 17, 2009, 1:49:53 PM11/17/09
to Stefan, golang-nuts
On Tue, Nov 17, 2009 at 10:43 AM, Stefan <swe...@gmail.com> wrote:
>  ~ >: setenv GOROOT $HOME/go
>  ~ >: setenv GOARCH 'darwin/386'

GOARCH should be '386' and GOOS should be 'darwin'.

>  ~ >: hg clone -r release https://go.googlecode.com/hg/ $GOROOT
>  Traceback (most recent call last):
>   File "/usr/local/bin/hg", line 5, in <module>
>     pkg_resources.run_script('mercurial==1.4', 'hg')
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/
> Extras/lib/python/pkg_resources.py", line 442, in run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/
> Extras/lib/python/pkg_resources.py", line 1154, in run_script
>     raise ResolutionError("No script named %r" % script_name)
>  pkg_resources.ResolutionError: No script named 'hg'
>
> I used the easy_install tool to install mercurial, and i'm using tcsh.
> Python has worked fine so far, is anyone else having this issue?

Something is clearly wrong with your hg installation, but it's not
clear to me what it might be. Hopefully someone here knows OS X better
than I.


AGL

baldmountain

unread,
Nov 17, 2009, 1:55:04 PM11/17/09
to golang-nuts
I'm using the MacPorts version. Seems to work fine.

sudo port install mercurial

I think I spelled mercurial correctly... :)

Crwth

unread,
Nov 17, 2009, 1:58:48 PM11/17/09
to Stefan, golang-nuts
I had the same problem using the easy_install for mercurial; I ended up installing from a repository (using yum, since I'm on Scientific Linux), and it worked fine after that.

--
  Crwth
Reply all
Reply to author
Forward
0 new messages