gopherdata / gophernotes

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

External repo not working #257

Closed 0xstepit closed 1 year ago

0xstepit commented 1 year ago

Hello, I'm trying to use gophernotes to test types of the following repo: https://github.com/cosmos/cosmos-sdk

I import the packages

import (
    "fmt"
    sdk "github.com/cosmos/cosmos-sdk/types"
)

and try to use:


addr := "juno1juczud9nep06t0khghvm643hf9usw45r4v7lq6"
valAddr := sdk.MustAccAddressFromBech32(addr)

On the terminal I receive the following message:

repl.go:2:12: not a type: sdk.MustAccAddressFromBech32 <*ast.SelectorExpr>

How can I solve it? thanks

yg7001 commented 1 year ago

Also I meet this.

repl.go:3:1: error loading package "github.com/thoas/go-funk" metadata, maybe you need to download (go get), compile (go build) and install (go install) it? can't find import: "github.com/thoas/go-funk"

chenjpu commented 1 year ago

image

ammar-elsabe commented 1 year ago

Bumping this, I have the same issue

BenoitBotton commented 1 year ago

Has anyone made any progress on this? same issue: image

cosmos72 commented 1 year ago

That's really strange: importing packages from the standard library is supposed to always work, and in case it fails, it's unrelated to this issue. Maybe the cause is related to running inside WSL? It's a configuration I have never tested personally...

cosmos72 commented 1 year ago

Commit 55142043d19696ba037e3e93f9ec6c7f8436e82d fixes most issues importing packages.

Some imports may still fail. Known reasons are: