gopherdata / gophernotes

The Go kernel for Jupyter notebooks and nteract.
MIT License
3.8k stars 264 forks source link

warning: could not find package "github.com/gopherdata/gophernotes/imports" in $GOPATH #206

Closed genert closed 4 years ago

genert commented 4 years ago

I am getting this warning in notebooks, where I import some third-party libraries.

For example, if I include following imports in notebook:

import (
    "fmt"

    "github.com/gonum/stat"
    "github.com/gonum/stat/distuv"
)

The warning appears.

Screenshot 2020-04-28 at 21 51 45

Golang version:

(base) ➜  ai-notebooks git:(master) go version
go version go1.14.1 darwin/amd64

MacOS version:

(base) ➜  ai-notebooks git:(master) sw_vers -productVersion
10.15.4

Gopath:

(base) ➜  ai-notebooks git:(master) echo $GOPATH
/Users/genertorg/go

Gophernotes bin:

(base) ➜  ai-notebooks git:(master) "$(go env GOPATH)"/bin/gophernotes
2020/04/28 21:50:47 Need a command line argument specifying the connection file.
sbinet commented 4 years ago

unrelated to your issue but these imports:

"github.com/gonum/stat"
"github.com/gonum/stat/distuv"

are deprecated.

please use gonum.org/v1/gonum/stat and gonum.org/v1/gonum/stat/distuv.

cosmos72 commented 4 years ago

it's a harmless warning. I could even hide it... It tells you that since gophernotes sources cannot be found inside $GOPATH, injecting imports inside gophernotes sources will not work

RafalSkolasinski commented 4 years ago

it's a harmless warning. I could even hide it...

Please do :-). Package that I wanted to load was taking some time to load and this error scarred me that things are not working :D

cosmos72 commented 4 years ago

Warning removed.