Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Failure #406

Closed
lvangool opened this issue May 9, 2018 · 6 comments
Closed

Installation Failure #406

lvangool opened this issue May 9, 2018 · 6 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@lvangool
Copy link

lvangool commented May 9, 2018

Description

Following the glide installation instructions I am seeing errors. I've attempted the following:

  1. remove vendor
  2. remove ~/.glide
  3. remove glide.lock

I've also tried installing via Dep overrides but it looks like we have the same issue there.
Help appreciated!

Details

$ glide -v
glide version 0.13.1
$ cat glide.yaml
package: github.com/blah/blah
import:
- package: k8s.io/client-go
  version: v7.0.0
$ glide up -v
[INFO]  Downloading dependencies. Please wait...
[INFO]  --> Fetching k8s.io/client-go
[INFO]  --> Setting version for k8s.io/client-go to v7.0.0.
[INFO]  Resolving imports
[INFO]  --> Fetching github.com/cloud66/cxlogger
[INFO]  Found Godeps.json file in /Users/lvg/.glide/cache/src/https-k8s.io-client-go
[INFO]  --> Parsing Godeps metadata...
[INFO]  --> Fetching github.com/golang/glog
[INFO]  --> Setting version for github.com/golang/glog to 44145f04b68cf362d9c4df2182967c2275eaefed.
[INFO]  --> Fetching golang.org/x/net
[INFO]  --> Setting version for golang.org/x/net to 1c05540f6879653db88113bc4a2b70aec4bd491f.
[INFO]  --> Fetching k8s.io/api
[INFO]  --> Setting version for k8s.io/api to 73d903622b7391f3312dcbac6483fed484e185f8.
[INFO]  --> Fetching k8s.io/apimachinery
[INFO]  --> Setting version for k8s.io/apimachinery to 302974c03f7e50f16561ba237db776ab93594ef6.
[INFO]  --> Fetching github.com/howeyc/gopass
[INFO]  --> Setting version for github.com/howeyc/gopass to bf9dde6d0d2c004a008c27aaee91170c786f6db8.
[INFO]  --> Fetching github.com/imdario/mergo
[INFO]  --> Setting version for github.com/imdario/mergo to 6633656539c1639d9d78127b7d47c622b5d7b6dc.
[INFO]  --> Fetching github.com/spf13/pflag
[INFO]  --> Setting version for github.com/spf13/pflag to 4c012f6dcd9546820e378d0bdda4d8fc772cdfea.
[INFO]  Found Godeps.json file in /Users/lvg/.glide/cache/src/https-k8s.io-apimachinery
[INFO]  --> Parsing Godeps metadata...
[INFO]  --> Fetching github.com/gogo/protobuf
[INFO]  --> Setting version for github.com/gogo/protobuf to c0656edd0d9eab7c66d1eb0c568f9039345796f7.
[INFO]  --> Fetching github.com/google/gofuzz
[INFO]  --> Setting version for github.com/google/gofuzz to 44d81051d367757e1c7c6a5a86423ece9afcf63c.
[INFO]  --> Fetching updates for github.com/inconshreveable/log15
[ERROR] Error scanning k8s.io/client-go/pkg/api/v1: cannot find package "." in:
  /Users/lvg/.glide/cache/src/https-k8s.io-client-go/pkg/api/v1
[ERROR] Error scanning k8s.io/client-go/pkg/apis/batch/v1: cannot find package "." in:
  /Users/lvg/.glide/cache/src/https-k8s.io-client-go/pkg/apis/batch/v1
[ERROR] Error scanning k8s.io/client-go/pkg/apis/extensions/v1beta1: cannot find package "." in:
  /Users/lvg/.glide/cache/src/https-k8s.io-client-go/pkg/apis/extensions/v1beta1
[INFO]  --> Fetching github.com/golang/protobuf
[INFO]  --> Setting version for github.com/golang/protobuf to 1643683e1b54a9e88ad26d98f81400c8c9d9f4f9.
[INFO]  --> Fetching github.com/googleapis/gnostic
[INFO]  --> Setting version for github.com/googleapis/gnostic to 0c5108395e2debce0d731cf0287ddf7242066aba.
[INFO]  --> Fetching golang.org/x/time
[INFO]  --> Setting version for golang.org/x/time to f51c12702a4d776e4c1fa9b0fabab841babae631.
[INFO]  Found Godeps.json file in /Users/lvg/.glide/cache/src/https-k8s.io-api
[INFO]  --> Parsing Godeps metadata...
[INFO]  --> Fetching golang.org/x/crypto
[INFO]  --> Setting version for golang.org/x/crypto to 81e90905daefcd6fd217b62423c0908922eadb30.
[INFO]  --> Fetching github.com/hashicorp/golang-lru
[INFO]  --> Setting version for github.com/hashicorp/golang-lru to a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4.
[INFO]  --> Fetching github.com/davecgh/go-spew
[INFO]  --> Setting version for github.com/davecgh/go-spew to 782f4967f2dc4564575ca782fe2d04090b5faca8.
[INFO]  --> Fetching golang.org/x/sys
[INFO]  --> Setting version for golang.org/x/sys to 95c6576299259db960f6c5b9b69ea52422860fce.
[INFO]  --> Fetching gopkg.in/inf.v0
[INFO]  --> Setting version for gopkg.in/inf.v0 to 3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4.
[INFO]  --> Fetching github.com/go-stack/stack
[INFO]  --> Fetching github.com/mattn/go-colorable
[INFO]  --> Fetching github.com/mattn/go-isatty
[INFO]  --> Fetching gopkg.in/yaml.v2
[INFO]  --> Setting version for gopkg.in/yaml.v2 to 670d4cfef0544295bc27a114dbac37980d83185a.
[INFO]  --> Fetching golang.org/x/text
[INFO]  --> Setting version for golang.org/x/text to b19bf474d317b857955b12035d2c5acb57ce8b01.
[INFO]  --> Fetching github.com/ghodss/yaml
[INFO]  --> Setting version for github.com/ghodss/yaml to 73d445a93680fa1a78ae23a5839bad48f32ba1ee.
[INFO]  --> Fetching github.com/json-iterator/go
[INFO]  --> Setting version for github.com/json-iterator/go to 13f86432b882000a51c6e610c620974462691a97.
[ERROR] Failed to retrieve a list of dependencies: Error resolving imports

Apendix

$ dep ensure
Solving failure: No versions of k8s.io/client-go met constraints:
v7.0.0: Could not introduce k8s.io/client-go@v7.0.0 due to multiple problematic subpackages:
Subpackage k8s.io/client-go/pkg/api/v1 is missing. (Package is required by (root).)	
Subpackage k8s.io/client-go/pkg/apis/batch/v1 is missing. (Package is required by (root).)
Subpackage k8s.io/client-go/pkg/apis/extensions/v1beta1 is missing. (Package is required by (root).)
v6.0.0: Could not introduce k8s.io/client-go@v6.0.0, as it is not allowed by constraint ^7.0.0 from project ...
... 
@liggitt
Copy link
Member

liggitt commented May 9, 2018

The APIs moved from k8s.io/client-go/pkg/apis/... to their final home in k8s.io/api/... in that release. You'll need to update the referring code before glide can complete.

@rkamudhan
Copy link

rkamudhan commented Jul 24, 2018

@liggitt How to fix this issue, I am also getting the same error
my glide.yaml as below

# cat glide.yaml
package: github.com/xyz/xyz
import:
......
- package: k8s.io/apimachinery
  version: 103fd098999dc9c0c88536f5c9ad2e5da39373ae
  subpackages:
  - pkg/apis/meta/v1
- package: k8s.io/api
  version: 072894a440bdee3a891dea811fe42902311cd2a3
  subpackages:
  - core/v1
- package: k8s.io/client-go
  version: 7d04d0e2a0a1a4d4a1cd6baa432a2301492e4e65
  subpackages:
  - kubernetes
  - tools/clientcmd
  - util/retry
......

I am getting following error:

# glide update
[INFO]  Downloading dependencies. Please wait...
[INFO]  --> Fetching updates for github.com/pkg/errors.
[INFO]  --> Fetching updates for github.com/vishvananda/netlink.
[INFO]  --> Fetching updates for github.com/containernetworking/cni.
[INFO]  --> Fetching updates for github.com/vishvananda/netns.
[INFO]  --> Fetching updates for github.com/onsi/gomega.
[INFO]  --> Fetching updates for github.com/golang/glog.
[INFO]  --> Fetching updates for github.com/onsi/ginkgo.
[INFO]  --> Fetching updates for github.com/containernetworking/plugins.
[INFO]  --> Fetching updates for k8s.io/client-go.
 .......
INFO]  --> Setting version for golang.org/x/time to f51c12702a4d776e4c1fa9b0fabab841babae631.
[ERROR] Error scanning k8s.io/client-go/pkg/api/v1: open /root/.glide/cache/src/https-k8s.io-client-go/pkg/api/v1: no such file or directory
[ERROR] This error means the referenced package was not found.
[ERROR] Missing file or directory errors usually occur when multiple packages
[ERROR] share a common dependency and the first reference encountered by the scanner
[ERROR] sets the version to one that does not contain a subpackage needed required
[ERROR] by another package that uses the shared dependency. Try setting a
[ERROR] version in your glide.yaml that works for all packages that share this
[ERROR] dependency.
[INFO]  --> Fetching updates for gopkg.in/yaml.v2.
[INFO]  --> Setting version for gopkg.in/yaml.v2 to 670d4cfef0544295bc27a114dbac37980d83185a.
[INFO]  --> Fetching updates for github.com/google/btree.
[INFO]  --> Setting version for github.com/google/btree to 7d79101e329e5a3adf994758c578dab82b90c017.
[INFO]  Found Godeps.json file in /root/.glide/cache/src/https-k8s.io-api
[INFO]  --> Parsing Godeps metadata...
[INFO]  --> Fetching updates for github.com/ghodss/yaml.
[INFO]  --> Setting version for github.com/ghodss/yaml to 73d445a93680fa1a78ae23a5839bad48f32ba1ee.
[INFO]  --> Fetching updates for github.com/json-iterator/go.
[INFO]  --> Setting version for github.com/json-iterator/go to f2b4162afba35581b6d4a50d3b8f34e33c144682.
[INFO]  --> Fetching updates for golang.org/x/text.
[INFO]  --> Setting version for golang.org/x/text to b19bf474d317b857955b12035d2c5acb57ce8b01.
[INFO]  --> Fetching updates for github.com/modern-go/concurrent.
[INFO]  --> Setting version for github.com/modern-go/concurrent to bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94.
[INFO]  --> Fetching updates for github.com/modern-go/reflect2.
[INFO]  --> Setting version for github.com/modern-go/reflect2 to 05fbef0ca5da472bbf96c9322b84a53edc03c9fd.
[ERROR] Failed to retrieve a list of dependencies: Error resolving imports

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 23, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 22, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants