Can't find library python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
I'm trying out current python-mode 6.0.4, taken from launchpad.
My emacs setup, loosely based on an old version of emacs-starter-kit, started to fail with the strange error I gave in the summary above. Even more strange, on a different machine, starting Emacs does not raise the error, but rather "automatically" opens a buffer loading the "python.el.gz" file coming with standard Emacs (24.0.91 from PPA, btw).
Upon further investigation, I isolated the problem to the latest version of python-mode, that does not occur with the official 6.0.3 released version.
To confirm that, I cloned the current launchpad branch in a temporary location, say "/tmp/python-
(add-to-list 'load-path "/tmp/python-
("/tmp/
(load-library "python-mode")
At this point Emacs yielded the following traceback:
Debugger entered--Lisp error: (error "Can't find library python")
signal(error ("Can't find library python"))
error("Can't find library %s" "python")
find-
find-
find-
(car (find-function-
(buffer-file-name (car (find-function-
(file-
(setq py-install-
(cond (py-install-
py-set-
eval-
load-
load(
load-
eval(
eval-
eval-last-sexp(t)
eval-
call-
Examining the source code, I see that the function py-set-load-path uses the variable py-install-
So, am I doing something wrong, or does the INSTALL instructions need a tweak mentioning the py-install-
Thanks in advance, lele.
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.0.4 |
importance: | Undecided → Medium |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
Hi,
your rationale reads plausible. Also think seeing the reason:
(py-set-load-path) looks for a function python-mode, resp. it's buffer-file at a moment,
were it isn't defined yet.
However can't reproduce the bug.
When starting from Emacs -Q to_Python- mode.el" )
(add-to-list 'load-path "MY_PATH_
and
(load-library "python-mode")
seeing
Loading python-mode...done
t
;;;;;;;;;;
Anyway, will follow your proposal,
thanks,
Andreas