Home Download Buy Blog Forum Support

plugins using the same library

plugins using the same library

Postby vivo on Wed Nov 21, 2012 9:39 am

The Maven and the CodeIntel plugin both use the same python file XmlTreeBuilder.py, which seem to conflict.
Each and every action seems to lead to a long stack trace in the console.

Disabling one of them gets rid of the problem.

What is the solution for a new plugin that wants to use a library, that is already used by another plugin
(but perhaps in a different version)?

Code: Select all
Traceback (most recent call last):
  File "./sublime_plugin.py", line 195, in on_modified
  File "./sublime_plugin.py", line 154, in run_timed_function
  File "./sublime_plugin.py", line 194, in <lambda>
  File "./SublimeCodeIntel.py", line 809, in on_modified
  File "./SublimeCodeIntel.py", line 233, in guess_lang
  File "./SublimeCodeIntel.py", line 473, in codeintel_manager
  File "/Users/vvolle/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/manager.py", line 133, in __init__
    self._register_modules(extra_module_dirs)
  File "/Users/vvolle/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/manager.py", line 190, in _register_modules
    self._register_module(module_path)
  File "/Users/vvolle/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/manager.py", line 211, in _register_module
    module = imp.load_module(module_name, *iinfo)
  File "/Users/vvolle/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/lang_html.py", line 50, in <module>
    from codeintel2.lang_xml import XMLLangIntel
  File "/Users/vvolle/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/codeintel2/lang_xml.py", line 54, in <module>
    import koXMLTreeService, koXMLDatasetInfo
  File "/Users/vvolle/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/koXMLDatasetInfo.py", line 55, in <module>
    from koCatalog import CatalogResolver
  File "/Users/vvolle/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/koCatalog.py", line 42, in <module>
    from koRNGElementTree import rng
  File "/Users/vvolle/Library/Application Support/Sublime Text 2/Packages/SublimeCodeIntel/libs/koRNGElementTree.py", line 45, in <module>
    from elementtree import XMLTreeBuilder
ImportError: cannot import name XMLTreeBuilder
vivo
 
Posts: 2
Joined: Tue Jun 26, 2012 11:23 am

Return to Plugin Development

Who is online

Users browsing this forum: Majestic-12 [Bot] and 7 guests