gopherdata / gophernotes

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

Gettting `could not determine kind of name` ZMQ related errors #24

Closed carlisia closed 8 years ago

carlisia commented 8 years ago

Hi @dwhitena, I ran into an issue, haven't been able to load the Go kernel yet, this might be the reason:

☻ go get github.com/gophergala2016/gophernotes

github.com/gophergala2016/gophernotes/Godeps/_workspace/src/github.com/alecthomas/gozmq

could not determine kind of name for C.ZMQ_HWM could not determine kind of name for C.ZMQ_MCAST_LOOP could not determine kind of name for C.ZMQ_RECOVERY_IVL_MSEC could not determine kind of name for C.ZMQ_SWAP

I believe I have successfully followed all of the instructions with the exception of the messages above. gophernotes is listed under my bin directory. But when I open the gophernotes notebook, there is no Go kernel.

Could this be the reason and, if so, how to resolve it?

dwhitena commented 8 years ago

Hi @carlisia! Thanks for trying out the notebook. What version of ZeroMQ do you have? Also, did you modify the Jupyter kernel.json file? If so, could you copy the contents here?

carlisia commented 8 years ago

Check this out:

☻  brew install zeromq22                                                                           
Warning: homebrew/versions/zeromq22-2.2.0 already installed
{
    "argv": [
        "/Users/carlisiacampos/.gvm/pkgsets/go1.5.1/global/go/bin/gophernotes",
        "{connection_file}"
        ],
    "display_name": "Golang",
    "language": "go",
    "name": "go"
}
carlisia commented 8 years ago

Oops, the path is wrong!

carlisia commented 8 years ago

Ok, fixed the path (there was an extra go in there) but still the same.

carlisia commented 8 years ago

Not the kernel.json file looks like this:

{
    "argv": [
        "/Users/carlisiacampos/.gvm/pkgsets/go1.5.1/global/bin/gophernotes",
        "{connection_file}"
        ],
    "display_name": "Golang",
    "language": "go",
    "name": "go"
}
dwhitena commented 8 years ago

Can you run the gophernotes binary in a terminal, just as gophernotes? Any output? Also, what version of Jupyter?

carlisia commented 8 years ago
☻  gophernotes --help              
Usage of gophernotes:
  -autoimport
        formats and adjusts imports automatically
  -context string
        import packages, functions, variables and constants from external golang source files
  -debug
        Log extra info to stderr
  -pkg string
        specify a package where the session will be run inside

~GOPATH/src/github.com/gophergala2016/gophernotes
☻  jupyter --version         
4.1.0
dwhitena commented 8 years ago

If you run gophernotes without the --help do you get any output? Also, you could try putting the kernel file under $HOME/.ipython/kernels.

carlisia commented 8 years ago
☻  gophernotes         
2016/05/01 15:29:30 Need a command line argument for the connection file.

I'll try placing the kernel file in that dir.

dwhitena commented 8 years ago

Yeah try ~/.ipython/kernels/gophernotes instead of ~/.local/share/jupyter/kernels/gophernotes

carlisia commented 8 years ago

Sorry, got side-tracked.

OMG it works! So awesome. Thank you.