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

Unexpected keyword error occurs in lc_wrapper/kernel.py #59

Closed
yo-saito opened this issue Sep 13, 2021 · 3 comments · Fixed by #61
Closed

Unexpected keyword error occurs in lc_wrapper/kernel.py #59

yo-saito opened this issue Sep 13, 2021 · 3 comments · Fixed by #61

Comments

@yo-saito
Copy link

Hi there

I installed the LC_wrapper according to "How to Install", but I get the following error (infinite loop) and it does not work.
Is there a solution?

Error

ERROR | get_msg() got an unexpected keyword argument 'block
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/lc_wrapper/kernel.py", line 90, in run
    msg = self.channel.get_msg(block=True, timeout=0.2)
TypeError: get_msg() got an unexpected keyword argument 'block'

Procedure

  1. run # jupyterhub -f /etc/jupyterhub/jupyterhub_config.py
  2. access JupyterHub from a web browser and open the LC_wrapper kernel.
  3. keep getting an error on the terminal where JupyterHub is started.
  4. The LC_wrapper kernel will be able to input data, but will not respond with execution results, and the IPython execution status will remain [*].

Environment

  • Ubuntu 18.04 LTS
# jupyterhub --version
1.4.2
# jupyter notebook --version
6.4.3
# python3 --version
Python 3.6.9
@yacchin1205
Copy link
Contributor

Thanks for the report! @scsk-saito

This problem seems to be caused by the change jupyter/jupyter_client#671 since jupyter-client 7.0.0.
We will fix this issue. If you need it immediately, you may be able to get it to work by downgrading the jupyter-client version.

@yo-saito
Copy link
Author

@yacchin1205
Thank you for your confirmation.
I downgraded the jupyter-client version from 7.0.2 to 6.2.0, but it recurred.
I would appreciate it if you could fix it.

@yacchin1205
Copy link
Contributor

@yo-saito Fixed the problem. jupyter-client library also needs a fix jupyter/jupyter_client#696 (released as jupyter_client 7.0.4), so please upgrade both lc_wrapper and jupyter_client. Thank you 😄

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

Successfully merging a pull request may close this issue.

2 participants