Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3739

Python plugin errors when loading: packages not supported? (no replies)

$
0
0
Hello,

I'm currently refactoring a ~10000 Python plugin into several modules. I was also starting to use packages, which are basically subdirs in the user modules directory.

After having installed the plugin and its modules I noticed the plugin doesn't appear in the list of plugins in the menu.

The Scripting Shell is now telling me:

Looking for modules in 'C:\Users\Kawu\AppData\Roaming\MySQL\Workbench\modules'.
INFO: Scanning module directory C:\Users\Kawu\AppData\Roaming\MySQL\Workbench\modules.

Traceback (most recent call last):
File "C:\Users\Kawu\AppData\Roaming\MySQL\Workbench\modules\jpa_export_plugin_grt.py", line 92, in <module>
from fragments.base import CodeFragment
File "C:\Users\Kawu\AppData\Roaming\MySQL\Workbench\modules\fragments\base.py", line 5, in <module>
from fragments.declarations import Type
File "C:\Users\Kawu\AppData\Roaming\MySQL\Workbench\modules\fragments\declarations.py", line 3, in <module>
from orm.metadata import Inheritance
File "C:\Users\Kawu\AppData\Roaming\MySQL\Workbench\modules\orm\metadata.py", line 10, in <module>
from fragments.other import BlockAnnotation
File "C:\Users\Kawu\AppData\Roaming\MySQL\Workbench\modules\fragments\other.py", line 5, in <module>
from fragments.base import InlineFragment, BlockFragment
ImportError: cannot import name InlineFragment
0 modules found
Looking for modules in '.'.
INFO: Scanning module directory ..

My IDE that I'm using for development (PyCharm Community Ed.) perfectly resolves the **cross-package imports** above. WB however seems to have problems?

What's wrong with WB? Are packages not supported?

Some help would be really helpful...

Karsten

Viewing all articles
Browse latest Browse all 3739

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>