montepython_public icon indicating copy to clipboard operation
montepython_public copied to clipboard

MP info with Python 3.8.5

Open tsmith2 opened this issue 4 years ago • 6 comments

I recently upgraded to Python 3.8.5 and when I run info I get the following error:

ValueError: The number of FixedLocator locations (3), usually from a call to set_ticks, does not match the number of ticklabels (1).

and the error points to analyze.py in line 989: ax2dsub.set_xticklabels(['']) .

tsmith2 avatar Feb 22 '21 14:02 tsmith2

Hi,

Yesterday we released a new version of MP with a lot of bugfixes, especially for Python 3. Can you try running on the latest version and see if the problem still persists?

Best, Deanna

dchooper avatar Feb 26 '21 13:02 dchooper

Unfortunately the problem with the error is still there with MP 3.4.0 and python 3.8.5

tsmith2 avatar Feb 27 '21 14:02 tsmith2

Hi,

Does this error message appear when you're including an extra plot file, or anytime you are running in info mode? If you are including an extra plot file, what options are you using?

Cheers, Deanna

dchooper avatar Mar 02 '21 12:03 dchooper

Yes, just when computing the histograms and plotting. I was able to get it to work by downgrading to matplotlib V 3.2.1; the Conda 3.8.5 distribution included matplotlib V 3.3.2.

tsmith2 avatar Mar 02 '21 12:03 tsmith2

Ahh, then this problem is the same as the one reported in issue #154.

We do list two possible bugfixes for this in that issue, but it seems these didn't make it into the release last week. We'll propagate this bugfix to the public version in the next minor release.

dchooper avatar Mar 02 '21 12:03 dchooper

Hi @dchooper , just to mention I also have the same issue and the solutions in issue #154 do not seem to work for me :(

I have Python 3.8.8 and Matplotlib 3.3.3

snesseris avatar Mar 22 '21 15:03 snesseris