secondmind-labs / trieste

A Bayesian optimization toolbox built on TensorFlow
Apache License 2.0
217 stars 42 forks source link

Notebooks don't work with Python 3.10 (and pin too many packages) #733

Closed uri-granta closed 1 year ago

uri-granta commented 1 year ago

Describe the bug The notebooks don't currently work with Python 3.10 for a number of reasons:

  1. we currently pin sphinx to 3.5.4 to work around https://github.com/plotly/plotly.js/issues/4563, but that version breaks with Python 3.10
  2. we currently pin pandas to <1.0.0, which similarly breaks with Python 3.10: see https://github.com/secondmind-labs/trieste/issues/703
  3. we depend on box2d, which doesn't provide wheels for Python 3.10 or a source package: see https://stackoverflow.com/questions/70323852/error-trying-to-install-python-package-box2d

We also pin some additional packages:

  1. gym<0.22 (why?)
  2. setuptools==65.6.3 (due to https://github.com/openai/gym/issues/3176)
  3. wheel==0.38.4 (due to due to https://github.com/openai/gym/issues/3202)
  4. Jinja2<3.1 (why?)

Expected behaviour Support running and building notebooks with Python 3.10 and, ideally, the latest versions of all the dependant packages.

uri-granta commented 1 year ago

Fixed in https://github.com/secondmind-labs/trieste/pull/738