Whenever I try to use elpy, or even just fontlock (with elpy disabled) in a python file, I get the error that rx-let is void.
This is what I got from --debug-init
:
Debugger entered--Lisp error: (void-function rx-let)
(rx-let ((block-start (seq symbol-start (or "def" "class" "if" "elif" "else" "try" "except" "finally" "for" "while" "with" (and "async" (+ space) (or "de$
(python-rx line-start (* space) defun (+ space) (group symbol-name))
(defvar python-nav-beginning-of-defun-regexp (python-rx line-start (* space) defun (+ space) (group symbol-name)) "Regexp matching class or function defi$
eval-buffer(#<buffer *load*-951749> nil "/home/ben/.emacs.d/elpa/python-0.27/python.el" nil t) ; Reading at buffer position 60382
I am using the Ubuntu 26.3 Build. This is just driving me nuts. I tried searching for this error, but I didn't get any results. Requesting for help.