Re: [wxPython-users] Defis - has anyone got it to work?

15 views
Skip to first unread message

werner

unread,
Oct 5, 2011, 8:03:38 AM10/5/11
to Wolfgang Keller, edi...@googlegroups.com
On 10/05/2011 12:54 PM, Wolfgang Keller wrote:
> Hello,
>
> some time ago I posted a message about Defis:
>
> http://sourceforge.net/projects/defis/
>
> on the wxpython-users list. Unfortunately, I haven't managed to get the
> plugin to work with Editra, but this seems to be required for
> development.
>
Neither me, and I posted to their forum/list and never got a reply.
Pity, but it doesn't look like the author is serious about this or maybe
he just doesn't speak/write English.

Werner

Wolfgang Keller

unread,
Oct 5, 2011, 6:54:30 AM10/5/11
to edi...@googlegroups.com, wxpytho...@googlegroups.com
Hello,

some time ago I posted a message about Defis:

http://sourceforge.net/projects/defis/

on the wxpython-users list. Unfortunately, I haven't managed to get the
plugin to work with Editra, but this seems to be required for
development.

When I try to run the Editra installation provided in the Defis archive
(0.5.72), and open the Plugin Manager, I get an error dialog box with
this:

Editra Version: 0.5.72
Operating System: Windows XP (build 2600, Service Pack 3)
Python Version: 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500
32 bit (Intel)] wxPython Version: 2.8.9.1 (msw-unicode)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on,
SWIG-1.3.29) Python Encoding: Default=ascii File=mbcs
wxPython Encoding: cp1252
System Architecture: 32bit x86
Byte order: little
Frozen: False
#---- End System Information ----#

#---- Traceback Info ----#
*** Tue Sep 20 18:00:34 2011 ***
Traceback (most recent call last):
File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\extern
\events.py", line 108, in HandleEvent return handler(event)
File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\ed_main.py", line
1070, in OnPluginMgr size=wx.Size(550, 450))
File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\plugdlg.py", line
128, in __init__ mode=MODE_ERROR),
File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\plugdlg.py", line
269, in __init__ self.PopulateErrors()
File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\plugdlg.py", line
426, in PopulateErrors pbi = PluginErrorItem(self._list, pin, bmp, item)
File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\plugdlg.py", line
1126, in __init__ self._title = wx.StaticText(self, label=title)
File "F:\Anwendungen\PortablePython_1.1_py2.6.1\App\lib\site-packages
\wx-2.8-msw-unicode\wx\_controls.py", line 1136, in __init__
_controls_.StaticText_swiginit(self,_controls_.new_StaticText(*args,
**kwargs)) TypeError: String or Unicode type required

When I try to use the plugin with version 0.6.77 of Editra, the
Editra Log shows me:

[12:50:53][pluginmgr][info] Found plugin: defiscfg
[12:50:53][pluginmgr][err] Couldn't Load Defis: 'module' object has no
attribute 'dlg'

And the Plugin Manager simply doesn't show the plugin.

TIA,

Sincerely,

Wolfgang

Please note that this was cross-posted to both the Editra and the
wxPython-Users list. Please post replies only to the lists that you
read yourself, thanks.

--
Führungskräfte leisten keine Arbeit (D'Alembert)

Cody Precord

unread,
Oct 5, 2011, 9:00:22 AM10/5/11
to editra
Hi,

On Oct 5, 5:54 am, Wolfgang Keller <felip...@gmx.net> wrote:
>
>
> #---- Traceback Info ----#
> *** Tue Sep 20 18:00:34 2011 ***
> Traceback (most recent call last):
>   File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\extern
> \events.py", line 108, in HandleEvent return handler(event)
>   File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\ed_main.py", line
> 1070, in OnPluginMgr size=wx.Size(550, 450))
>   File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\plugdlg.py", line
> 128, in __init__ mode=MODE_ERROR),
>   File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\plugdlg.py", line
> 269, in __init__ self.PopulateErrors()
>   File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\plugdlg.py", line
> 426, in PopulateErrors pbi = PluginErrorItem(self._list, pin, bmp, item)
>   File "F:\Anwendungen\defis_0.5.3-py25\EditraIde\src\plugdlg.py", line
> 1126, in __init__ self._title = wx.StaticText(self, label=title)
>   File "F:\Anwendungen\PortablePython_1.1_py2.6.1\App\lib\site-packages
> \wx-2.8-msw-unicode\wx\_controls.py", line 1136, in __init__
> _controls_.StaticText_swiginit(self,_controls_.new_StaticText(*args,
> **kwargs)) TypeError: String or Unicode type required
>

As I mentioned to you before this was a bug in older versions that
occurred when they tried to load an incompatible plugin.

> When I try to use the plugin with version 0.6.77 of Editra, the
> Editra Log shows me:
>
> [12:50:53][pluginmgr][info] Found plugin: defiscfg
> [12:50:53][pluginmgr][err] Couldn't Load Defis: 'module' object has no
> attribute 'dlg'
>
> And the Plugin Manager simply doesn't show the plugin.

This indicates that there is an error in the plugin. If you turn on
VERBOSE_DEBUG in the preferences dialog or start Editra with the -dd
option you can see more of the error traceback. Basically the plugin
is throwing an exception when its being imported so it cant be loaded
due to an error on its end.


Cody

Wolfgang Keller

unread,
Oct 6, 2011, 7:32:07 AM10/6/11
to edi...@googlegroups.com
> This indicates that there is an error in the plugin. If you turn on
> VERBOSE_DEBUG in the preferences dialog

Where in the dialog box that is opened by choosing Edit->Preferences
is this option? I've searched the pages back and forth, but I couldn't
fins any option like that.

BTW: The way these pages in that dialog are nested on two sub-levels
using two different types of widgets is ultra-unintuitive.

> or start Editra with the -dd
> option you can see more of the error traceback.

Unfortunately, even started with this option, the Editra Log does not
show anything else than this single line.

However, starting Editra.py from Pyscripter, shows this in the output
of Python:

*snip*
import H:\Anwendungen\defis_0.5.3-py25\ic\kernel\icContext.pyc
IMPORT ERROR: pcyso
*snip*
import H:\Anwendungen\defis_0.5.3-py25\ic\utils\ic_util.pyc
ImportError: Recompiled DevId module

Now what's that module "pcyso"? Happens to be a typo in icContext.pyc:

try:
import psyco
psyco.bind(Context.update_context)
#init = psyco.proxy(init)
except:
print 'IMPORT ERROR: pcyso'

So this only reveals that the plugin tries to load psyco. But
apparently it should be supposed to work without.

Sincerely,

Wolfgang

Cody

unread,
Oct 6, 2011, 9:16:52 AM10/6/11
to edi...@googlegroups.com
Hi,

On Thu, Oct 6, 2011 at 6:32 AM, Wolfgang Keller <feli...@gmx.net> wrote:
>> This indicates that there is an error in the plugin. If you turn on
>> VERBOSE_DEBUG in the preferences dialog
>
> Where in the dialog box that is opened by choosing Edit->Preferences
> is this option? I've searched the pages back and forth, but I couldn't
> fins any option like that.
>

Its the very first option at the top of the dialog when you open it.

> BTW: The way these pages in that dialog are nested on two sub-levels
> using two different types of widgets is ultra-unintuitive.

In over 6 years your the only one to say anything remotely negative
about the configuration dialog. Would be interested in hearing some
rational to support your statements.

>
> *snip*
> import H:\Anwendungen\defis_0.5.3-py25\ic\kernel\icContext.pyc
> IMPORT ERROR: pcyso
> *snip*
> import H:\Anwendungen\defis_0.5.3-py25\ic\utils\ic_util.pyc
> ImportError: Recompiled DevId module
>

<snip>

>
> So this only reveals that the plugin tries to load psyco. But
> apparently it should be supposed to work without.
>

Yes, but what about the second import error shown above after the
psyco one? That one doesn't appear to be getting trapped.

It really seems like there a lot of fundamental issues in that plugins
code that would lead me to venture that it probably doesn't work or
was never developed to a point of actually being functional.

Unfortunately I don't really have the time to dig into issues on a non
supported plugin when the issues don't have anything to do with Editra
itself. You will need to either find the author of it or try to fix
the errors in it on your own. However if you have or run into any
Editra specific questions feel free to ask.


Regards,

Cody

Wolfgang Keller

unread,
Oct 30, 2011, 7:51:51 AM10/30/11
to edi...@googlegroups.com
> Pity, but it doesn't look like the author is serious about this or
> maybe he just doesn't speak/write English.

To me it does like this is indeed used for some actual productivity
applications (see screenshots, the quite extensive manual), but that the
Defis&Editra version(s) available on sourceforge are simply not the ones
that the author uses/has used himself for application development.

And there seem to be two people involved with the project: One who
reads and writes english (I got a reply from him stating that thy're
looking for project financing to refactor and translate the whole
project), but he doesn't seem to be the actual developer. And the
actual developer whose address I found in the (russian) pdf manual
doesn't seem to read and write english, so...

Grmpf. :-(

Sincerely,

Wolfgang

--
HOMO HOMINI HOSTIS.

Reply all
Reply to author
Forward
0 new messages