Search found 2196 matches

by freman
Thu Mar 21, 2024 12:16 pm
Forum: Path/CAM
Topic: master: Where is 3D-Surface? Missing OCL? [Fixed]
Replies: 37
Views: 2738

Re: master: Where is 3D-Surface? Missing OCL?

This issue was due to a change in Python initialisation between 3.10 and 3.11 , astutely fixed by wmayer in current master branch.

viewtopic.php?t=86060&start=50#p748379
by freman
Thu Mar 21, 2024 12:14 pm
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3122

Re: [Fixed] site.getsitepackages() incorrect inside FreeCAD

Thanks, I've added a note in case anyone else hits this .
by freman
Thu Mar 21, 2024 7:50 am
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3122

Re: [Fixed] site.getsitepackages() incorrect inside FreeCAD

I was going to add a note to the build instructions but I can't even find where it is now. Can someone point me to it ?
by freman
Wed Mar 20, 2024 8:19 pm
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3122

Re: [Fixed] site.getsitepackages() incorrect inside FreeCAD

Ah, hang on. I just checked the build process and it looks like it did not complete due to a change in qt5 earlier today. I've just run make clean. Back in 3h when I get a new clean build. ...... OK, I can confirm this patch fixes the path issue on my fedora38 / python 3.11 system . :) Many thanks t...
by freman
Wed Mar 20, 2024 6:45 pm
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3122

Re: [Fixed] site.getsitepackages() incorrect inside FreeCAD

Yes, I saw that. Is that any different from what I added to my local master and which did not seem to fix the problem?
viewtopic.php?p=748385#p748345
by freman
Wed Mar 20, 2024 4:49 pm
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3122

Re: site.getsitepackages() incorrect inside FreeCAD

You must switch to your lib directory and then call ../bin/FreeCAD. This way FreeCADGui.so is already in the search path. Thanks, I get it now. CLI >>> FreeCADGui.showMainWindow() >>> FreeCADGui.exec_loop() FC python console: >>> import site >>> site.getsitepackages() ['/usr/local/lib64/python3.11/...
by freman
Wed Mar 20, 2024 4:41 pm
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3122

Re: site.getsitepackages() incorrect inside FreeCAD

I just edited Interpreter.cpp void initInterpreter(int argc, char* argv[]) { PyStatus status; PyConfig config; PyConfig_InitIsolatedConfig(&config); config.isolated = 0; config.user_site_directory = 1; // ### fix missing /usr/local/lib* paths ran make , but it did not seem to fix it. FreeCAD pyt...
by freman
Wed Mar 20, 2024 4:15 pm
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3122

Re: site.getsitepackages() incorrect inside FreeCAD

Two things you can test: As said above try to use FreeCAD as Python module. This won't call the init() function because the interpreter is already initialized. So, try these lines: import FreeCADGui FreeCADGui.showMainWindow() FreeCADGui.exec_loop() Then in the Python console of FreeCAD enter: impo...
by freman
Wed Mar 20, 2024 2:05 pm
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3122

Re: site.getsitepackages() incorrect inside FreeCAD

Ah, many thanks, it looks like we are finally getting to the bottom of this.

Can you give me exactly what I need to do test this on my Fedora38 system. Does this need a conditional python version check if they have redefined basic behaviour?

Thx.
by freman
Wed Mar 20, 2024 7:20 am
Forum: Install / Compile
Topic: [Fixed] site.getsitepackages() incorrect inside FreeCAD
Replies: 62
Views: 3122

Re: site.getsitepackages() incorrect inside FreeCAD

Thanks. I guess you are referring to this in the output from site.py USER_BASE: '/root/.local' (doesn't exist) USER_SITE: '/root/.local/lib/python3.11/site-packages' (doesn't exist) That is because I ran site.py from a root shell. If I run it as user it substitutes the /home/user equivalent. The key...