da-h / AirLatex.vim

Overleaf / ShareLatex in Vim
MIT License
83 stars 8 forks source link

Error when logging in with username #42

Open acxz opened 2 years ago

acxz commented 2 years ago

Command: :AirLatex

Error detected while processing function remote#define#request:
line    2:
Error invoking '/home/acxz/.local/share/nvim/plugged/AirLatex.vim/rplugin/python3/test.py:command:AirLatex' on channel 4 (python
3-rplugin-host):
error caught in request handler '/home/acxz/.local/share/nvim/plugged/AirLatex.vim/rplugin/python3/test.py:command:AirLatex []':
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/secretstorage/util.py", line 46, in send_and_get_reply
    return self._connection.send_and_get_reply(msg, unwrap=True)
  File "/usr/lib/python3.10/site-packages/jeepney/io/blocking.py", line 190, in send_and_get_reply
    return unwrap_msg(msg_in)
  File "/usr/lib/python3.10/site-packages/jeepney/wrappers.py", line 214, in unwrap_msg
    raise DBusErrorResponse(msg)
jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.UnknownMethod] ('Object does not exist at path “/org/freedesktop
/secrets/collection/login”',)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/secretstorage/collection.py", line 161, in get_default_collection
    return Collection(connection)
  File "/usr/lib/python3.10/site-packages/secretstorage/collection.py", line 44, in __init__
    self._collection.get_property('Label')
  File "/usr/lib/python3.10/site-packages/secretstorage/util.py", line 64, in get_property
    (signature, value), = self.send_and_get_reply(msg)
  File "/usr/lib/python3.10/site-packages/secretstorage/util.py", line 49, in send_and_get_reply
    raise ItemNotFoundException('Item does not exist!') from resp

sysinfo: python: 3.10.2 nvim: 0.6.1

c3r34lk1ll3r commented 2 years ago

Hello,

I think that you haven't installed the keyring. Installing gnome-keyring fixed that problem in my case.

acxz commented 2 years ago

Thanks for your comment. I'll test it out as soon as I can.

However, right now after installing the plugin nvim isn't able to find AirLatex, the command :AirLatex is giving me: E492: Not an editor command: AirLatex

I'm following the readme to a T

Plug 'da-h/AirLatex.vim', {'do': ':UpdateRemotePlugins'}
let g:AirLatexUsername="my email"

nvm had to do a manual :UpdateRemotePlugins and then restart nvim

acxz commented 2 years ago

Still getting the same error after install gnome-keyring. I'm guessing I need to somehow add my login creds to python-keyring?

llinfeng commented 2 years ago

On both Linux and a few more WSL installations, pip install keyring keyrings.alt got things working.