iawia002 / lux

👾 Fast and simple video download library and CLI tool written in Go
MIT License
27.83k stars 3k forks source link

go get -v github.com/iawia002/annie install failed #694

Open TurnOffNOD opened 4 years ago

TurnOffNOD commented 4 years ago

Hi, when I install annie with commandline "go get -v github.com/iawia002/annie", it failed. At the end of failed installation, it shows " undefined: ytdl.DefaultClient " error.

GO111MODULE has already been set to "on", and my go version is 1.14.3, 64bit on Win10 64bit.

The commandline full output is as follows:

go: github.com/iawia002/annie upgrade => v0.0.0-20200521035650-dcf81528556a
golang.org/x/net/html/atom
github.com/mattn/go-isatty
github.com/mattn/go-colorable
github.com/fatih/color
github.com/mattn/go-runewidth
github.com/cheggaaa/pb
github.com/kr/text
github.com/kr/pretty
github.com/tidwall/pretty
github.com/tidwall/gjson
github.com/iawia002/annie/request
golang.org/x/net/html
github.com/iawia002/annie/utils
github.com/iawia002/annie/downloader
github.com/iawia002/annie/extractors/douyin
github.com/iawia002/annie/extractors/douyu
github.com/andybalholm/cascadia
github.com/iawia002/annie/extractors/facebook
github.com/iawia002/annie/extractors/geekbang
github.com/PuerkitoBio/goquery
github.com/iawia002/annie/extractors/mgtv
github.com/iawia002/annie/extractors/miaopai
github.com/iawia002/annie/extractors/netease
github.com/iawia002/annie/parser
github.com/iawia002/annie/extractors/bcy
github.com/iawia002/annie/extractors/bilibili
github.com/iawia002/annie/extractors/instagram
github.com/iawia002/annie/extractors/iqiyi
github.com/iawia002/annie/extractors/pixivision
github.com/iawia002/annie/extractors/qq
github.com/iawia002/annie/extractors/pornhub
github.com/iawia002/annie/extractors/tangdou
github.com/iawia002/annie/extractors/tiktok
github.com/iawia002/annie/extractors/tumblr
github.com/iawia002/annie/extractors/twitter
github.com/iawia002/annie/extractors/udn
github.com/iawia002/annie/extractors/universal
github.com/iawia002/annie/extractors/vimeo
github.com/iawia002/annie/extractors/weibo
github.com/iawia002/annie/extractors/xvideos
github.com/iawia002/annie/extractors/yinyuetai
github.com/iawia002/annie/extractors/youku
github.com/rs/zerolog/internal/json
github.com/rs/zerolog
github.com/rs/zerolog/log
github.com/rylio/ytdl
github.com/iawia002/annie/extractors/youtube
# github.com/iawia002/annie/extractors/youtube
D:\Programs\goPath\pkg\mod\github.com\iawia002\annie@v0.0.0-20200521035650-dcf81528556a\extractors\youtube\youtube.go:128:20: undefined: ytdl.DefaultClient
D:\Programs\goPath\pkg\mod\github.com\iawia002\annie@v0.0.0-20200521035650-dcf81528556a\extractors\youtube\youtube.go:196:18: undefined: ytdl.DefaultClient
w311ang commented 4 years ago

错误一样,我是Termux

shanyouli commented 4 years ago

同上的问题, go get -v github.com/iawia002/annie@0.10.0 可以正常安装。

very20101 commented 4 years ago

same err 4 v0.10.1 # #

w311ang commented 4 years ago

同上的问题, go get -v github.com/iawia002/annie@0.10.0 可以正常安装。

Screenshot_2020-06-20-20-10-36 问题依旧

pansila commented 4 years ago

Same error when trying to install annie.

λ go get github.com/iawia002/annie
go: downloading github.com/iawia002/annie v0.0.0-20200710094659-7d7e48200139
go: github.com/iawia002/annie upgrade => v0.0.0-20200710094659-7d7e48200139
go: downloading github.com/fatih/color v1.7.0
go: downloading github.com/tidwall/gjson v1.3.2
go: downloading github.com/robertkrimen/otto v0.0.0-20191219234010-c382bd3c16ff
go: downloading github.com/rylio/ytdl v0.6.2
go: downloading github.com/MercuryEngineering/CookieMonster v0.0.0-20180304172713-1584578b3403
go: downloading github.com/PuerkitoBio/goquery v1.4.1
go: downloading github.com/tidwall/pretty v1.0.0
go: downloading github.com/rs/zerolog v1.16.0
go: downloading github.com/cheggaaa/pb v1.0.25
go: downloading golang.org/x/sys v0.0.0-20191104094858-e8c54fb511f6
go: downloading github.com/tidwall/match v1.0.1
go: downloading github.com/mattn/go-runewidth v0.0.6
go: downloading github.com/mattn/go-colorable v0.0.9
go: downloading github.com/andybalholm/cascadia v1.0.0
go: downloading golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: downloading gopkg.in/sourcemap.v1 v1.0.5
# github.com/iawia002/annie/extractors/youtube
d:\projects\go\pkg\mod\github.com\iawia002\annie@v0.0.0-20200710094659-7d7e48200139\extractors\youtube\youtube.go:128:20: undefined: ytdl.DefaultClient
d:\projects\go\pkg\mod\github.com\iawia002\annie@v0.0.0-20200710094659-7d7e48200139\extractors\youtube\youtube.go:196:18: undefined: ytdl.DefaultClient
zhujie0322 commented 4 years ago

有解决办法吗?我也遇到同样的问题了

TibebeJS commented 4 years ago

Facing similar issue here

go: github.com/iawia002/annie upgrade => v0.0.0-20200727102645-67298d55aaf4
# github.com/iawia002/annie/extractors/youtube
../pkg/mod/github.com/iawia002/annie@v0.0.0-20200727102645-67298d55aaf4/extractors/youtube/youtube.go:128:20: undefined: ytdl.DefaultClient
../pkg/mod/github.com/iawia002/annie@v0.0.0-20200727102645-67298d55aaf4/extractors/youtube/youtube.go:196:18: undefined: ytdl.DefaultClient
LqkUWp commented 4 years ago
cd ~
go get github.com/iawia002/annie
cd ~/go/pkg/mod/github.com/iawia002/annie@v0.0.0-20200727102645-67298d55aaf4/extractors
go get github.com/iawia002/annie

is ok.

After the 1st go get, the same error is shown. Then run go get in that different path. It prints

go: downloading github.com/mihaiav/ytdl v0.6.3-0.20200510100116-5f2bf8b4fec0

, no error prompted. And a new executable annie is generated in $GOPATH/bin/. I download videos by that annie and everything is fine.

So it seems that github.com/mihaiav/ytdl is skipped and not downloaded when running go get at 1st time.

very20101 commented 4 years ago
cd ~
go get github.com/iawia002/annie
cd ~/go/pkg/mod/github.com/iawia002/annie@v0.0.0-20200727102645-67298d55aaf4/extractors
go get github.com/iawia002/annie

is ok.

After the 1st go get, the same error is shown. Then run go get in that different path. It prints

go: downloading github.com/mihaiav/ytdl v0.6.3-0.20200510100116-5f2bf8b4fec0

, no error prompted. And a new executable annie is generated in $GOPATH/bin/. I download videos by that annie and everything is fine.

So it seems that github.com/mihaiav/ytdl is skipped and not downloaded when running go get at 1st time.

works! Thanks a lot

wangyunfeifeifei commented 4 years ago
cd ~
go get github.com/iawia002/annie
cd ~/go/pkg/mod/github.com/iawia002/annie@v0.0.0-20200727102645-67298d55aaf4/extractors
go get github.com/iawia002/annie

is ok.

After the 1st go get, the same error is shown. Then run go get in that different path. It prints

go: downloading github.com/mihaiav/ytdl v0.6.3-0.20200510100116-5f2bf8b4fec0

, no error prompted. And a new executable annie is generated in $GOPATH/bin/. I download videos by that annie and everything is fine.

So it seems that github.com/mihaiav/ytdl is skipped and not downloaded when running go get at 1st time.

it works! Thanks.

nowhere-girl commented 3 years ago
cd ~
go get github.com/iawia002/annie
cd ~/go/pkg/mod/github.com/iawia002/annie@v0.0.0-20200727102645-67298d55aaf4/extractors
go get github.com/iawia002/annie

is ok.

After the 1st go get, the same error is shown. Then run go get in that different path. It prints

go: downloading github.com/mihaiav/ytdl v0.6.3-0.20200510100116-5f2bf8b4fec0

, no error prompted. And a new executable annie is generated in $GOPATH/bin/. I download videos by that annie and everything is fine.

So it seems that github.com/mihaiav/ytdl is skipped and not downloaded when running go get at 1st time.

I had the same issue, I tried to follow your fix but now I'm still having an issue when running your 2nd command on go get github.com/iawia002/annie :

# github.com/iawia002/annie/cookier
go/src/github.com/iawia002/annie/cookier/cookier.go:15:36: launcher.NewBrowser().LookPath undefined (type *launcher.Browser has no field or method LookPath)
go/src/github.com/iawia002/annie/cookier/cookier.go:21:64: too many arguments in call to rod.New().ControlURL(u).MustConnect().DefaultDevice
    have (devices.Device, bool)
    want (devices.Device)

I don't understand how I should follow your fix.