← Back to team overview

kicad-developers team mailing list archive

Re: Fatal Python error: failed to get the Python codec of the filesystem encoding


Please see https://dev-docs.kicad.org/en/build/windows-msvc/ at the bottom,
the "running and debugging" section.

Now that Python is required, you must tell KiCad how to find Python when
running from Visual Studio.

The options are to set the environment variables as explained on that page,
or else to copy Python into the appropriate relative path to the place
where you are having Visual Studio "install" to.


On Wed, Jun 23, 2021 at 9:41 AM Markus Bonk <markus_bonk@xxxxxxxxxxxxxxx>

> Hi
> I have built pcbnew.exe x64-Debug with vs2019 16.10.2 KiCAD commit
> 00b4134eb827 + some changes I am doing and am getting the above message on
> startup.
> I have no idea what to do to resolve the issue and no idea what code is
> causing it: no exceptions thrown to help debug.
> Typing in Python in cmd results in.
> Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64
> bit (AMD64)] on win32
> Can anyone point me in the right direction?
> -Markus
> Markus Bonk
> Senior Software Engineer
> 3Dconnexion GmbH
> Clarita-Bernhard-Str. 18
> 81249 München
> Germany
> markus_bonk@xxxxxxxxxxxxxxx
> www.3dconnexion.com
> Geschäftsführer: Antonio Pascucci
> Sitz der Gesellschaft: München
> Registergericht: München HRB 99232
> This email and any files transmitted with are from 3Dconnexion GmbH. The
> contents of this email and any attachments are confidential to the intended
> recipient. They may not be disclosed to or used by or copied in any way by
> anyone other than the intended recipient. If this email is received in
> error, please contact 3Dconnexion GmbH by calling +49 89 8974542-0 and then
> delete it. Please note that neither 3Dconnexion GmbH nor the sender accepts
> any responsibility for viruses and it is your responsibility to scan or
> otherwise check this email and any attachments. Any opinion expressed in
> this email are those of the individual and not necessarily those of
> 3Dconnexion GmbH.
> 3Dconnexion GmbH processes and stores for commercial purposes your
> personal data, collected upon your consent, in accordance with its privacy
> policy available at https://www.3dconnexion.eu/privacy.html, which has
> been drafted in accordance with Regulation (EU) no. 679/2016 and all
> applicable local data protection laws and regulations of the countries
> where the company operates. To revoke your consent or exercise all your
> rights with regards to personal data, please contact us at
> privacy@xxxxxxxxxxxxxxx.
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

Follow ups