Windows Installation Error - No applicable method - emacsql
jayrajput opened this issue · comments
Got following error when trying to run ekg-capture-url
command after installation.
cl-no-applicable-method: No applicable method: emacsql, nil, [:select [object] :from triples :where (= predicate $s2) :and (= subject $s1)], "https://github.com/LGUG2Z/komorebi", base/type
Trying to debug it more, but any guidance is helpful. I do have org-roam-v2 working fine on this windows emacs. This is standalone windows emacs downloaded from https://www.gnu.org/software/emacs/download.html#nonfree
. Windows is one of my machine which I use at home and share with family members.
The ekg
package does not say about not working with windows, so I am hoping that it should work, especially since org-roam
v2 is working which also relies on sqlite
.
The installation compile-log does show some warnings though
Leaving directory ‘c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/triples-0.2.6’
Compiling file c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/triples-0.2.6/triples-backups-test.el at Sun Apr 9 20:02:11 2023
Entering directory ‘c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/triples-0.2.6/’
Compiling file c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/triples-0.2.6/triples-backups.el at Sun Apr 9 20:02:12 2023
Compiling file c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/triples-0.2.6/triples-test.el at Sun Apr 9 20:02:12 2023
In end of data:
triples-test.el:245:19: Warning: the function ‘kvplist->alist’ is not known to
be defined.
triples-test.el:245:5: Warning: the function ‘kvalist-sort’ is not known to be
defined.
triples-test.el:244:4: Warning: the function ‘kvalist->plist’ is not known to
be defined.
triples-test.el:86:23: Warning: the function ‘sqlite-select’ is not known to
be defined.
Compiling file c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/triples-0.2.6/triples.el at Sun Apr 9 20:02:12 2023
In triples-backup:
triples.el:98:36: Warning: Unused lexical argument `db'
In end of data:
triples.el:322:16: Warning: the function ‘sqlite-rollback’ is not known to be
defined.
triples.el:321:13: Warning: the function ‘sqlite-commit’ is not known to be
defined.
triples.el:316:13: Warning: the function ‘sqlite-transaction’ is not known to
be defined.
triples.el:249:12: Warning: the function ‘sqlite-select’ is not known to be
defined.
triples.el:95:16: Warning: the function ‘sqlite-close’ is not known to be
defined.
triples.el:68:20: Warning: the function ‘sqlite-execute’ is not known to be
defined.
triples.el:67:29: Warning: the function ‘sqlite-open’ is not known to be
defined.
Compiling internal form(s) at Sun Apr 9 20:02:17 2023
Leaving directory ‘c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/ekg-20230304.619’
Compiling file c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/ekg-20230304.619/ekg-embedding.el at Sun Apr 9 20:02:17 2023
Entering directory ‘c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/ekg-20230304.619/’
ekg-embedding.el:32:1: Error: Cannot open load file: No such file or directory, request
Compiling file c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/ekg-20230304.619/ekg-org-roam.el at Sun Apr 9 20:02:17 2023
Compiling file c:/Users/jayra/AppData/Roaming/.emacs.d/elpa/ekg-20230304.619/ekg.el at Sun Apr 9 20:02:17 2023
Emacs version is 28.2
as seen with emacs-version
command.
sqlite
was missing. After installing the same, things are working fine. Moving ahead. I installed sqlite using chocolatey on my windows 11 laptop
choco install sqlite
Thanks for diagnosing this. I'll add a note in the README and manual about the dependence on the sqlite binary (for Emacs version prior to 29).