I have been fighting with python 3.12 too , the solution I found is to
navigate to the vcpkg registry dir , reset it hard to an earlier commit in
which python 3.11 is its default .

Take a look at my kicad-win-builder mirror
<https://github.com/Huaqiu-Electronics/kicad-win-builder.git> on Github in
which the older vcpkg  (3 months ago)
<https://github.com/Huaqiu-Electronics/vcpkg.git>  is referenced. It built
the KiCad 8.0.5 successfully few days ago.

On Mon, Oct 28, 2024 at 12:04 AM Nicholas Burns <
[email protected]> wrote:

> I had a system install of Python 3.7-odd installed I believe, but have
> uninstalled following the error. I then restarted the computer, went back
> into Visual Studio, went to Build->Delete Cache and Reconfigure, and ran
> into the same problem. Should I just wipe the KiCAD and vcpkg folders and
> try again from scratch because something has been polluted by the existing
> installation? I was holding off doing that due to the time it takes to
> compile all the dependencies!
>
> On Sunday 27 October 2024 at 15:50:02 UTC [email protected] wrote:
>
>> It kind of sounds you have a broken build environment already somehow.
>> That error is expected if python 3.12 is used but we have python 3.11
>> specified in our vcpkg config and its maintained in our vcpkg registry
>> layer.
>>
>> Do you have a system install of python 3.12? I have fought for many years
>> trying to get it ignored from the vcpkg build but python is literally
>> cancer and has numerous backdoors detection methods to keep picking up the
>> system install.
>>
>>
>> On Sun, Oct 27, 2024 at 11:47 AM Nicholas Burns <[email protected]>
>> wrote:
>>
>>> Hello. I've been trying to set up a build environment for KiCAD under
>>> Windows, following the visual studio build guide. I've avoided VS like the
>>> plague until now - but for this project I was willing to dip my toes!
>>>
>>> I've run into a python related problem during the CMake configuration
>>> phase. It collects and builds various packages through vcpkg, as expected,
>>> but trips up on wxpython. Investigating the log file I'm pointed to
>>> (D:\External_Gitlab_Projects\vcpkg\buildtrees\wxpython\get-pip-x64-windows-err.log)
>>> I find on the last line, "ModuleNotFoundError: No module named 'distutils'"
>>>
>>> I've done some looking around, and the most hopeful solution I found was
>>> to uninstall all installations of Python and try again... but
>>> unfortunately, this has not solved my problem.
>>>
>>> I have to admit - I'm stuck! Probably something simple because I'm not
>>> familiar with the toolchain. Any help would be fantastic though : )
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "KiCad Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion visit
>>> https://groups.google.com/a/kicad.org/d/msgid/devlist/e2c3bdbe-b5d7-44be-893f-ea292c8add73n%40kicad.org
>>> <https://groups.google.com/a/kicad.org/d/msgid/devlist/e2c3bdbe-b5d7-44be-893f-ea292c8add73n%40kicad.org?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "KiCad Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/a/kicad.org/d/msgid/devlist/6de8b862-1bc9-4e50-990b-2f3f652b5e25n%40kicad.org
> <https://groups.google.com/a/kicad.org/d/msgid/devlist/6de8b862-1bc9-4e50-990b-2f3f652b5e25n%40kicad.org?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"KiCad Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/kicad.org/d/msgid/devlist/CAJgxgPYF4AQCVXC74XXQR2wR6gUuCMBoub6m1ZAJFf6KHqa3VQ%40mail.gmail.com.

Reply via email to