Re: wxGlade 0.7.0 RC1

Cristian Secară <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
În data de Sat, 18 Oct 2014 21:49:09 +0200, Carsten Grohmann a scris:

> I published wxGlade version 0.7.0 RC1 packages at
> https://sourceforge.net/projects/wxglade/files/wxglade/0.7.0._RC1-BETA%21%21/. 

Hi,

While trying to generate a preview, I got this error:
(file in question can be found here for some time
http://www.secarica.ro/temp/vxSchedulerAppPreferences.wxg )

===
ERROR   : An internal error occurred while generating the preview
An unexpected error occurred!

Date and time:      2014-10-19T12:29:30.112000
Python version:     2.7.8
wxPython version:   3.0.1.1
wxWidgets platform: __WXMSW__
wxGlade version:    0.7.0_RC1

Exception type:    <type 'exceptions.SyntaxError'>
Exception details: (unicode error) 'utf8' codec can't decode byte 0xe2 in position 0: unexpected end of data (wxg2.py, line 22)
Application stack trace:
Stack frame at level 0
======================
  File "C:\Program Files (x86)\wxGlade\misc.py", line 499
  Function "import_name(module_path='C:\\Users\\secarica\\AppData\\Local\\Temp\\wxg2.py', name=u'_798350213_AppPrefDialog')"
  Source code context:
          try:
              mfile, pathname, description = imp.find_module(mname, [path])
              try:
  ->              module = imp.load_module(mname, mfile, pathname, description)
              finally:
                  mfile.close()
          except ImportError:
  Local variables:
  -> description (<type 'tuple'>): ('.py', 'U', 1)
  -> mname (<type 'str'>): 'wxg2'
  -> imp (<type 'module'>): <module 'imp' (built-in)>
  -> pathname (<type 'str'>): 'C:\\Users\\secarica\\AppData\\Local\\Temp\\wxg2.py'
  -> mfile (<type 'file'>): <closed file 'C:\\Users\\secarica\\AppData\\Local\\Temp\\wxg2.py', mode 'U' at 0x04A0F6A8>
  -> module_path (<type 'str'>): 'C:\\Users\\secarica\\AppData\\Local\\Temp\\wxg2.py'
  -> path (<type 'str'>): 'C:\\Users\\secarica\\AppData\\Local\\Temp'
  -> name (<type 'unicode'>): u'_798350213_AppPrefDialog'

Stack frame at level 1
======================
  File "C:\Program Files (x86)\wxGlade\application.py", line 761
  Function "preview(self=<application.Application object at 0x03E82430>, widget=<dialog.dialog.EditDialog object at 0x04A10750>, out_name='C:\\Users\\secarica\\AppData\\Local\\Temp\\wxg2.py')"
  Source code context:
              try:
                  self.generate_code(preview=True)
                  # dynamically import the generated module
  ->              FrameClass = misc.import_name(self.output_path, widget.klass)
                  if issubclass(FrameClass, wx.MDIChildFrame):
                      frame = wx.MDIParentFrame(None, -1, '')
                      child = FrameClass(frame, -1, '')
  Local variables:
  -> widget (<class 'dialog.dialog.EditDialog'>): <dialog.dialog.EditDialog object at 0x04A10750>
  -> real_codegen_opt (<type 'int'>): 0
  -> out_name (<type 'str'>): 'C:\\Users\\secarica\\AppData\\Local\\Temp\\wxg2.py'
  -> warnings (<type 'module'>): <module 'warnings' from 'C:\Python27\lib\warnings.pyc'>
  -> real_language (<type 'str'>): 'python'
  -> self (<class 'application.Application'>): <application.Application object at 0x03E82430>
  -> inst (<type 'exceptions.SyntaxError'>): SyntaxError("(unicode error) 'utf8' codec can't decode byte 0xe2 in position 0: unexpected end of data", ('C:\\Users\\secarica\\AppData\\Local\\Temp\\wxg2.py', 22, None, 'self.combo_box_port = wx.ComboBox(self, -1, choices=["English", u"rom\xe2n\\u0103"], style=wx.CB_DROPDOWN)\n'))
  -> dialog (<class 'bugdialog.BugReport'>): <bugdialog.BugReport; proxy of <Swig Object of type 'wxDialog *' at 0x2994db8> >
  -> real_use_gettext (<type 'bool'>): True
  -> widget_class_name (<type 'unicode'>): u'AppPrefDialog'
  -> frame (<type 'NoneType'>): None
  -> overwrite (<type 'bool'>): False
===

Cristi

-- 
Cristian Secară
http://www.secarica.ro

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
wxGlade-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxglade-general
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.