* elpy on Windows: No module named 'encodings'
@ 2020-11-05 10:55 c.buhtz
2020-11-05 13:40 ` Jean Louis
0 siblings, 1 reply; 3+ messages in thread
From: c.buhtz @ 2020-11-05 10:55 UTC (permalink / raw)
To: help-gnu-emacs
Hello, I try to get elpy run on Windows.
On Debian 10 I run such an elpy environment. So I know what to expect.
When editing a py-file I got the elpy-output-error
"Fatal Python error: initfsencoding: unable to load the file system
codec
ModuleNotFoundError: No module named 'encodings'"
Ok, I checked (elpy-config)
Emacs.............: 27.1
Elpy..............: Not found (Python), 1.34.0 (Emacs Lisp)
Virtualenv........: None
Interactive Python: python .
(c:/Users/Buhtzy/AppData/Local/Microsoft/WindowsApps/python.exe)
RPC virtualenv....: rpc-venv
(c:/Users/Buhtzy/AppData/Roaming/.emacs.d/elpy/rpc-venv)
Python...........: c:/WINDOWS/py.exe nil (c:/WINDOWS/py.exe)
Jedi.............: Not found
Rope.............: Not found
Autopep8.........: Not found
Yapf.............: Not found
Black............: Not found
Syntax checker....: flake8.exe (c:/Program Files
(x86)/Python37-32/Scripts/flake8.exe)
Ok, this does not looks good.
When I do "py" on a "Windows Terminal" or on a classic "Command Prompt"
a Python 3.9.0 prompt comes up. So it is there.
Python2 is not installed - but should not be relevant.
Based on the Windows-Feature list, only Python3.9 is installed - no
other Python version.
Python3.9 is installed in
"C:\Users\Buhtzy\AppData\Local\Programs\Python\Python39"
But this two folders still exists:
"c:/Program Files (x86)/Python37-32"
"c:/Program Files (x86)/Python36-32"
But they have no python binaries but a Lib and Scripts sub-folder.
It confuses me. Maye it confuses elpy, too? ;)
What can I do next?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: elpy on Windows: No module named 'encodings'
2020-11-05 10:55 elpy on Windows: No module named 'encodings' c.buhtz
@ 2020-11-05 13:40 ` Jean Louis
2020-11-05 15:54 ` c.buhtz
0 siblings, 1 reply; 3+ messages in thread
From: Jean Louis @ 2020-11-05 13:40 UTC (permalink / raw)
To: help-gnu-emacs
* c.buhtz@posteo.jp <c.buhtz@posteo.jp> [2020-11-05 13:56]:
> Hello, I try to get elpy run on Windows.
> On Debian 10 I run such an elpy environment. So I know what to expect.
>
> When editing a py-file I got the elpy-output-error
> "Fatal Python error: initfsencoding: unable to load the file system codec
> ModuleNotFoundError: No module named 'encodings'"
>
> Ok, I checked (elpy-config)
>
> Emacs.............: 27.1
> Elpy..............: Not found (Python), 1.34.0 (Emacs Lisp)
> Virtualenv........: None
> Interactive Python: python .
> (c:/Users/Buhtzy/AppData/Local/Microsoft/WindowsApps/python.exe)
> RPC virtualenv....: rpc-venv
> (c:/Users/Buhtzy/AppData/Roaming/.emacs.d/elpy/rpc-venv)
> Python...........: c:/WINDOWS/py.exe nil (c:/WINDOWS/py.exe)
> Jedi.............: Not found
> Rope.............: Not found
> Autopep8.........: Not found
> Yapf.............: Not found
> Black............: Not found
> Syntax checker....: flake8.exe (c:/Program Files
> (x86)/Python37-32/Scripts/flake8.exe)
I guess you need all those Python packages for elpy to work and how
you load them on Windows I do not know. Normally those packages are in
OS distributions' packages. But they can be also installed with:
$ pip install NAME
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: elpy on Windows: No module named 'encodings'
2020-11-05 13:40 ` Jean Louis
@ 2020-11-05 15:54 ` c.buhtz
0 siblings, 0 replies; 3+ messages in thread
From: c.buhtz @ 2020-11-05 15:54 UTC (permalink / raw)
To: Jean Louis; +Cc: help-gnu-emacs, help-gnu-emacs
Hi Louis,
thanks for your reply.
Am 05.11.2020 14:40 schrieb Jean Louis:
> I guess you need all those Python packages for elpy to work
They are all still installed. I checked it via 'import encodings' etc in
a python promt.
I still reainstalled Python3.9 and verified that it is in PATH (after
windows restart). It is.
The elpy-config output and the import encodings error is the same.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-05 15:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-05 10:55 elpy on Windows: No module named 'encodings' c.buhtz
2020-11-05 13:40 ` Jean Louis
2020-11-05 15:54 ` c.buhtz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).