Skip to content

On Core2Duo CPU, the default numpy (via flatpak FreeCAD) requires X86_V2 to run, but downgrading to numpy<2.4.0 helps for now #20

Description

@Hukkinen

Hey,

Just documenting the workaround here.

THE ERROR MESSAGE

$ Initializing Assembly4.1 workbench (0.61.0-0.2) ........................ done.
Traceback (most recent call last):
File "/app/freecad/Mod/PartDesign/InitGui.py", line 45, in Initialize
from PartDesign.WizardShaft import WizardShaft
File "/app/freecad/Mod/PartDesign/WizardShaft/WizardShaft.py", line 27, in
from .Shaft import Shaft
File "/app/freecad/Mod/PartDesign/WizardShaft/Shaft.py", line 24, in
from .SegmentFunction import SegmentFunction, IntervalFunction, StressFunction, TranslationFunction
File "/app/freecad/Mod/PartDesign/WizardShaft/SegmentFunction.py", line 24, in
import numpy as np
File "/app/lib/python3.13/site-packages/numpy/init.py", line 112, in
from numpy.config import show_config
File "/app/lib/python3.13/site-packages/numpy/config.py", line 4, in
from numpy._core._multiarray_umath import (
...<3 lines>...
)
File "/app/lib/python3.13/site-packages/numpy/_core/init.py", line 24, in
from . import multiarray
File "/app/lib/python3.13/site-packages/numpy/_core/multiarray.py", line 11, in
from . import _multiarray_umath, overrides
RuntimeError: NumPy was built with baseline optimizations:
(X86_V2) but your machine doesn't support:
(X86_V2).

CPU model name : Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz

THE "FIX" (via aimode):

$ flatpak run --command=pip org.freecad.FreeCAD install --user --upgrade "numpy<2.4.0"
Collecting numpy<2.4.0
Downloading numpy-2.3.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.metadata (62 kB)
Downloading numpy-2.3.5-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (16.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.6/16.6 MB 15.7 MB/s 0:00:01
Installing collected packages: numpy
WARNING: The scripts f2py and numpy-config are installed in '/var/data/python/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-2.3.5

[notice] A new release of pip is available: 26.0.1 -> 26.2.1
[notice] To update, run: python -m pip install --upgrade pip

ERROR RESOLVED:

$ flatpak run --branch=stable org.freecad.FreeCAD
FreeCAD 1.1.3, Libs: 1.1.3R44987 (Git)
(C) 2001-2011 FreeCAD contributors
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.

Initializing Assembly4.1 workbench (0.61.0-0.2) ........................ done.

--
BR,

Janne

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions