pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.47k stars 1.97k forks source link

RTD is broken #7384

Open twiecki opened 1 week ago

twiecki commented 1 week ago

Description

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/jupyter_cache/executors/utils.py", line 58, in single_nb_execution
    executenb(
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/nbclient/client.py", line 1314, in execute
    return NotebookClient(nb=nb, resources=resources, km=km, **kwargs).execute()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/jupyter_core/utils/__init__.py", line 165, in wrapped
    return loop.run_until_complete(inner)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/nbclient/client.py", line 709, in async_execute
    await self.async_execute_cell(
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/nbclient/client.py", line 1062, in async_execute_cell
    await self._check_raise_for_error(cell, cell_index, exec_reply)
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/nbclient/client.py", line 918, in _check_raise_for_error
    raise CellExecutionError.from_cell_and_msg(cell, exec_reply_content)
nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
------------------
with pm.Model() as model_1:
    a = pm.Normal("a", 0.0, 10.0)
    b = pm.Normal("b", 0.0, 10.0)

    mu = a + b * predictor_scaled
    sigma = pm.Exponential("sigma", 1.0)

    pm.Normal("obs", mu=mu, sigma=sigma, observed=outcome_scaled)
    idata = pm.sample_prior_predictive(draws=50, random_seed=rng)
------------------

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[5], line 9
      6 sigma = pm.Exponential("sigma", 1.0)
      8 pm.Normal("obs", mu=mu, sigma=sigma, observed=outcome_scaled)
----> 9 idata = pm.sample_prior_predictive(draws=50, random_seed=rng)

TypeError: sample_prior_predictive() got an unexpected keyword argument 'draws'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/sphinx/cmd/build.py", line 337, in build_main
    app.build(args.force_all, args.filenames)
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/sphinx/application.py", line 351, in build
    self.builder.build_update()
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/sphinx/builders/__init__.py", line 293, in build_update
    self.build(to_build,
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/sphinx/builders/__init__.py", line 313, in build
    updated_docnames = set(self.read())
                           ^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/sphinx/builders/__init__.py", line 419, in read
    self._read_serial(docnames)
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/sphinx/builders/__init__.py", line 440, in _read_serial
    self.read_doc(docname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/sphinx/builders/__init__.py", line 497, in read_doc
    publisher.publish()
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/docutils/core.py", line 234, in publish
    self.document = self.reader.read(self.source, self.parser,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/sphinx/io.py", line 107, in read
    self.parse()
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/docutils/readers/__init__.py", line 76, in parse
    self.parser.parse(self.input, document)
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/myst_nb/sphinx_.py", line 146, in parse
    with create_client(
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/myst_nb/core/execute/base.py", line 79, in __enter__
    self.start_client()
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/myst_nb/core/execute/direct.py", line 48, in start_client
    raise ExecutionError(str(self.path)) from result.err
myst_nb.core.execute.base.ExecutionError: /home/docs/checkouts/readthedocs.org/user_builds/pymc/checkouts/7383/docs/source/learn/core_notebooks/posterior_predictive.ipynb

Exception occurred:
  File "/home/docs/checkouts/readthedocs.org/user_builds/pymc/conda/7383/lib/python3.11/site-packages/myst_nb/core/execute/direct.py", line 48, in start_client
    raise ExecutionError(str(self.path)) from result.err
myst_nb.core.execute.base.ExecutionError: /home/docs/checkouts/readthedocs.org/user_builds/pymc/checkouts/7383/docs/source/learn/core_notebooks/posterior_predictive.ipynb
The full traceback has been saved in /tmp/sphinx-err-h29i6cea.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
ricardoV94 commented 1 week ago

@twiecki is this related to https://github.com/pymc-devs/pymc/pull/7370#issuecomment-2185832329 or did you find it from another place?

ricardoV94 commented 1 week ago

From here? https://github.com/pymc-devs/pymc/pull/7383

So it was already failing unrelated to #7370

twiecki commented 1 week ago

From here? #7383

Yes.