Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

failed to load deoplete source #146

Closed
wsdjeg opened this issue Feb 12, 2019 · 2 comments · Fixed by #148
Closed

failed to load deoplete source #146

wsdjeg opened this issue Feb 12, 2019 · 2 comments · Fixed by #148

Comments

@wsdjeg
Copy link

wsdjeg commented Feb 12, 2019

If autocomplete/docs or etc doesn't work for you
before creating issue please check Debugging page and make sure your basic setup works

https://github.com/slashmili/alchemist.vim/wiki/Debugging

and answer these questions:

  1. Elixir/OTP/Python version

Elixir: None

OTP: None

Python: Python 3.7.1

  1. Are you using VIM or Neovim? Please provide the version.

neovim-qt (master branch daily build)

  1. Which pluging are you using:

[ ] basic omnifunc
[ ] YouCompleteMe
[x] deoplete

  1. Which steps of Debugging passed?

[ ] Elixir Module definition
[ ] Elixir Function definition
[ ] Elixir Module/Function docs
[ ] Your Project Module definition
[ ] Your Project Function definition

  1. Do you have a specific setup? Like Docker and etc

I am so sorry, I do not follow your debug step, just failed to load the deoplete source, the error message is simple

[deoplete] Traceback (most recent call last):
  File "C:\Users\Administrator\.cache\vimfiles\repos\github.com\Shougo\deoplete.nvim\rplugin\python3\deoplete\child.py", line 97, in _add_source
    Source = import_plugin(path, 'source', 'Source')
  File "C:\Users\Administrator\.cache\vimfiles\repos\github.com\Shougo\deoplete.nvim\rplugin\python3\deoplete\util.py", line 55, in import_plugin
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:/Users/Administrator/.cache/vimfiles/repos/github.com/slashmili/alchemist.vim\rplugin\python3\deoplete\sources\alchemist.py", line 4, in <module>
    from elixir_sense import ElixirSenseClient
  File "C:\Users\Administrator\.cache\vimfiles\repos\github.com\slashmili\alchemist.vim\elixir_sense.py", line 9, in <module>
    import syslog
ModuleNotFoundError: No module named 'syslog'
Could not load source: C:/Users/Administrator/.cache/vimfiles/repos/github.com/slashmili/alchemist.vim\rplugin\python3\deoplete\sources\alchemist.py.  Use :messages / see above for error details.

This mean the python can not load syslog module, I have tried :py import syslog and :py3 import syslog both failed with No module named 'syslog'. NOTE, I am using Window os 7.

@slashmili
Copy link
Owner

I'd say we can import syslog in a try catch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants