Hi there.
I'm trying to use this great little tool for the first time, but unfortunately I'm running into issues.
I'm on a 2020 M1 MacBook Pro, running MacOS Ventura 13.4.
I first installed it through regular pip. But just in case that was the issue, I uninstalled it, installed pipx as recommended, and went ahead and reinstalled the wrapper way. It didn't make any difference, as I seem to be getting the same error.
I have set the path to the right database file by adding export KEEPASSXCCLI2_NONAME_DB=/path/to/db.kdbx to my .zshrc file, which is correctly being picked up as I do get prompted for the database password on first run as expected. It's the only database I have, and it's only locked with a password.
However, once I enter the password, I'm always getting this output, regardless of the command I was trying to run:
➜ ~ kpowg ls
Password:
Traceback (most recent call last):
File "/Users/XXXXXX/.local/pipx/venvs/keepasxcli-wrapper/lib/python3.11/site-packages/keepasxcli_wrapper/client.py", line 91, in call_server
Serving database stopped.
connection.connect(self.pid_file)
ConnectionRefusedError: [Errno 61] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/XXXXXX/.local/bin/kpowg", line 8, in <module>
sys.exit(attr())
^^^^^^
File "/Users/XXXXXX/.local/pipx/venvs/keepasxcli-wrapper/lib/python3.11/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/XXXXXX/.local/pipx/venvs/keepasxcli-wrapper/lib/python3.11/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/XXXXXX/.local/pipx/venvs/keepasxcli-wrapper/lib/python3.11/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/XXXXXX/.local/pipx/venvs/keepasxcli-wrapper/lib/python3.11/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/XXXXXX/.local/pipx/venvs/keepasxcli-wrapper/lib/python3.11/site-packages/keepasxcli_wrapper/client.py", line 248, in attr
entries = c.call_server(f'{FILTERED_ENTRIES} {entry}').splitlines()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/XXXXXX/.local/pipx/venvs/keepasxcli-wrapper/lib/python3.11/site-packages/keepasxcli_wrapper/client.py", line 98, in call_server
raise RuntimeError("Can't create db and connect to server")
RuntimeError: Can't create db and connect to server
Any idea of what the issue might be?
Hi there.
I'm trying to use this great little tool for the first time, but unfortunately I'm running into issues.
I'm on a 2020 M1 MacBook Pro, running MacOS Ventura 13.4.
I first installed it through regular pip. But just in case that was the issue, I uninstalled it, installed
pipxas recommended, and went ahead and reinstalled the wrapper way. It didn't make any difference, as I seem to be getting the same error.I have set the path to the right database file by adding
export KEEPASSXCCLI2_NONAME_DB=/path/to/db.kdbxto my .zshrc file, which is correctly being picked up as I do get prompted for the database password on first run as expected. It's the only database I have, and it's only locked with a password.However, once I enter the password, I'm always getting this output, regardless of the command I was trying to run:
Any idea of what the issue might be?