When opening an epub file with Nov-mode I get a binary buffer in fundamental mode and an error message File mode specification error: (error Invalid version syntax: ‘’ (must start with a number)). This issue happens in ALL my epub files and was not present when I installed nov-mode from MELPA for the first time (something must have changed in a recent version). Here's a stack trace of the error when I use a org-link to access an epub file.
Debugger entered--Lisp error: (error "Invalid version syntax: ‘’ (must start with a number)")
signal(error ("Invalid version syntax: ‘’ (must start with a number)"))
error("Invalid version syntax: `%s' (must start with a number)" "")
version-to-list("")
version<("" "9.0")
byte-code("\301\010\302\"\203\024\0\303\304\305\"\210\306\307\310\"\210\202\034\0\311\304\312\305\313\310%\210\301\207" [org-version version< "9.0" org-add-link-type "nov" nov-org-link-follow add-hook org-store-link-functions nov-org-link-store org-link-set-parameters :follow :store] 6)
nov-mode()
set-auto-mode-0(nov-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer my_ebookfile.epub> "/home/pathfiletothefile/my_ebookfile.epub" nil nil "/home/pathfiletothefile/my_ebookfile.epub" (30673310 66306))
find-file-noselect("/home/pathfiletothefile/my_ebookfile.epub" nil nil nil)
find-file-other-window("/home/pathfiletothefile/my_ebookfile.epub")
org-open-file("/home/pathfiletothefile/my_ebookfile.epub" nil)
apply(org-open-file "/home/pathfiletothefile/my_ebookfile.epub" nil nil)
org-link-open-as-file("/home/pathfiletothefile/my_ebookfile.epub" nil)
org-link-open((link (:type "file" :path "/home/pathfiletothefile/my_ebookfile.epub" :format bracket :raw-link "/home/pathfiletothefile/my_ebookfile.epub" :application nil :search-option nil :begin 2077938 :end 2078198 :contents-begin 2078097 :contents-end 2078196 :post-blank 0 :parent (paragraph (:begin 2077938 :end 2078199 :contents-begin 2077938 :contents-end 2078199 :post-blank 0 :post-affiliated 2077938 :parent (item (:bullet "- " :begin 2077927 :end 2078199 :contents-begin 2077938 :contents-end 2078199 :checkbox on :counter nil :structure (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :pre-blank 0 :post-blank 0 :post-affiliated 2077927 :tag nil :parent (plain-list ...))))))) nil)
org-open-at-point(nil)
funcall-interactively(org-open-at-point nil)
call-interactively(org-open-at-point nil nil)
command-execute(org-open-at-point)
This is my configuration of the mode
(use-package nov
:ensure t
:mode ("\\.epub\\'" . nov-mode)
)
and I am using version 20201207.3 on emacs 26.3. There are similar threads here and here but none deals with an invalid version syntax error. I can provide an epub file if necessary, but as I said, this happens in ALL the files in my library. Thank you in advance for any help.
org-versionis the empty string when it is fed toversion<. I have no idea whyorg-versionis empty though.org-version.nov.eland search through the five or so occurrences ofversion<there.