Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symbol's function definition is void: elpy-enable

Tags:

emacs

I'm using Emacs 24 and trying to use the elpy package, and getting the error:

"Symbol's function definition is void: elpy-enable"

(package-initialize)
(elpy-enable)
(elpy-use-ipython)

The mode I'm using (elpy) just said to add those lines to my .emacs file and it would all be fine (I've installed this mode on the python side).

Loading emacs with --debug-init provides the following

  (elpy-enable)
  eval-buffer(#<buffer  *load*> nil "/home/tk12098/.emacs" nil t)  ; Reading at buffer position 354
  load-with-code-conversion("/home/tk12098/.emacs" "/home/tk12098/.emacs" t t)
  load("~/.emacs" t t)
  #[0 "\205\262

The line starting #[0 ".... seems to go on for a while.

How should I go about solving this?

like image 426
Tom Kealy Avatar asked May 06 '26 07:05

Tom Kealy


1 Answers

I solved the issue by adding this to my ~/.emacs.d/init.el:

(require 'elpy)
(elpy-enable)
like image 170
Janne Tuukkanen Avatar answered May 11 '26 15:05

Janne Tuukkanen