No versions of github.com/mediocregopher/radix met constraints
JinYuSha0 opened this issue · comments
邵瑾瑜 commented
I want to use the iris framework
in the project directory use dep init
and dep ensure
but the following error occurs when I run it.
vendor\github.com\kataras\iris\view\django.go:194:27: pongo2.RegisterTag(tagName, fn) used as value
vendor\github.com\kataras\iris\view\django.go:222:19: undefined: pongo2.NewLocalFileSystemLoader
vendor\github.com\kataras\iris\view\django.go:227:22: too many arguments in call to pongo2.NewSet
vendor\github.com\kataras\iris\view\django.go:280:22: too many arguments in call to pongo2.NewSet
have (string, *tDjangoAssetLoader)
want (string)
vendor\github.com\kataras\iris\view\jet.go:101:7: s.Set.Delims undefined (type *jet.Set has no field or method Delims)
I found a solution from github (kataras/iris#1143 (comment)).
Yes, if you remove
dep
and usego modules
it is working, if you are still usingdep
for whatever reasons you can fix it by copy-pasting these two files inside your $GOPATH/src/github.com/kataras/iris folder: Gopkg.toml & Gopkg.lock and rundep ensure
again.
And i try it,the following problems have occurred
Solving failure: No versions of github.com/mediocregopher/radix met constraints:
v3.4.0: Could not introduce github.com/mediocregopher/radix@v3.4.0 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
v3.3.2: Could not introduce github.com/mediocregopher/radix@v3.3.2 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).)
v3.3.1: Could not introduce github.com/mediocregopher/radix@v3.3.1 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
v3.3.0: Could not introduce github.com/mediocregopher/radix@v3.3.0 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
v3.2.3: Could not introduce github.com/mediocregopher/radix@v3.2.3 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
v3.2.2: Could not introduce github.com/mediocregopher/radix@v3.2.2 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
v3.2.1: Could not introduce github.com/mediocregopher/radix@v3.2.1 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).)
v3.2.0: Could not introduce github.com/mediocregopher/radix@v3.2.0 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
v3.1.0: Could not introduce github.com/mediocregopher/radix@v3.1.0 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
v3.0.1: Could not introduce github.com/mediocregopher/radix@v3.0.1 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
v3.0.0: Could not introduce github.com/mediocregopher/radix@v3.0.0 due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
master: Could not introduce github.com/mediocregopher/radix@master due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
trace-docompleted-action: Could not introduce github.com/mediocregopher/radix@trace-docompleted-action due to multiple problematic subpackages:
Subpackage github.com/mediocregopher/radix/v3 is missing. (Package is required by (root).) Subpackage github.com/mediocregopher/radix/v3/resp/resp2 is missing. (Package is required by (root).)
what should I do?
Tim Heckman commented
Because they adopted Modules / SIV you can no longer use dep
.