Search found 20078 matches

by wmayer
Wed Mar 20, 2024 1:26 pm
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3141

Re: site.getsitepackages() incorrect inside FreeCAD

I think I have found the culprit: with Python 3.11 the way to initialize the interpreter has changed fundamentally. There is now a structure PyConfig and the functions PyConfig_InitPythonConfig and PyConfig_InitIsolatedConfig. At the beginning we used PyConfig_InitPythonConfig but command line optio...
by wmayer
Wed Mar 20, 2024 1:06 pm
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3141

Re: site.getsitepackages() incorrect inside FreeCAD

Python under FreeCAD is getting invoked with the -s option or the PYTHONNOUSERSITE environment variable which sets ENABLE_USER_SITE: False and removes the two paths in /usr/local . That prevents FC from finding and loading the opencamlib required for the 3D paths. FreeCAD doesn't pass the option -s...
by wmayer
Wed Mar 20, 2024 8:41 am
Forum: Help on using FreeCAD
Topic: Cryptic error messages
Replies: 4
Views: 265

Re: Cryptic error messages

What's your FreeCAD version and what's the version of the Curves add-on?
by wmayer
Wed Mar 20, 2024 12:37 am
Forum: Install / Compile
Topic: How to install FreeCAD on Ubuntu 22.04 with gmsh for FEM
Replies: 6
Views: 413

Re: How to install FreeCAD on Ubuntu 22.04 with gmsh for FEM

The problem with gmsh I guess is that it links to an older OCC version than FreeCAD from the PPA. Because it's not supported to have installed two different versions of OCC it's impossible to install gmsh and FreeCAD at the same time. The problem with gmsh and the AppImage or snap packages isn't tha...
by wmayer
Tue Mar 19, 2024 11:52 pm
Forum: Install / Compile
Topic: [Resolved] Unresolved external symbol __imp_PyMem and others
Replies: 8
Views: 619

Re: Unresolved external symbol __imp_PyMem and others

OK, this is the PR to blame https://github.com/FreeCAD/FreeCAD/pull/12035
This PR fixes the crash https://github.com/FreeCAD/FreeCAD/pull/13033

So, you have to fetch the latest changes from github.
by wmayer
Tue Mar 19, 2024 10:04 pm
Forum: Install / Compile
Topic: [Resolved] Unresolved external symbol __imp_PyMem and others
Replies: 8
Views: 619

Re: Unresolved external symbol __imp_PyMem and others

Then you still get this error? 'FreeCAD_d.exe' (Win32): Loaded 'C:\Windows\System32\sxs.dll'. mincore\com\oleaut32\dispatch\ups.cpp(2126)\OLEAUT32.dll!00007FF8DE09470C: (caller: 00007FF8DE0949FA) ReturnHr(1) tid(4f54) 8002801D Library not registered. 'FreeCAD_d.exe' (Win32): Loaded 'C:\Windows\Syste...
by wmayer
Tue Mar 19, 2024 9:43 pm
Forum: Developers corner
Topic: WriteSurfaceCurveMode default settings
Replies: 2
Views: 418

Re: WriteSurfaceCurveMode default settings

The ImportExportSettings.cpp is only the result of some code-refactoring. But the settings are much older. See: https://tracker.freecad.org/view.php?id=2744 and d259aa07849 To achieve what you want you only have to add this line before exporting to STEP: Part.setStaticValue("write.surfacecurve....