Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

unrecognized import path - install error #33

Closed
ElDifinitivo opened this issue Aug 17, 2016 · 5 comments
Closed

unrecognized import path - install error #33

ElDifinitivo opened this issue Aug 17, 2016 · 5 comments

Comments

@ElDifinitivo
Copy link

As a preface, this error comes up while trying to install on an RPi running Debian Jessie, and as such it may be a specific issue to that architecture as I have had success installing on my x86_64 laptop. Version of Go is go1.6.2 linux/arm from the Jessie backports.

Trying to install outputs this error message:

package encoding/binary: unrecognized import path "encoding/binary" (import path does not begin with hostname)
package encoding/json: unrecognized import path "encoding/json" (import path does not begin with hostname)
package fmt: unrecognized import path "fmt" (import path does not begin with hostname)
package bytes: unrecognized import path "bytes" (import path does not begin with hostname)
package compress/zlib: unrecognized import path "compress/zlib" (import path does not begin with hostname)
package errors: unrecognized import path "errors" (import path does not begin with hostname)
package bufio: unrecognized import path "bufio" (import path does not begin with hostname)
package compress/flate: unrecognized import path "compress/flate" (import path does not begin with hostname)
package crypto/rand: unrecognized import path "crypto/rand" (import path does not begin with hostname)
package crypto/sha1: unrecognized import path "crypto/sha1" (import path does not begin with hostname)
package crypto/tls: unrecognized import path "crypto/tls" (import path does not begin with hostname)
package encoding/base64: unrecognized import path "encoding/base64" (import path does not begin with hostname)
package io: unrecognized import path "io" (import path does not begin with hostname)
package io/ioutil: unrecognized import path "io/ioutil" (import path does not begin with hostname)
package math/rand: unrecognized import path "math/rand" (import path does not begin with hostname)
package net: unrecognized import path "net" (import path does not begin with hostname)
package net/http: unrecognized import path "net/http" (import path does not begin with hostname)
package net/url: unrecognized import path "net/url" (import path does not begin with hostname)
package strconv: unrecognized import path "strconv" (import path does not begin with hostname)
package strings: unrecognized import path "strings" (import path does not begin with hostname)
package time: unrecognized import path "time" (import path does not begin with hostname)
package unicode/utf8: unrecognized import path "unicode/utf8" (import path does not begin with hostname)
package image: unrecognized import path "image" (import path does not begin with hostname)
package image/jpeg: unrecognized import path "image/jpeg" (import path does not begin with hostname)
package image/png: unrecognized import path "image/png" (import path does not begin with hostname)
package mime/multipart: unrecognized import path "mime/multipart" (import path does not begin with hostname)
package reflect: unrecognized import path "reflect" (import path does not begin with hostname)
package runtime: unrecognized import path "runtime" (import path does not begin with hostname)
package sync: unrecognized import path "sync" (import path does not begin with hostname)
package container/list: unrecognized import path "container/list" (import path does not begin with hostname)
package os: unrecognized import path "os" (import path does not begin with hostname)
package os/signal: unrecognized import path "os/signal" (import path does not begin with hostname)
package sync/atomic: unrecognized import path "sync/atomic" (import path does not begin with hostname)
package syscall: unrecognized import path "syscall" (import path does not begin with hostname)
package unicode: unrecognized import path "unicode" (import path does not begin with hostname)
package unsafe: unrecognized import path "unsafe" (import path does not begin with hostname)
package log: unrecognized import path "log" (import path does not begin with hostname)
package math: unrecognized import path "math" (import path does not begin with hostname)
package os/exec: unrecognized import path "os/exec" (import path does not begin with hostname)
package os/user: unrecognized import path "os/user" (import path does not begin with hostname)
package regexp: unrecognized import path "regexp" (import path does not begin with hostname)
@RickvanLoo
Copy link
Owner

Project is pretty much unmaintained so I don't know if everything still works, but your errors seem unrelated to discord-cli. Have you set your gopath correctly?

@ElDifinitivo
Copy link
Author

I repeated the same process as I did on my laptop and double-checked the Go installation and I haven't noticed anything different. I might start from scratch again this weekend just to make sure.

@hellyberry
Copy link

Having probably solved this by now, but for others reference with this error,
just 'unset GOROOT' fixes it.

@ring0li
Copy link

ring0li commented Aug 24, 2017

export GOPATH="/Users/***/work/go"
export GO="/usr/local/Cellar/go/1.8.3"
export GOROOT=$GO/libexec
export PATH=$GO/bin:$GOPATH/bin:$PATH

@RickvanLoo
Copy link
Owner

Hmm okay, closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants