Menu

#40 Issues while using async

Next Minor Release
open
nobody
None
1
2019-11-24
2019-11-24
Anonymous
No

While trying to use async inside the plugins I start getting:

Unable to import plugin: PATH
Traceback (most recent call last):
  File "PATH/lib/python3.6/site-packages/yapsy/PluginManager.py", line 518, in loadPlugins
    candidate_module = PluginManager._importModule(plugin_module_name, candidate_filepath)
  File "PATH/lib/python3.6/site-packages/yapsy/PluginManager.py", line 584, in _importModule
    candidate_module = imp.load_module(plugin_module_name,plugin_file,candidate_filepath+".py",("py","r",imp.PY_SOURCE))
  File "/usr/lib/python3.6/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.6/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 684, in _load
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 674, in exec_module
  File "<frozen importlib._bootstrap_external>", line 781, in get_code
  File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "PATH", line 49
    await self.test()
             ^
SyntaxError: invalid syntax

Not sure what is causing this because it shouldn't compromise the plugin load.

Discussion

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB