Created attachment 158986 [details] Patch that removes wx.HIDE_READONLY attribute from wx.FileDialog DrPython could not open or save any files because of the attribute wx.HIDE_READONLY which is not defined within the installed version of wxPython 2.8. The included patch removes the attribute from wx.FileDialog. I will also submit the patch upstream (when possible as the Sourceforge site is currently down) in the case it is not related solely to FreeBSD.
This is the traceback of the error previously mentioned: 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' The patch also changes "wx.OPEN" to "wx.FD_OPEN" and "wx.MULTIPLE" to "wx.FD_MULTIPLE".
A commit references this bug: Author: marino Date: Thu Aug 18 22:54:22 UTC 2016 New revision: 420428 URL: https://svnweb.freebsd.org/changeset/ports/420428 Log: devel/drpython: Remove wx.HIDE_READONLY attribute from wx.FileDialog This attribute has been removed for wxPython 3.0. Remove the flag to fix runtime error during saving and loading. See similar report on DrPython bug report 137. PR: 201699 Submitted by: Jordan Irwin Changes: head/devel/drpython/Makefile head/devel/drpython/files/patch-drFileDialog.py