The version I just pulled down from the main downloads page locks when I try to load a file (or view a DrScript) which is presumably the nasty bug you're referring to.
The CVS version I pulled down a couple of day ago works fine, so I can only assume there's a problem with one or more files in the v2.4.2 zip.
Can you re-generate the zip file and update the download link.
Chris Wilson
Cleator Wilson Limited
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's a problem when opening any file, even the included DrScripts. The interface remains responsive (I can open more files which have the same problem) I just don't see any source in the window, and I get an hourglass cursor when I move over the toolbar at the top.
As I mentioned, changing the encoding to "Default" solves the problem.
I suspect the problem is more likely to be due to my combination of preferences, so I'll mail you a copy of the preferences file rather than any code.
BTW, on this particular machine I'm running XP Home, wxPython 2.5.1.5 and Python 2.3.2.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you running drpython and it running with error, you can enter the command line, and run drpython in command line. Then you may see what happened when there was an error.
c:\python23\python drpython.py
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Downloaded and installed v2.4.3 and set the encoding back to "Custom" and it works fine.
The traceback for the problem in v2.4.2 (don't know why I didn't think to do this myself, thanks limodou) was as follows:
Traceback (most recent call last):
File "C:\drpython-2.4.2\drpython.py", line 2145, in OnOpenRecentFile
self.OpenFile(False)
File "C:\drpython-2.4.2\drpython.py", line 2957, in OpenFile
self.SetEncodedText(self.txtDocument, oof)
File "C:\drpython-2.4.2\drpython.py", line 3185, in SetEncodedText
if (self.locale == 3) and (self.prefs.customencoding == "<None>"):
AttributeError: 'DrFrame' object has no attribute 'locale'
But thankfully it's now fixed anyway.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This fixes a nasty bug in 2.4.1.
What a hard work!
The version I just pulled down from the main downloads page locks when I try to load a file (or view a DrScript) which is presumably the nasty bug you're referring to.
The CVS version I pulled down a couple of day ago works fine, so I can only assume there's a problem with one or more files in the v2.4.2 zip.
Can you re-generate the zip file and update the download link.
Chris Wilson
Cleator Wilson Limited
damn.
does the cvs version work now?
When you try to load a file, what are your prefs (encoding)?
Are they set to Custom "<None>"
or Default or what?
I need some more info, and I will try to fix this, then release 2.4.3
Yup. You were right. My preferences were set to "Custom" and "<None>". Changing the encoding to "Default" solved the problem using the v2.4.2 zip.
Should the default for encoding not be "Default" to avoid this problem when using a preferences file from a previous version?
No, the problem is DrPython, not the preference.
Thanks, I will look into this.
Does this happen when you open one file, or multiple files? I noticed this a few days ago with multiple files (I am still looking at that).
Could you send me a copy of a file that generates this error?
Thanks.
(PS what os are you, what version of wxPython?)
It's a problem when opening any file, even the included DrScripts. The interface remains responsive (I can open more files which have the same problem) I just don't see any source in the window, and I get an hourglass cursor when I move over the toolbar at the top.
As I mentioned, changing the encoding to "Default" solves the problem.
I suspect the problem is more likely to be due to my combination of preferences, so I'll mail you a copy of the preferences file rather than any code.
BTW, on this particular machine I'm running XP Home, wxPython 2.5.1.5 and Python 2.3.2.
Hmmmm. Try this with DrPython 2.4.3, see if that helps.
wxPython 2.5.1.x seems to not be fully implemented (I am not sure why it was released so early).
Try wxPython 2.4.2. Does that work properly?
When you running drpython and it running with error, you can enter the command line, and run drpython in command line. Then you may see what happened when there was an error.
c:\python23\python drpython.py
Downloaded and installed v2.4.3 and set the encoding back to "Custom" and it works fine.
The traceback for the problem in v2.4.2 (don't know why I didn't think to do this myself, thanks limodou) was as follows:
Traceback (most recent call last):
File "C:\drpython-2.4.2\drpython.py", line 2145, in OnOpenRecentFile
self.OpenFile(False)
File "C:\drpython-2.4.2\drpython.py", line 2957, in OpenFile
self.SetEncodedText(self.txtDocument, oof)
File "C:\drpython-2.4.2\drpython.py", line 3185, in SetEncodedText
if (self.locale == 3) and (self.prefs.customencoding == "<None>"):
AttributeError: 'DrFrame' object has no attribute 'locale'
But thankfully it's now fixed anyway.
That is curious. It got fixed by accident (I was moving self.locale to self.txtDocument.locale).
Cool beans.