From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: c.buhtz@posteo.jp Newsgroups: gmane.emacs.help Subject: elpy on Windows: No module named 'encodings' Date: Thu, 05 Nov 2020 11:55:48 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27096"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Posteo Webmail To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 05 11:56:32 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kacwS-0006xB-1g for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 11:56:32 +0100 Original-Received: from localhost ([::1]:50300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kacwQ-0004dP-0o for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 05 Nov 2020 05:56:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kacvt-0004ci-M9 for help-gnu-emacs@gnu.org; Thu, 05 Nov 2020 05:55:58 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:44947) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kacvp-0005DV-SX for help-gnu-emacs@gnu.org; Thu, 05 Nov 2020 05:55:55 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3B4FE16005F for ; Thu, 5 Nov 2020 11:55:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.jp; s=2017; t=1604573749; bh=4jAfI76eD9a48k0fn7SY2ZxlPV1CyzevKfuU3nUTIOc=; h=Date:From:To:Subject:From; b=qmSkUyuSs+lG/eenSORSBroyAACURAkgKwqXEDyrMiibzrESp8XOTD4qQLSNLdhif 5GJVVCTiq7ezO4HowHIgQuCDbu3dVYAMVzqgeFfUXlP2rKefB3bGXOSrFO+hEEFX3K 45omd8EaCZDPXNSI03F1nK1lYshsNX5H57mezPtyLOP8KHYgk+Su2esPljJ/uiIxx2 bG0d5dPmH4D06PaMfgyYgERQqSvpKsGq1hCWCYEc6Y8eBy7urjs6mHehGvddXDpBW8 wYdNON08mq+ZRJtIGuC/WDMcp2Knf/OafTe0x17xiPbFL88uLMowI6PmXPUwNhLbas lBgD93C2gVAMQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CRgRS63czz6tm6 for ; Thu, 5 Nov 2020 11:55:48 +0100 (CET) Mail-Followup-To: help-gnu-emacs@gnu.org X-Sender: c.buhtz@posteo.jp Received-SPF: pass client-ip=185.67.36.65; envelope-from=c.buhtz@posteo.jp; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/05 05:55:49 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125008 Archived-At: 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?