Search found 20037 matches

by wmayer
Mon Mar 18, 2024 8:35 pm
Forum: Install / Compile
Topic: Segmentation fault after successful build - Debian 12 Bookworm
Replies: 2
Views: 145

Re: Segmentation fault after successful build - Debian 12 Bookworm

I have already prepared a new PR to fix the crash. As soon as the build has finished I will merge it. It's just a matter of one or two hours...
by wmayer
Sun Mar 17, 2024 11:04 am
Forum: Help on using FreeCAD
Topic: STL exports from FreeCad 0.21.2 are exploded when imported into PrusaSlicer
Replies: 11
Views: 864

Re: STL exports from FreeCad 0.21.2 are exploded when imported into PrusaSlicer

There was a regression in v0.21.2 that has been fixed recently. With the next bug-fix release for 0.21 the bug will be gone.
by wmayer
Sat Mar 16, 2024 10:55 am
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1962

Re: site.getsitepackages() incorrect inside FreeCAD

Against my personal preferences, I have been cajoaled into using pip install a few times, possibly running this as root. Could one of these occurances have triggered ENABLE_USER_SITE being 0 ? Yes, this is possible. But don't ask me where and why. At least pip bypasses things provided by your distr...
by wmayer
Fri Mar 15, 2024 3:41 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1962

Re: site.getsitepackages() incorrect inside FreeCAD

According to the Python documentation the user site-packages directory won't be added if Python was started with the option "-s" or if the environment variable PYTHONNOUSERSITE is set. At least on my system setting any of them doesn't result in different behaviour. EDIT: You should additio...
by wmayer
Fri Mar 15, 2024 3:32 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1962

Re: site.getsitepackages() incorrect inside FreeCAD

What else you can try is:

Code: Select all

import sys
sys.flags.no_user_site = 0
import site
site.getsitepackges()
If this still fails then try:

Code: Select all

import sys
sys.flags.no_user_site = 0
import site
import importlib
importlib.reload(site)
site.getsitepackges()
by wmayer
Fri Mar 15, 2024 2:20 pm
Forum: Python scripting and macros
Topic: Minimum/Maximum supported python versions
Replies: 7
Views: 440

Re: Minimum/Maximum supported python versions

So based on that, I assume that coding for 3.6 is a good compromise
Considering Py3.6 as the very minimum should be fine.
by wmayer
Fri Mar 15, 2024 1:24 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1962

Re: site.getsitepackages() incorrect inside FreeCAD

Like some other additional WB ? Nah, that's rather unlikely. I guess it must be done by a Python package FreeCAD loads at runtime. The most likely is that the package is part of your Python installation as this will best explain the different behaviour between our platforms. The next step is to sea...
by wmayer
Fri Mar 15, 2024 10:57 am
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1962

Re: site.getsitepackages() incorrect inside FreeCAD

OK. This causes all the trouble: >>> import sys >>> sys.flags.no_user_site 1 The value should be 0. Now to double-check please again test the value of sys.flags.no_user_site in a Python shell. I assume it to be 0, too. So, the question is how does it happen that its value is changed when running it ...