CobayaSampler / cobaya

Code for Bayesian Analysis
http://cobaya.readthedocs.io/en/latest/
Other
122 stars 125 forks source link

Script invocation is broken on Python 3.9 #348

Closed HTJense closed 4 months ago

HTJense commented 5 months ago

It appears that importlib.metadata.entry_points() changed its return type from a dict to an object in python 3.10, and thus script invocation errors at line 12 of main.py when using Python versions prior to 3.10. See also the "compatibility note" at the bottom of this section.

Either versions 3.9 and before should be dropped (they don't seem to be flagged as incompatible in pyproject.toml), or a backwards-compatible fix should be considered (EOL for 3.9 won't be in another year and a half).

HTJense commented 5 months ago

(I should clarify that this is only for the development branch, not the latest release).

cmbant commented 5 months ago

c.f. https://github.com/CobayaSampler/cobaya/issues/345

cmbant commented 5 months ago

and https://github.com/CobayaSampler/cobaya/issues/328

JesusTorrado commented 4 months ago

Restored backwards compatibility by https://github.com/CobayaSampler/cobaya/commit/12d26c627465be925c2863ed6ba6054e2a458191