[SOLVED] Compile stopped working on Arch Linux due to python 3.11 update

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
hhassey
Posts: 247
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

[SOLVED] Compile stopped working on Arch Linux due to python 3.11 update

Post by hhassey »

Hello, as of this morning Arch got an update from python 3.10 to 3.11and sure enough, that change made my compiled version of FreeCAD not to run anymore and also not to compile.

How can I tell FreeCAD to compile against python 3.11?

I am trying to find a setting under Cmake-Gui but with no luck so far.

Thanks in advance.

Code: Select all

CMake Error in src/Gui/CMakeLists.txt:
  Imported target "Shiboken2::libshiboken" includes non-existent path

    "/usr/include/python3.10"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



CMake Error in src/Gui/CMakeLists.txt:
  Imported target "Shiboken2::libshiboken" includes non-existent path

    "/usr/include/python3.10"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.
Last edited by hhassey on Fri May 05, 2023 9:38 pm, edited 1 time in total.
User avatar
naxq0
Posts: 51
Joined: Wed Apr 25, 2018 7:45 am

Re: Compile stopped working on Arch Linux due to python 3.11 update

Post by naxq0 »

How can I tell FreeCAD to compile against python 3.11?
I'm afraid that it's not as simple as that because some of the other dependencies that FreeCAD depends on have python bindings as well, so you would have to likely recompile everything that depends on python, for example boost

Maybe consider using the Appimage or flatpak

If you need to recompile FreeCAD because you're trying to play round with its codebase, I would recommend looking into docker
User avatar
hhassey
Posts: 247
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: Compile stopped working on Arch Linux due to python 3.11 update

Post by hhassey »

I was afraid of that. I compile FreeCAD because I like to see the fascinating development and I find it stable enough for professional use. I guess I will have to use the App image for now, and hope that it does not take too much time to adopt 3.11.

Thanks for the response

Humbert.
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Compile stopped working on Arch Linux due to python 3.11 update

Post by wmayer »

that change made my compiled version of FreeCAD not to run anymore and also not to compile.
In that case it's probably best to start with a clean build in a separate directory.

With git commit 1ae5590 FreeCAD is supposed to compile with Py3.11
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: Compile stopped working on Arch Linux due to python 3.11 update

Post by adrianinsaval »

My automated daily build worked without issues with 3.11: https://github.com/adrianinsaval/pacman ... 8736465157

So you either updated at a bad time when not all python packages that where rebuilt where on the repo, in which case you only need to make sure you make a full upgrade now. Or you just need to built in a clean directory not on top of your previous build.
User avatar
mfro
Posts: 666
Joined: Sat Sep 23, 2017 8:15 am

Re: Compile stopped working on Arch Linux due to python 3.11 update

Post by mfro »

When Debian testing went to 3.11, I had to do a full recompile as well, but FreeCAD now works perfectly fine with 3.11:

Code: Select all

>>> sys.version
'3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0]'
>>> 
Cheers,
Markus
User avatar
hhassey
Posts: 247
Joined: Thu Jun 04, 2015 8:01 pm
Location: Ensenada, Mexico

Re: [SOLVED] Compile stopped working on Arch Linux due to python 3.11 update

Post by hhassey »

Thanks all. I deleted my build directory, and recompiled, everything went perfect, and I have FreeCAD again!
Post Reply