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

ERROR: received bad message: NameError: name 'debugpy' is not defined #587

Open
kapsner opened this issue Mar 23, 2023 · 2 comments
Open

Comments

@kapsner
Copy link

kapsner commented Mar 23, 2023

Installing the latest version in a container running jupyterlab (https://github.com/iot-salzburg/gpu-jupyter), I received the following error message when trying to start the debugger:

[I 2023-03-23 13:46:51.558 ServerApp] Connecting to kernel e19488f7-600b-45fe-8ccd-d3b614a3c5bc.
ERROR: received bad message: NameError: name 'debugpy' is not defined

At:
  <string>(2): <module>

Message type: debug_request

Downgrade to xeus-python==0.15.2 fixed the issue.

@JohanMabille
Copy link
Member

Can you check if debugpy has been installed in the container? If not, how did you install xeus-python?

@kapsner
Copy link
Author

kapsner commented Mar 24, 2023

Installation was with pip. Yes, debugpy was installed in the image.

Switching from

pip install xeus-python debugpy

to

pip install xeus-python==0.15.2 debugpy

in the Dockerfile fixed the issue.

Edit:
This is the part in the Dockerfile that fixed the issue for me: kapsner/gpu-jupyter@cc96006#diff-7e685d40aae600d1aa714f3d9a4fe502fad61fa8c62457de99dae58beb1ce33cR23

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

2 participants