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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control-C mkdocs serve WinError with version 1.5.0 #3305

Closed
kamilkrzyskow opened this issue Jul 25, 2023 · 1 comment
Closed

Control-C mkdocs serve WinError with version 1.5.0 #3305

kamilkrzyskow opened this issue Jul 25, 2023 · 1 comment

Comments

@kamilkrzyskow
Copy link

Hi 馃憢,
I've installed the newest commit bfb52a3 to test out the new 1.5.0 version. When I press Control-C to exit out of the running script it displays a traceback message:

INFO    -  Building documentation...
INFO    -  Cleaning site directory
INFO    -  Documentation built in 0.19 seconds
INFO    -  [20:38:17] Watching paths for changes: 'docs', 'mkdocs.yml'
INFO    -  [20:38:17] Serving on http://127.0.0.1:8000/
Exception in thread Thread-1 (<lambda>):
INFO    -  Shutting down...
Traceback (most recent call last):
  File "C:\MyFiles-Kamil\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "C:\MyFiles-Kamil\Python311\Lib\threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "C:\MyFiles-Kamil\git\.venv\Lib\site-packages\mkdocs\livereload\__init__.py", line 105, in <lambda>
    self.serve_thread = threading.Thread(target=lambda: self.serve_forever(shutdown_delay))
                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\MyFiles-Kamil\Python311\Lib\socketserver.py", line 233, in serve_forever
    ready = selector.select(poll_interval)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\MyFiles-Kamil\Python311\Lib\selectors.py", line 323, in select
    r, w, _ = self._select(self._readers, self._writers, [], timeout)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\MyFiles-Kamil\Python311\Lib\selectors.py", line 314, in _select
    r, w, x = select.select(r, w, w, timeout)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 10038] An operation was attempted on something that is not a socket

I never work with multithreading, so I don't even know how to debug this 馃槄
pip_freeze.txt
DxDiag.txt

@oprypin
Copy link
Contributor

oprypin commented Jul 26, 2023

You're right! Thanks much for the report. d4d483c is the first bad commit.

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