vksnr
Ubuntu MATE 18.04
Both python 2.7 and 3.6 installed
Python 2.7 default environment
Have installed wxPython for both 2 and 3.

Downloaded OpenPLC Editor and ran ./ install.sh
Clicked on menu item Other-OpenPLC Editor v1.0
Splash screen appears and hangs - click on it and it disappears.

Looked at the command the menu itme is using:  "/home/vksnr/Downloads/OpenPLC_Editor/openplc_editor.sh"

Tried running that script by hand from a bash shell, and got the following errors.  

vksnr@onyx:~/Downloads/OpenPLC_Editor$ ./ openplc_editor.sh
abort: there is no Mercurial repository here (.hg not found)
Traceback (most recent call last):
File "Beremiz.py", line 203, in AppStart
self.BackgroundInitialization()
File "Beremiz.py", line 136, in BackgroundInitialization
self.ImportModules()
File "Beremiz.py", line 179, in ImportModules
mod = __import__(modname)
File "/media/eli/ExtraDrive1/Downloads/OpenPLC_Editor/editor/BeremizIDE.py", line 45, in <module>
from editors.EditorPanel import EditorPanel
File "/media/eli/ExtraDrive1/Downloads/OpenPLC_Editor/editor/editors/EditorPanel.py", line 29, in <module>
from controls import VariablePanel
File "/media/eli/ExtraDrive1/Downloads/OpenPLC_Editor/editor/controls/__init__.py", line 29, in <module>
from controls.CustomEditableListBox import CustomEditableListBox
File "/media/eli/ExtraDrive1/Downloads/OpenPLC_Editor/editor/controls/CustomEditableListBox.py", line 31, in <module>
class CustomEditableListBox(wx.gizmos.EditableListBox):
AttributeError: 'module' object has no attribute 'EditableListBox'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/wx/core.py", line 3259, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/media/eli/ExtraDrive1/Downloads/OpenPLC_Editor/editor/util/ExceptionHandler.py", line 52, in Display_Exception_Dialog
cap = wx.Window_GetCapture()
AttributeError: 'module' object has no attribute 'Window_GetCapture'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/wx/core.py", line 3259, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/media/eli/ExtraDrive1/Downloads/OpenPLC_Editor/editor/util/ExceptionHandler.py", line 52, in Display_Exception_Dialog
cap = wx.Window_GetCapture()
AttributeError: 'module' object has no attribute 'Window_GetCapture'


I have tried importing controls.LibraryPanel straight from the Python REPL and get the following error:

>>> import controls.LibraryPanel
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "controls/__init__.py", line 29, in <module>
from controls.CustomEditableListBox import CustomEditableListBox
File "controls/CustomEditableListBox.py", line 31, in <module>
class CustomEditableListBox(wx.gizmos.EditableListBox):
AttributeError: 'module' object has no attribute 'EditableListBox'

I probably have something in my python environment screwed up, but can't figure it out.  Any help is appreciated.

BTW, the wxPython demo runs fine with no errors, by calling python demo.py
Quote 0 0
thiagoralves
You probably have wxPhoenix installed instead of wxClassic. OpenPLC Editor won’t run on Phoenix as the API is completely different. You will have to purge the Phoenix installation and install classic
Quote 0 0
vksnr
Aha!  Thanks - that worked for me.  Did not even think about that.
Quote 0 0