brinckmann / montepython_public

Public repository for the Monte Python Code
MIT License
93 stars 80 forks source link

MP info with Python 3.8.5 #185

Open tsmith2 opened 3 years ago

tsmith2 commented 3 years ago

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(['']) .

dchooper commented 3 years ago

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

tsmith2 commented 3 years ago

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

dchooper commented 3 years ago

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

tsmith2 commented 3 years ago

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.

dchooper commented 3 years ago

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.

snesseris commented 3 years ago

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