gopherdata / gophernotes

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

ERROR : use of internal package github.com/gopherds/gophernotes/internal/repl not allowed #180

Closed yutiansut closed 4 years ago

yutiansut commented 4 years ago

error for go get -u github.com/gopherdata/gophernotes

system : ubuntu18.04.2 go version: go 1.13

go install github.com/gopherdata/gophernotes && cp /root/go/bin/gophernotes /usr/local/bin/ && mkdir -p ~/.local/share/jupyter/kernels/gophernotes && cp -r /root/go/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes
---> Running in 5a9673fc0e11
go: finding github.com/gopherdata/gophernotes v0.2.1
go: downloading github.com/gopherdata/gophernotes v0.2.1
go: extracting github.com/gopherdata/gophernotes v0.2.1
go: finding github.com/nu7hatch/gouuid latest
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/gopherds/gophernotes v0.2.1
go: downloading github.com/pkg/errors v0.8.1
go: finding github.com/alecthomas/gozmq latest
go: downloading github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
go: downloading github.com/gopherds/gophernotes v0.2.1
go: downloading github.com/alecthomas/gozmq v0.0.0-20140622232202-d1b01a2df6b2
go: extracting github.com/pkg/errors v0.8.1
go: extracting github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
go: extracting github.com/gopherds/gophernotes v0.2.1
go: extracting github.com/alecthomas/gozmq v0.0.0-20140622232202-d1b01a2df6b2
go: finding github.com/motemen/go-quickfix latest
go: finding golang.org/x/tools latest
go: downloading github.com/motemen/go-quickfix v0.0.0-20160413151302-5c522febc679
go: downloading golang.org/x/tools v0.0.0-20190930201159-7c411dea38b0
go: extracting github.com/motemen/go-quickfix v0.0.0-20160413151302-5c522febc679
go: extracting golang.org/x/tools v0.0.0-20190930201159-7c411dea38b0
/root/go/pkg/mod/github.com/gopherdata/gophernotes@v0.2.1/execution.go:7:2: use of internal package github.com/gopherds/gophernotes/internal/repl not allowed
Removing intermediate container 5a9673fc0e11
The command '/bin/sh -c go install github.com/gopherdata/gophernotes && cp /root/go/bin/gophernotes /usr/local/bin/ && mkdir -p ~/.local/share/jupyter/kernels/gophernotes && cp -r /root/go/src/github.com/gopherdata/gophernotes/kernel/* ~/.local/share/jupyter/kernels/gophernotes' returned a non-zero code: 1
sbinet commented 4 years ago

I've tagged the latest master (a8228d6) as v0.4.0. it should work now.

(feel free to reopen otherwise)

yutiansut commented 4 years ago

@sbinet thanks anyway

sbinet commented 4 years ago

do you mean it didn't work?

yutiansut commented 4 years ago

oh i'm trying to rebuild, doesn't finished yet~~

yutiansut commented 4 years ago

it does work && thanks alot @sbinet ~~

yutiansut commented 4 years ago

sorry there's another problem @sbinet

# github.com/gopherdata/gophernotes
pkg/mod/github.com/gopherdata/gophernotes@v0.4.0/messages.go:181:9: assignment mismatch: 2 variables but uuid.NewV4 returns 1 values
Removing intermediate container dfb47f1fda28

this is the build code

mkdir /root/go && cd /root/go && apt install -y build-essential && apt update && apt upgrade && apt install -y pkg-config && apt-get install -y libzmq3-dev && go get -u github.com/gopherdata/gophernotes

output

---> Running in dfb47f1fda28
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.4ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://mirrors.aliyun.com/ubuntu xenial InRelease [247 kB]
Get:2 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease [107 kB]
Get:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease [109 kB]
Get:5 http://mirrors.aliyun.com/ubuntu xenial/universe Sources [9,802 kB]
Get:6 http://archive.canonical.com/ubuntu xenial InRelease [11.5 kB]
Get:7 http://archive.canonical.com/ubuntu xenial/partner Sources [2,410 B]
Get:8 http://mirrors.aliyun.com/ubuntu xenial/restricted Sources [5,179 B]
Get:9 http://mirrors.aliyun.com/ubuntu xenial/main Sources [1,103 kB]
Get:10 http://mirrors.aliyun.com/ubuntu xenial/multiverse Sources [215 kB]
Get:11 http://mirrors.aliyun.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:12 http://mirrors.aliyun.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:13 http://mirrors.aliyun.com/ubuntu xenial/universe amd64 Packages [9,827 kB]
Get:14 http://archive.canonical.com/ubuntu xenial/partner amd64 Packages [3,246 B]
Get:15 http://mirrors.aliyun.com/ubuntu xenial/main amd64 Packages [1,558 kB]
Get:16 http://mirrors.aliyun.com/ubuntu xenial-updates/restricted Sources [2,696 B]
Get:17 http://mirrors.aliyun.com/ubuntu xenial-updates/universe Sources [328 kB]
Get:18 http://mirrors.aliyun.com/ubuntu xenial-updates/main Sources [430 kB]
Get:19 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse Sources [9,419 B]
Get:20 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 Packages [1,336 kB]
Get:21 http://mirrors.aliyun.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:22 http://mirrors.aliyun.com/ubuntu xenial-updates/universe amd64 Packages [987 kB]
Get:23 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse amd64 Packages [19.1 kB]
Get:24 http://mirrors.aliyun.com/ubuntu xenial-backports/main Sources [5,073 B]
Get:25 http://mirrors.aliyun.com/ubuntu xenial-backports/universe Sources [7,665 B]
Get:26 http://mirrors.aliyun.com/ubuntu xenial-backports/main amd64 Packages [7,942 B]
Get:27 http://mirrors.aliyun.com/ubuntu xenial-backports/universe amd64 Packages [8,807 B]
Get:28 http://mirrors.aliyun.com/ubuntu xenial-security/restricted Sources [2,243 B]
Get:29 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse Sources [3,516 B]
Get:30 http://mirrors.aliyun.com/ubuntu xenial-security/universe Sources [137 kB]
Get:31 http://mirrors.aliyun.com/ubuntu xenial-security/main Sources [193 kB]
Get:32 http://mirrors.aliyun.com/ubuntu xenial-security/universe amd64 Packages [584 kB]
Get:33 http://mirrors.aliyun.com/ubuntu xenial-security/main amd64 Packages [959 kB]
Get:34 http://mirrors.aliyun.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:35 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse amd64 Packages [6,114 B]
Get:36 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:37 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [5,179 B]
Get:38 http://archive.ubuntu.com/ubuntu xenial/main Sources [1,103 kB]
Fetched 29.7 MB in 11s (2,662 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
pkg-config
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 45.0 kB of archives.
After this operation, 177 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/ubuntu xenial/main amd64 pkg-config amd64 0.29.1-0ubuntu1 [45.0 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 45.0 kB in 0s (186 kB/s)
Selecting previously unselected package pkg-config.
(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 120193 files and directories currently installed.)
Preparing to unpack .../pkg-config_0.29.1-0ubuntu1_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu1) ...
Setting up pkg-config (0.29.1-0ubuntu1) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libsodium18 libzmq5
The following NEW packages will be installed:
libsodium18 libzmq3-dev libzmq5
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 575 kB of archives.
After this operation, 2,320 kB of additional disk space will be used.
Get:1 http://mirrors.aliyun.com/ubuntu xenial/universe amd64 libsodium18 amd64 1.0.8-5 [144 kB]
Get:2 http://mirrors.aliyun.com/ubuntu xenial-updates/universe amd64 libzmq5 amd64 4.1.4-7ubuntu0.1 [149 kB]
Get:3 http://mirrors.aliyun.com/ubuntu xenial-updates/universe amd64 libzmq3-dev amd64 4.1.4-7ubuntu0.1 [282 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 575 kB in 0s (1,532 kB/s)
Selecting previously unselected package libsodium18:amd64.
(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 120208 files and directories currently installed.)
Preparing to unpack .../libsodium18_1.0.8-5_amd64.deb ...
Unpacking libsodium18:amd64 (1.0.8-5) ...
Selecting previously unselected package libzmq5:amd64.
Preparing to unpack .../libzmq5_4.1.4-7ubuntu0.1_amd64.deb ...
Unpacking libzmq5:amd64 (4.1.4-7ubuntu0.1) ...
Selecting previously unselected package libzmq3-dev:amd64.
Preparing to unpack .../libzmq3-dev_4.1.4-7ubuntu0.1_amd64.deb ...
Unpacking libzmq3-dev:amd64 (4.1.4-7ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libsodium18:amd64 (1.0.8-5) ...
Setting up libzmq5:amd64 (4.1.4-7ubuntu0.1) ...
Setting up libzmq3-dev:amd64 (4.1.4-7ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
go: finding github.com/gopherdata/gophernotes v0.4.0
go: downloading github.com/gopherdata/gophernotes v0.4.0
go: extracting github.com/gopherdata/gophernotes v0.4.0
go: finding github.com/satori/go.uuid v1.2.0
go: finding github.com/cosmos72/gomacro latest
go: finding github.com/pebbe/zmq4 v1.0.0
go: downloading github.com/satori/go.uuid v1.2.0
go: downloading github.com/pebbe/zmq4 v1.0.0
go: extracting github.com/satori/go.uuid v1.2.0
go: extracting github.com/pebbe/zmq4 v1.0.0
go: downloading github.com/cosmos72/gomacro v0.0.0-20190929212108-d70dd8a6f170
go: extracting github.com/cosmos72/gomacro v0.0.0-20190929212108-d70dd8a6f170
go: downloading github.com/peterh/liner v1.1.0
go: downloading golang.org/x/sys v0.0.0-20190429094411-2cc0cad0ac78
go: extracting github.com/peterh/liner v1.1.0
go: downloading github.com/mattn/go-runewidth v0.0.3
go: extracting github.com/mattn/go-runewidth v0.0.3
go: extracting golang.org/x/sys v0.0.0-20190429094411-2cc0cad0ac78
go: finding golang.org/x/sys latest
go: finding github.com/mattn/go-runewidth v0.0.4
go: finding github.com/peterh/liner v1.1.0
go: downloading golang.org/x/sys v0.0.0-20190927073244-c990c680b611
go: downloading github.com/mattn/go-runewidth v0.0.4
go: extracting github.com/mattn/go-runewidth v0.0.4
go: extracting golang.org/x/sys v0.0.0-20190927073244-c990c680b611
# github.com/gopherdata/gophernotes
pkg/mod/github.com/gopherdata/gophernotes@v0.4.0/messages.go:181:9: assignment mismatch: 2 variables but uuid.NewV4 returns 1 values
Removing intermediate container dfb47f1fda28
The command '/bin/sh -c mkdir /root/go && cd /root/go && apt install -y build-essential && apt update && apt upgrade && apt install -y pkg-config && apt-get install -y libzmq3-dev && go get -u github.com/gopherdata/gophernotes' returned a non-zero code: 2
sbinet commented 4 years ago

handling it in #182