Skip to content

An Error In Openmc Plotter #103

Description

@Seamoon-Wang

Hi,Everyone!
There is an error when I use the Openmc-Plotter through Ubuntu & Xming.Here is the error:

File “/home/rookie/anaconda3/envs/openmc-env/lib/python3.10/site-packages/openmc_plotter/plotgui.py”, line 75, in getPlotCoords
transform = self.ax.transAxes.inverted()
AttributeError: ‘PlotImage’ object has no attribute ‘ax’. Did you mean: ‘x’?
Traceback (most recent call last):
File “/home/rookie/anaconda3/envs/openmc-env/lib/python3.10/site-packages/openmc_plotter/plotgui.py”, line 220, in mouseMoveEvent
xPlotPos, yPlotPos = self.getPlotCoords(event.pos())

If you have some advices, Please text it,Thank You!
Best Wishes!

Activity

  1. pshriwise commented on Nov 14, 2022

    @pshriwise
    Collaborator

    Hi @Seamoon-Wang!

    Thanks for reporting this! We'll see what we can do. It sounds like you're either logging into another machine with ssh or using the Windows subsystem for Linux. Is that correct?

    Either way, would you mind sending along the following information so I can work on reproducing this issue?

    • Ubuntu version (bash command: lsb_release -a)
    • OpenMC version (bash command: python -c 'import openmc; print(openmc.__version__)'
    • Matplotlib version (bash command: python -c "import matplotlib; print(matplotlib.__version__)"
  2. Seamoon-Wang commented on Nov 14, 2022

    @Seamoon-Wang
    Author

    @pshriwise Hi!
    Thanks for your reply!
    Your judge is correct so much!
    My Ubuntu version is "Ubuntu 20.04 LTS";
    My OpenMC version is “0.13.1”
    My Matplotlib version is "<module 'matplotlib._version' from '/home/rookie/anaconda3/envs/openmc-env/lib/python3.10/site-packages/matplotlib/_version.py'>"

    By the way, I had to use the Openmc Plotter correctly, but I don't know why it got mistaken after the weekend.

  3. pshriwise commented on Nov 14, 2022

    @pshriwise
    Collaborator

    Hi @Seamoon-Wang. I had a typo in my commands above. I just fixed it. Can you try getting the matplotlib version again when you have a chance?

  4. Seamoon-Wang commented on Nov 15, 2022

    @Seamoon-Wang
    Author

    @pshriwise Hi!
    It seems like that you still made a typo;)
    But I have figured out the version of matplotlib:
    "3.6.1"
    Thanks for your reply and help !

  5. pshriwise commented on Nov 15, 2022

    @pshriwise
    Collaborator

    Ah, indeed. Corrected. I'll try to reproduce this error soon. Thanks!

  6. indesperate commented on Jan 10, 2023

    @indesperate

    @pshriwise Hi! It seems like that you still made a typo;) But I have figured out the version of matplotlib: "3.6.1" Thanks for your reply and help !

    I am using wsl2 and ubuntu 22.04, before I use the openmc-plotter, I have to install some xkb library denpendences. I got the same error and tried to figure out why. I upgrade the openmc-plotter to the latest version manually using the source code. Afterward, it works!, and I figure out that there is a void blank area in my model which possibly caused the error. However, I can't reproduce the error now in the old version(that's quite strange). Anyway, upgrading may be helpful to you. (My English is poor, sorry for any mistakes)

  7. LukeLabrie commented on Aug 7, 2024

    @LukeLabrie

    In case it's helpful, I was getting a similar error to the one initially reported here. For me what solved it was deleting the plot_settings.pkl file, which seems like it saves the last state of the plotter. If this expects a statepoint with a tally that's no longer there, or perhaps some otherwise other incompatible settings, it might be an issue for the plotter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions