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

Docker container error on example.ipynb #169

Open
robmarkcole opened this issue Sep 2, 2018 · 3 comments
Open

Docker container error on example.ipynb #169

robmarkcole opened this issue Sep 2, 2018 · 3 comments

Comments

@robmarkcole
Copy link

Hi
running the Docker container and following 01_Example.ipynb, I immediately hit the following error and the kernel dies:

[E 08:53:41.324 NotebookApp] 500 POST /api/kernels/4d3b35a2-ebc1-41a6-8e89-8f2aa40ef632/restart (172.17.0.1) 31048.51ms referer=http://localhost:8888/notebooks/Geonotebook/01_Example.ipynb
ERROR:tornado.general:Uncaught exception in ZMQStream callback
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 432, in _run_callback
    callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 277, in null_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 276, in dispatcher
    return self.dispatch_shell(stream, msg)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 226, in dispatch_shell
    self.pre_handler_hook()
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 241, in pre_handler_hook
    self.saved_sigint_handler = signal(SIGINT, default_int_handler)
@weatherlym663
Copy link

weatherlym663 commented Sep 10, 2018

I'm getting the same error.
I built the container with
docker build -t geonotebook .
and then once that completed with no errors i ran: docker run -p 8888:8888 -v /path/to/your/notebooks:/notebooks -it --rm geonotebook

and i replaced /path/to/your/notebooks with the examples director included and i almost immediately get the same error as above with the same notebook. I also get the same error with every example notebook included

[I 18:17:10.953 NotebookApp] Kernel started: ea99b416-431d-40bf-b2d1-e6189c16dd54
ERROR:tornado.general:Uncaught exception in ZMQStream callback
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 432, in _run_callback
    callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 277, in null_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 276, in dispatcher
    return self.dispatch_shell(stream, msg)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 226, in dispatch_shell
    self.pre_handler_hook()
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 241, in pre_handler_hook
    self.saved_sigint_handler = signal(SIGINT, default_int_handler)
ValueError: signal only works in main thread

@weatherlym663
Copy link

weatherlym663 commented Sep 10, 2018

a work around for the error is to pull the image directly from docker hub

@syncharny
Copy link

I downloaded from docker hub and still got this error:

ERROR:tornado.general:Uncaught exception in ZMQStream callback
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 432, in _run_callback
    callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 277, in null_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 276, in dispatcher
    return self.dispatch_shell(stream, msg)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 226, in dispatch_shell
    self.pre_handler_hook()
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 241, in pre_handler_hook
    self.saved_sigint_handler = signal(SIGINT, default_int_handler)
ValueError: signal only works in main thread

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

3 participants