[Solved] Plot module not available in Appimage

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

[Solved] Plot module not available in Appimage

Post by oliveroxtoby »

I hope I'm reporting this in the right place...

I noticed that in the weekly Appimage builds, the built-in 'Plot' module doesn't seem to be compiled. This was recently re-enabled in this commit in this pull request to take over the core functions of the external Plot workbench.

I say that it doesn't seem to be compiled because I don't see a usr/Mod/Plot directory in the Appimage, and

Code: Select all

from FreeCAD.Plot import Plot
doesn't work (it does in the daily PPA and my own compilation).

I'm not sure where to look to fix this so hoping someone could help. Thanks!

OS: Ubuntu 20.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.27319 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 67706b1)
Hash: 67706b14df32b91b948952ea2c9350948ba4d4db
Python version: 3.9.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: English/South Africa (en_ZA)
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Plot module not available in Appimage

Post by oliveroxtoby »

Hi @looo

I scratched around in the build logs that you mentioned in this unrelated post:
looo wrote: Wed Feb 02, 2022 9:59 pm Build logs are here:
https://dev.azure.com/sppedflyer/feedst ... 49ace9e213
and found the following lines:

Code: Select all

=====================================================
Matplotlib not found, Plot module won't be available.
=====================================================
and

Code: Select all

-- Matplotlib:          not found
Matplotlib is supplied in the final Appimages, but apparently isn't found during compilation (if I'm understanding correctly that this is actually the build used to produce the Appimages, of course!) Is this something you could be so kind as to look into perhaps - or could you point me in the right direction to do so? (No hurry though!)
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Plot module not available in Appimage

Post by looo »

oliveroxtoby wrote: Wed Feb 09, 2022 4:11 pm Hi @looo

I scratched around in the build logs that you mentioned in this unrelated post:
looo wrote: Wed Feb 02, 2022 9:59 pm Build logs are here:
https://dev.azure.com/sppedflyer/feedst ... 49ace9e213
and found the following lines:

Code: Select all

=====================================================
Matplotlib not found, Plot module won't be available.
=====================================================
and

Code: Select all

-- Matplotlib:          not found
Matplotlib is supplied in the final Appimages, but apparently isn't found during compilation (if I'm understanding correctly that this is actually the build used to produce the Appimages, of course!) Is this something you could be so kind as to look into perhaps - or could you point me in the right direction to do so? (No hurry though!)
I added it, but matplotlib shouldn't be a build-dependency (in my opinion).
https://github.com/looooo/freecad-feeds ... 333c2cfdc3
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Plot module not available in Appimage

Post by oliveroxtoby »

Hi @looo

Thanks for your help.
looo wrote: Thu Feb 10, 2022 9:16 am I added it, but matplotlib shouldn't be a build-dependency (in my opinion).
https://github.com/looooo/freecad-feeds ... 333c2cfdc3
True, and it seems that this wasn't the problem after all. Although the message seems to suggest otherwise, it doesn't actually block the compilation of the Plot module - just prints the message and continues.

Instead, I think the problem is that the changes made to build.sh and bld.bat in this commit are not reflected in the same files in your freecad-feedstock repository. I have issued a pull request here asking to change that.
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Plot module not available in Appimage

Post by oliveroxtoby »

oliveroxtoby wrote: Mon Feb 14, 2022 8:13 pm Instead, I think the problem is that the changes made to build.sh and bld.bat in this commit are not reflected in the same files in your freecad-feedstock repository. I have issued a pull request here asking to change that.
looo wrote: Thu Feb 10, 2022 9:16 am
Confirming that this has resolved the problem for me. Thank you!
Post Reply