In #225 e543962de8b67d7d821e01657686e41ceb2b508c deprecated syntax was corrected to run PyMultiNest with Python 3.11. However, that seems to have made PyMultiNest not compatible with Python2 anymore. At least I cannot run the demo example with Python 2.7.18 anymore, but it gives a lot of errors like this: TypeError: SafeLoglikelihood() takes exactly 4 arguments (3 given), which are caused by the fact that AttributeError: 'module' object has no attribute 'getfullargspec' and nargsremains thus 3 instead of 4.
I would suggest either mentioning in the readme file that python 2.7 is not supported anymore (assuming that is the issue?), or do the following (works for me at least):
In #225 e543962de8b67d7d821e01657686e41ceb2b508c deprecated syntax was corrected to run PyMultiNest with Python 3.11. However, that seems to have made PyMultiNest not compatible with Python2 anymore. At least I cannot run the demo example with Python 2.7.18 anymore, but it gives a lot of errors like this:
TypeError: SafeLoglikelihood() takes exactly 4 arguments (3 given)
, which are caused by the fact thatAttributeError: 'module' object has no attribute 'getfullargspec'
andnargs
remains thus 3 instead of 4. I would suggest either mentioning in the readme file that python 2.7 is not supported anymore (assuming that is the issue?), or do the following (works for me at least):