Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CLI fails to start on windows with signal import issue #398

Closed
jackgerrits opened this issue Feb 21, 2024 · 1 comment · Fixed by #399
Closed

CLI fails to start on windows with signal import issue #398

jackgerrits opened this issue Feb 21, 2024 · 1 comment · Fixed by #399
Labels

Comments

@jackgerrits
Copy link
Contributor

Description

There is a crash immediately on startup on Windows.

Reproduce

jupyter kernelgateway

Powershell

jupyter kernelgateway

Output:

Traceback (most recent call last):
 File "c:\users\me\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_
main
   return _run_code(code, main_globals, None,
 File "c:\users\me\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code
   exec(code, run_globals)
 File "C:\Users\me\AppData\Local\Programs\Python\Python38\Scripts\jupyter-kernelgateway.EXE\__main__.
py", line 7, in <module>
   sys.exit(launch_instance())
 File "c:\users\me\appdata\local\programs\python\python38\lib\site-packages\jupyter_core\application.
py", line 283, in launch_instance
   super().launch_instance(argv=argv, **kwargs)
 File "c:\users\me\appdata\local\programs\python\python38\lib\site-packages\traitlets\config\applicat
ion.py", line 1074, in launch_instance
   app.initialize(argv)
 File "c:\users\me\appdata\local\programs\python\python38\lib\site-packages\kernel_gateway\gatewayapp
.py", line 536, in initialize
   self.init_signal()
 File "c:\users\me\appdata\local\programs\python\python38\lib\site-packages\kernel_gateway\gatewayapp
.py", line 724, in init_signal
   signal.signal(signal.SIGQUIT, self._signal_stop)
AttributeError: module 'signal' has no attribute 'SIGQUIT'

Expected behavior

Does not crash

Context

  • Operating System and version: Windows 11
  • Browser and version: N/A
  • Jupyter Server version: jupyter-kernel-gateway==3.0.0, 
jupyter-server==2.12.5

Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.
Copy link

welcome bot commented Feb 21, 2024

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant