Skip to content

Commit

Permalink
pin python version to 3.10 in build docs (#735)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #735

# Context
We were seeing following error
```
The HTML pages are in build/html.
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/share/miniconda3/envs/test/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/usr/share/miniconda3/envs/test/lib/python3.12/concurrent/futures/process.py", line 389, in run
    self.join_executor_internals()
  File "/usr/share/miniconda3/envs/test/lib/python3.12/concurrent/futures/process.py", line 576, in join_executor_internals
    self._join_executor_internals()
  File "/usr/share/miniconda3/envs/test/lib/python3.12/concurrent/futures/process.py", line 581, in _join_executor_internals
    self.shutdown_workers()
  File "/usr/share/miniconda3/envs/test/lib/python3.12/concurrent/futures/process.py", line 569, in shutdown_workers
    self.call_queue.put_nowait(None)
  File "/usr/share/miniconda3/envs/test/lib/python3.12/multiprocessing/queues.py", line 138, in put_nowait
    return self.put(obj, False)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/miniconda3/envs/test/lib/python3.12/multiprocessing/queues.py", line 94, in put
    self._start_thread()
  File "/usr/share/miniconda3/envs/test/lib/python3.12/multiprocessing/queues.py", line 192, in _start_thread
    self._thread.start()
  File "/usr/share/miniconda3/envs/test/lib/python3.12/threading.py", line 992, in start
    _start_new_thread(self._bootstrap, ())
RuntimeError: can't create new thread at interpreter shutdown
Error: The operation was canceled.
```
when docs were building. As explained [here](https://stackoverflow.com/questions/77738120/runtimeerror-cant-create-new-thread-at-interpreter-shutdown), caused by python 3.12 not allowing new thread to spawn after main thread is finished.

# This Diff
Pins python version to 3.10 when buliding docs

bypass-github-export-checks

Reviewed By: galrotem

Differential Revision: D54773246

fbshipit-source-id: eb320258b642d16ec3d4ada2f4572e4fb3868f52
  • Loading branch information
JKSenthil authored and facebook-github-bot committed Mar 12, 2024
1 parent 59c5fad commit 369cd9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_publish_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
miniconda-version: "latest"
activate-environment: test
python-version: "3.10"
- name: Install dependencies
shell: bash -l {0}
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
with:
miniconda-version: "latest"
activate-environment: test
python-version: "3.10"
- name: Install dependencies
shell: bash -l {0}
run: |
Expand Down

0 comments on commit 369cd9b

Please sign in to comment.