WilliamQiufeng
Running the app resulted in the app stuck in the opening view. 
 
I ran `/Applications/OpenPLC\ Editor.app/Contents/MacOS/OpenPLC\ Editor` and here's the full log:
 
20:13:23: Debug: Adding duplicate image handler for 'Windows bitmap file'
20:13:23: Debug: Adding duplicate animation handler for '1' type
20:13:23: Debug: Adding duplicate animation handler for '2' type
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/wx/core.py", line 3407, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) 😉
  File "/Applications/OpenPLC Editor.app/Contents/Resources/./editor/Beremiz.py", line 204, in AppStart
    self.BackgroundInitialization()
  File "/Applications/OpenPLC Editor.app/Contents/Resources/./editor/Beremiz.py", line 137, in BackgroundInitialization
    self.ImportModules()
  File "/Applications/OpenPLC Editor.app/Contents/Resources/./editor/Beremiz.py", line 180, in ImportModules
    mod = __import__(modname)
  File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/BeremizIDE.py", line 42, in <module>
    from editors.EditorPanel import EditorPanel
  File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/editors/EditorPanel.py", line 29, in <module>
    from controls import VariablePanel
  File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/controls/__init__.py", line 34, in <module>
    from controls.DebugVariablePanel import DebugVariablePanel
  File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/controls/DebugVariablePanel/__init__.py", line 26, in <module>
    from controls.DebugVariablePanel.DebugVariablePanel import DebugVariablePanel
  File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/controls/DebugVariablePanel/DebugVariablePanel.py", line 44, in <module>
    from controls.DebugVariablePanel.DebugVariableTextViewer import DebugVariableTextViewer
  File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/controls/DebugVariablePanel/DebugVariableTextViewer.py", line 31, in <module>
    from controls.DebugVariablePanel.DebugVariableViewer import DebugVariableViewer
  File "/Applications/OpenPLC Editor.app/Contents/Resources/editor/controls/DebugVariablePanel/DebugVariableViewer.py", line 34, in <module>
    from matplotlib.backends.backend_wxagg import _rgba_to_wx_bitmap
ImportError: cannot import name '_rgba_to_wx_bitmap' from 'matplotlib.backends.backend_wxagg' (/usr/local/lib/python3.9/site-packages/matplotlib/backends/backend_wxagg.py)
 
Reply 0 0
WilliamQiufeng
This can be resolved by downgrading matplotlib: pip3.9 install --upgrade matplotlib==3.6.3
I'm not good at this, but maybe we can freeze the version for pip packages in dev branch?
Reply 0 0
Write a reply...
Reply