Bug #55243 | mforms module is not available | ||
---|---|---|---|
Submitted: | 14 Jul 2010 3:55 | Modified: | 20 Sep 2010 14:18 |
Reporter: | Igor Gladkov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S2 (Serious) |
Version: | 5.2.25 | OS: | Linux (Ubuntu 10.04) |
Assigned to: | Alfredo Kojima | CPU Architecture: | Any |
Tags: | mforms, plugins, regression, workbench |
[14 Jul 2010 3:55]
Igor Gladkov
[14 Jul 2010 17:25]
Alfredo Kojima
Does the administration module work for you?
[14 Jul 2010 17:27]
Igor Gladkov
Yes, everything works in workbench itself, just my plugin isn't loading because of that error.
[15 Jul 2010 18:18]
Alfredo Kojima
Can you upload your plugin so we can try loading it ourselves?
[16 Jul 2010 0:52]
MySQL Verification Team
Please see Alfredo's last comment. Thanks.
[17 Jul 2010 15:18]
Igor Gladkov
Test plugin script
Attachment: WBPlugin-test.py (text/x-python), 761 bytes.
[17 Jul 2010 15:19]
Igor Gladkov
I uploaded strip-down version of the plug-in, which has the same type of error.
[17 Jul 2010 15:52]
Valeriy Kravchuk
Should be something Linux-specific. On Mac OS X I've got no problem like you described after adding your plugin. This is what I see in scripting shell: Starting Workbench...Registered 147 GRT classes. WARNING: Could not load wb.mysql.validation.grt.dylib: Invalid module /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.mysql.validation.grt.dylib WARNING: Could not load wb.validation.grt.dylib: Invalid module /Applications/MySQLWorkbench.app/Contents/PlugIns/wb.validation.grt.dylib Registered 16 modules (from 13 files). Looking for user plugins in /Users/openxs/Library/Application Support/MySQL/Workbench/modules MySQL Generic Runtime Environment 4.1.0 Type 'help' or '?' for help. Type 'quit' to exit the shell. You may change the programming language used in this shell from Preferences -> General Welcome to the Lua Shell. Ready. What version of Python do you have on Linux?
[17 Jul 2010 16:00]
Igor Gladkov
Probably it's Linux specific, since it worked fine for me on Windows as well. Python is 2.6
[19 Jul 2010 11:55]
Susanne Ebrecht
Hello Igor, import mforms ImportError: No module named mforms Afair its mformat under Linux and not mforms.
[22 Jul 2010 0:39]
Igor Gladkov
Using mformat gives the same error as when I use mforms.
[22 Jul 2010 6:06]
Susanne Ebrecht
Is mformat installed on the system?
[22 Jul 2010 7:19]
Igor Gladkov
The only program I know in Unix named mformat is program for disk format, so I'm still not sure how mformat related to Workbench plugins. Other than that, I assume that all modules needed to run Workbench plugins are installed with the program, the same as it works on Windows and Mac. Mform is a module in workbench, which I see in the source code and in the installation directory, but it's not found for some reason.
[19 Aug 2010 15:53]
Alfredo Kojima
I was able to repeat and fix the problem.
[20 Sep 2010 13:40]
Johannes Taxacher
fix confirmed in release 5.2.28
[20 Sep 2010 14:18]
Tony Bedford
An entry has been added to the 5.2.28 changelog: A plugin which used Mforms generated the following error when MySQL Workbench started: ..... line 16, in <module> import mforms ImportError: No module named mforms