GNU bug report logs -
#21656
25.0.50; Slashes, Windows, and IPython
Previous Next
Reported by: Matthew Alhonte <mattalhonte <at> gmail.com>
Date: Fri, 9 Oct 2015 19:51:01 UTC
Severity: minor
Found in version 25.0.50
Fixed in version 26.1
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
close 21656 26.1
quit
Matthew Alhonte <mattalhonte <at> gmail.com> writes:
> Hello,
>
> Python.el has this text:
>
> " ;; Running IPython on Windows needs more tweaking. The way you
> should
> ;; set `python-shell-interpreter' and `python-shell-interpreter-args'
> ;; is as follows (of course you need to modify the paths according to
> ;; your system):
>
> ;; (setq python-shell-interpreter "C:\\Python27\\python.exe"
> ;; python-shell-interpreter-args
> ;; "-i C:\\Python27\\Scripts\\ipython-script.py")
> "
>
> I uncommented the code, but got an error saying " error: Non-hex
> digit used for Unicode escape."
Presumably you forgot to double the backslashes like in the example,
e.g., something like
(defcustom python-shell-interpreter
"C:\Users\\Matt\\Anaconda\\python.exe"...
^^
> (defcustom python-shell-interpreter "C:/Users/Matt/Anaconda/
> python.exe"
> "Default Python interpreter for shell."
> :type 'string
> :group 'python)
>
> And it worked! Maybe change the warning in python.el?
I changed the text in emacs-26 to forward slashes to reduce the chances
of confusion.
[1: afb04f7f3c]: 2017-12-03 10:01:12 -0500
Use forward slashes for python w32 config example (Bug#21656)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=afb04f7f3cb75c7c744d8fa8cd1cd70ad1755e6f
This bug report was last modified 7 years and 221 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.