Search found 2186 matches

by freman
Sun Mar 17, 2024 7:51 am
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

Well this is looking like an intractable mess. Python is circus, I guess that is what inspired the name. It seems to be evolving into a distro within a distro with it's own package management system. I guess I'll just have to resort to some local hacks with symlinks or similar to get my 3D paths back.
by freman
Sat Mar 16, 2024 6:45 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

Thanks. Jumping in on p5 you seem to have missed a lot of what has been covered already.
by freman
Sat Mar 16, 2024 3:37 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

Code: Select all

Loading Assembly workbench...
3.598535 <asm3.main> init_gui.py(14): no solver backend found
Why is asm3 in there ? Why is it autoloading?
BTW the backend error is expected I deliberaly pulled in clearing up pip stuff.
by freman
Sat Mar 16, 2024 1:01 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

I've removed all add-ons, Edit Prefs have eliminated all WBs except sketcher . Restart FC, no change.


sys.flags.no_user_site = 0

This seems to be an immutable recognition that the current python executable was called with -s . Should I be looking for something starting a new python command ?
by freman
Sat Mar 16, 2024 12:22 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

Code: Select all

pip list | wc -l
103
Most of that seems to be the distro packet manager's doing. I had a couple for freecad plot aircraft WB, and py_slvs for assy3.

Looks like a bit of a Gordian knot.
by freman
Sat Mar 16, 2024 9:02 am
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

If I start the command line python shell with either of those conditions it does have the expected results on these variables. wmeyer reported it did not make any difference in his distro ( not sure what he's running ). or maybe altering the sys.path deleting the user-site directory from it could be...
by freman
Sat Mar 16, 2024 8:39 am
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

Since this is a readonly attribute, it is presumably not what I should be searching for the code setting it. Allegedly this is directly reporting python command line option -s , so not writeable. Presumably that means it cannot be overwritten internally by any python modules either. https://www.ense...
by freman
Fri Mar 15, 2024 7:41 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

Code: Select all

>>> sys.flags.no_user_site
1
Well at least we have found the direct cause of the path truncation. Now to find the cause of the cause :?
by freman
Fri Mar 15, 2024 3:45 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

Code: Select all

sys.flags.no_user_site = 0
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: readonly attribute
EDIT:
You should additionally search in $HOME/.local/lib
Zip.
by freman
Fri Mar 15, 2024 3:10 pm
Forum: Install / Compile
Topic: site.getsitepackages() incorrect inside FreeCAD
Replies: 43
Views: 1961

Re: site.getsitepackages() incorrect inside FreeCAD

OK, I don't see anything setting it: $cd /usr/lib64/python3.11 $ grep -nR "no_user_site" site.py:252: if sys.flags.no_user_site: grep: site-packages/ocl.so: No such file or directory grep: __pycache__/site.cpython-311.pyc: binary file matches grep: __pycache__/site.cpython-311.opt-2.pyc: b...