why I get unrecognized import path when go get mgo in windows

989 views
Skip to first unread message

Jackie Li

unread,
Jul 4, 2012, 8:57:51 AM7/4/12
to golan...@googlegroups.com, gus...@niemeyer.net
Hi there,

I thought it's ok to go get from non-popular repos, but:

C:\Users\hb19623\Gocode\src>go get labix.org/v1/mgo
package labix.org/v1/mgo: unrecognized import path "labix.org/v1/mgo"
C:\Users\hb19623\Gocode\src>go version
go version go1.0.2
C:\Users\hb19623\Gocode>echo %GOPATH%
C:\Users\hb19623\Gocode

--
Jackie

Gustavo Niemeyer

unread,
Jul 4, 2012, 9:26:21 AM7/4/12
to Jackie Li, golan...@googlegroups.com, mgo-...@googlegroups.com
Hey Jackie,
I suspect you may be missing bzr in your path, and this is just a poor
error message.

Please try running the command again with:

go get -v labix.org/v1/mgo

By the way, any particular reason for using v1 and not v2?


gustavo @ http://niemeyer.net

Jackie Li

unread,
Jul 4, 2012, 9:39:29 AM7/4/12
to Gustavo Niemeyer, golan...@googlegroups.com, mgo-...@googlegroups.com
Hi Gustavo  ,

Thanks very much for your reply! 

for v1 or v2, I was just trying to test if go get works, so I was trying v2 first and then v1.

I've got it working. bzr is installed, but I didn't set https_proxy, only set http_proxy.


Regards,
Jackie
--
Jackie

peterGo

unread,
Jul 4, 2012, 9:41:55 AM7/4/12
to golang-nuts
Gustavo,

On Jul 4, 9:26 am, Gustavo Niemeyer <gust...@niemeyer.net> wrote:
> I suspect you may be missing bzr in your path, and this is just a poor
> error message.
>
> Please try running the command again with:
>
> go get -v labix.org/v1/mgo

Without bzr in the path:

C:\>go get labix.org/v1/mgo
# cd .; bzr branch https://launchpad.net/mgo/v1 c:\lewgun\src\labix.org
\v1\mgo
package labix.org/v1/mgo: exec: "bzr": executable file not found in
%PATH%

C:\>go get labix.org/v2/mgo
# cd .; bzr branch https://launchpad.net/mgo/v2 c:\lewgun\src\labix.org
\v2\mgo
package labix.org/v2/mgo: exec: "bzr": executable file not found in
%PATH%

Peter

On Jul 4, 9:26 am, Gustavo Niemeyer <gust...@niemeyer.net> wrote:
> Hey Jackie,
>

Gustavo Niemeyer

unread,
Jul 4, 2012, 10:14:47 AM7/4/12
to peterGo, golang-nuts
Ah, thanks Peter.
--

gustavo @ http://niemeyer.net

Gustavo Niemeyer

unread,
Jul 4, 2012, 10:15:10 AM7/4/12
to Jackie Li, golan...@googlegroups.com, mgo-...@googlegroups.com
Glad to hear it. Please ping if you have further questions.
Reply all
Reply to author
Forward
0 new messages