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

gophernotes and replace on go.mod #255

Open
0xstepit opened this issue Nov 9, 2022 · 0 comments
Open

gophernotes and replace on go.mod #255

0xstepit opened this issue Nov 9, 2022 · 0 comments

Comments

@0xstepit
Copy link

0xstepit commented Nov 9, 2022

I'm trying to use gophernotes to test some Cosmos SDK functionality. In particular, I would like to run in a notebook this test:

https://github.com/cosmos/cosmos-sdk/blob/main/store/iavl/store_test.go#L316

but when I run the import:

import (
    "github.com/cosmos/cosmos-sdk/store/cachekv"

    "github.com/stretchr/testify/require"
    dbm "github.com/tendermint/tm-db"

    tiavl "github.com/cosmos/iavl"

    "github.com/cosmos/cosmos-sdk/store/dbadapter"
    "github.com/cosmos/cosmos-sdk/store/gaskv"
    "github.com/cosmos/cosmos-sdk/store/iavl"
    "github.com/cosmos/cosmos-sdk/store/types"
    sdk "github.com/cosmos/cosmos-sdk/types"
)

I obtain the following error:

error executing "/usr/local/go/bin/go build -buildmode=plugin" in directory "/Users/stepyt/go/src/gomacro.imports/gomacro_pid_3616/import_1": exit status 2

By looking at Jupyter logs with:

jupyter notebook --log-level DEBUG

I receive the following:
github.com/gogo/protobuf/grpc: module github.com/gogo/protobuf@latest found (v1.3.2), but does not contain package github.com/gogo/protobuf/grpc

The SDK has a replace inside go.mod of the protobuf package. Can be related to this the error?

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

No branches or pull requests

1 participant