When trying to open or save a file from DrPython nothing happens, the file dialogs do not appear. Upon closing the program I receive the following error message:
Open dialog:
Mon Sep 1 09:19:44 2014:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/drpython/drpython.py", line 2340, in OnOpen
dlg = drFileDialog.FileDialog(self, "Open", self.prefs.wildcard, MultipleSelection=True, ShowRecentFiles=True)
File "/usr/local/lib/python2.7/site-packages/drpython/drFileDialog.py", line 1031, in FileDialog
return drWxFileDialog(parent, title, "", "", wildcard, wx.OPEN|wx.HIDE_READONLY|wx.MULTIPLE)
AttributeError: 'module' object has no attribute 'HIDE_READONLY'
Save dialog:
Mon Sep 1 09:43:46 2014:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/drpython/drpython.py", line 2597, in OnSaveAs
dlg = drFileDialog.FileDialog(self, "Save File As", self.prefs.wildcard, IsASaveDialog=True)
File "/usr/local/lib/python2.7/site-packages/drpython/drFileDialog.py", line 1029, in FileDialog
return drWxFileDialog(parent, title, "", "", wildcard, wx.SAVE|wx.HIDE_READONLY|wx.OVERWRITE_PROMPT)
AttributeError: 'module' object has no attribute 'HIDE_READONLY'
My System:
I also noticed this warning when starting DrPython from the command line:
It appears to be trying to use wxPython v3, but my system is set up to use v2.8:
wx.HIDE_READONLY is deprecated since wxPython 2.6.
The new 2.9 version doesn't support it with the default build configuration.
For those People who works in Linux I suggest to delete "wx.HIDE_READONLY" in the drFileDialog.py.