Re: wxGlade 0.7.0 released

Federico Fanton <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
On 26/10/2014 13:54, Carsten Grohmann wrote:
> Hello,
>
> The new wxGlade release is published now. It's a new major release with a lot of visible and invisible changes - especially the full support of wxWidgets 3 and wxPython 3.

Hi Carsten,
I've just tried the new version, here's what I've found:


- if you remove $HOME/.wxglade before running wxGlade won't start, 
complaining that

$ ./wxglade
Traceback (most recent call last):
   File "./wxglade.py", line 348, in <module>
     run_main()
   File "./wxglade.py", line 323, in run_main
     init_stage1()
   File "./wxglade.py", line 188, in init_stage1
     level='INFO',
   File "/home/joril/opt/wxGlade-0.7.0/log.py", line 381, in init
     backupCount=1,
   File "/usr/lib/python2.7/logging/handlers.py", line 118, in __init__
     BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
   File "/usr/lib/python2.7/logging/handlers.py", line 65, in __init__
     logging.FileHandler.__init__(self, filename, mode, encoding, delay)
   File "/usr/lib/python2.7/logging/__init__.py", line 897, in __init__
     StreamHandler.__init__(self, self._open())
   File "/usr/lib/python2.7/logging/__init__.py", line 918, in _open
     stream = codecs.open(self.baseFilename, self.mode, self.encoding)
   File "/usr/lib/python2.7/codecs.py", line 881, in open
     file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: 
'/home/joril/.wxglade/wxglade.log'



- On the first launch every window appears in the middle of the screen 
on top of each other, not a big problem of course :)



- When I try to run code generation I get a UnicodeDecodeError (I'm 
using a non-ASCII string inside a label):

Date and time:       2014-10-27T08:49:33.760303
Python version:      2.7.3
wxPython version:    2.8.12.1
wxWidgets platform:  __WXGTK__
wxGlade version:     0.7.0
Language code:       en_US
Encoding:            UTF-8
Filesystem encoding: UTF-8

Exception type:      <type 'exceptions.UnicodeDecodeError'>
Exception details:   'ascii' codec can't decode byte 0xc3 in position 7: 
ordinal not in range(128)
Application stack trace:
Stack frame at level 0
======================
   File "/usr/lib/python2.7/StringIO.py", line 271
   Function "getvalue(self=<StringIO.StringIO instance at 0x222fc68>)"
   Source code context:
               """
               _complain_ifclosed(self.closed)
               if self.buflist:
   ->              self.buf += ''.join(self.buflist)
                   self.buflist = []
               return self.buf

   Local variables:
   -> self (<type 'instance'>): <StringIO.StringIO instance at 0x222fc68>

Stack frame at level 1
======================
   File "/home/joril/opt/wxGlade-0.7.0/main.py", line 792
   Function "_save_app(self=<main.wxGladeFrame; proxy of <Swig Object of 
type 'wxFrame *' at 0x1d93c70> >, 
filename=u'/home/joril/src/twist/trunk/browser/glade/cadbrowser.wxg')"
   Source code context:
               try:
                   obuffer = StringIO.StringIO()
                   common.app_tree.write(obuffer)
   ->              common.save_file(filename, obuffer.getvalue(), 'wxg')
               except (IOError, OSError), inst:
                   common.app_tree.app.saved = False
                   wx.MessageBox(_("Error saving app:\n%s") % inst, 
_("Error"),
   Local variables:
   -> obuffer (<type 'instance'>): <StringIO.StringIO instance at 0x222fc68>
   -> self (<class 'main.wxGladeFrame'>): <main.wxGladeFrame; proxy of 
<Swig Object of type 'wxFrame *' at 0x1d93c70> >
   -> filename (<type 'unicode'>): 
u'/home/joril/src/twist/trunk/browser/glade/cadbrowser.wxg'
   -> inst (<type 'exceptions.UnicodeDecodeError'>): 
UnicodeDecodeError('ascii', 'Attivit\xc3\xa0', 7, 8, 'ordinal not in 
range(128)')
   -> dialog (<class 'bugdialog.BugReport'>): <bugdialog.BugReport; 
proxy of <Swig Object of type 'wxDialog *' at 0x547c420> >
   -> fn (<type 'str'>): 'cadbrowser.wxg'


I'm on Xubuntu 12.04.5

Thanks for all your work!

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.