FreeCAD and Raspberry Pi 4

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Post by ToniGil »

Hi all,

I finally get my FreeCAD 0.18.3 running on Raspi 4.

When I try to open scenario "Part Design" comes an error message: "No module named PartDesignGui". All the others work.

Is there a way to include it?

Thanks in advance.
Toni Gil.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FreeCAD and Raspberry Pi 4

Post by wmayer »

When FreeCAD is running then activate its Python console if not yet active via View -> Panels -> Python console

Then enter

Code: Select all

import PartDesignGui
You should see an error message now with some more details about its failure.
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Post by ToniGil »

wmayer wrote: Thu Dec 12, 2019 11:53 am When FreeCAD is running then activate its Python console if not yet active via View -> Panels -> Python console

Then enter

Code: Select all

import PartDesignGui
You should see an error message now with some more details about its failure.
This is the error, I paste all info at Python Console:

Python 2.7.16 (default, Apr 6 2019, 01:42:57)
[GCC 8.2.0] on linux2
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> import PartDesignGui
Traceback (most recent call last):
File "<input>", line 1, in <module>
ImportError: No module named PartDesignGui
>>>
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FreeCAD and Raspberry Pi 4

Post by wmayer »

When you look at the build directory then is there no file PartDesignGui.so? What about the file _PartDesign.so?
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Post by ToniGil »

Yes, I found the second one "_PartDesign.so"
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: FreeCAD and Raspberry Pi 4

Post by wmayer »

And PartDesignGui.so? Is it there or not? If not you should open a terminal and cd to your build directory. Enter make PartDesignGui
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Post by ToniGil »

I understand this part of the conversation is not for this forun (since FreeCad was installed). Maybe it should be for a "Basic Linux knowledge" forum so thank you very much for your help.

It worked to make the modul and I could import in Python console on FreeCAD. It all works.

Thanks again.
Toni Gil.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD and Raspberry Pi 4

Post by sgrogan »

ToniGil wrote: Thu Dec 12, 2019 5:25 pm I understand this part of the conversation is not for this forun (since FreeCad was installed). Maybe it should be for a "Basic Linux knowledge" forum so thank you very much for your help.
The question persists "Why didn't FreeCADGui not build?"

Can you check CMakeCache for BUILD_GUI:BOOL=ON?
"fight the good fight"
ToniGil
Posts: 11
Joined: Wed Dec 11, 2019 8:36 am

Re: FreeCAD and Raspberry Pi 4

Post by ToniGil »

Yes, it's "ON"

Feel free to ask whatever you need to know about this question. I attach CMakeOutput.log as it could help.

Thanks and regards,
Toni Gil.
Attachments
CMakeOutput.log
(62.52 KiB) Downloaded 65 times
User avatar
-alex-
Veteran
Posts: 1856
Joined: Wed Feb 13, 2019 9:42 pm
Location: France

Re: FreeCAD and Raspberry Pi 4

Post by -alex- »

@ ToniGil, maybe it's not relevant, but....what about your RPI4 model? 1Gb? 2Gb? 4Gb?
The make -j4 command involves more than 2Gb of RAM consumption sometimes while compiling.
So, if you have a 1 or 2Gb model you maybe should compile with make -j2 or make -j3 to avoid potential compiling errors?...
Do you remember some warning messages during compiling ?
Post Reply