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

Notebook error when calling mutliprocessing #614

Open
bhilbert4 opened this issue Jan 27, 2021 · 2 comments
Open

Notebook error when calling mutliprocessing #614

bhilbert4 opened this issue Jan 27, 2021 · 2 comments

Comments

@bhilbert4
Copy link
Collaborator

This is actually an error related to NIRCam_Gsim, but I wanted to record it here. When running a notebook that creates a WFSS simulation, I'm getting lots of errors like the traceback below. After some investigation, I think this is due to a problem with calling multiprocessing inside of a notebook. (Of course, we're not calling it directly in the notebook, but inside NIRCam_Gsim, which is being imported by wfss_simulator, which is what is being called in the notebook.) Either way, the same commands work fine when run as a python script, so I do believe this issue is related to the notebook itself.

The closest I've come to finding out what is going on is captured here: jupyter/jupyter_client#541
But again, in our case we're not calling multiprocessing directly within the notebook.

Tagging @NorPirzkal so that he is aware of the issue.

[E 13:51:40.961 NotebookApp] Exception in callback functools.partial(<function ZMQStream._update_handler.<locals>.<lambda> at 0x7fad7ec2fea0>)
    Traceback (most recent call last):
      File "/Users/hilbert/miniconda3/envs/mirage-3.8/lib/python3.6/site-packages/tornado/ioloop.py", line 741, in _run_callback
        ret = callback()
      File "/Users/hilbert/miniconda3/envs/mirage-3.8/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 535, in <lambda>
        self.io_loop.add_callback(lambda: self._handle_events(self.socket, 0))
      File "/Users/hilbert/miniconda3/envs/mirage-3.8/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 451, in _handle_events
        self._handle_recv()
      File "/Users/hilbert/miniconda3/envs/mirage-3.8/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 480, in _handle_recv
        self._run_callback(callback, msg)
      File "/Users/hilbert/miniconda3/envs/mirage-3.8/lib/python3.6/site-packages/zmq/eventloop/zmqstream.py", line 434, in _run_callback
        callback(*args, **kwargs)
      File "/Users/hilbert/miniconda3/envs/mirage-3.8/lib/python3.6/site-packages/notebook/services/kernels/kernelmanager.py", line 418, in record_activity
        msg = session.deserialize(fed_msg_list)
      File "/Users/hilbert/miniconda3/envs/mirage-3.8/lib/python3.6/site-packages/jupyter_client/session.py", line 921, in deserialize
        raise ValueError("Duplicate Signature: %r" % signature)
    ValueError: Duplicate Signature: b'69c3e5d9b78d5e0061456622f2aea1347c2d7775518a4a192957ceb066177958'
@eas342
Copy link
Collaborator

eas342 commented Feb 18, 2021

Ah, I got this error today too. Glad you know generally where it's coming from.

@NorPirzkal
Copy link

NorPirzkal commented Feb 18, 2021 via email

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

No branches or pull requests

3 participants