Plugin Loader

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Plugin Loader

Post by triplus »

I was wondering if using something like GitPython would make sense here? Therefore the updated database would be GitHub repository and macros, stylesheets, modules... would be "installed" to appropriate (local) user folders (Macro folder, Gui folder, Mod folder) by issuing git clone/git pull requests? Meta data repository could be hosted on GitHub for now and it would be nice if some additional information and maybe to show additional image would be supported directly in Plugin Loader.

I read the discussion:

viewtopic.php?f=21&t=13226

As for supporting "dropbox, website blog/forum entries" as software sources and trying to solve dependencies of installed software with Plugin Loader... To me it sounds like a lot of work but not necessary a lot of additional benefits.
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Plugin Loader

Post by microelly2 »

Some "technical" users will not use git buit only run CAD, so I made a version without the fine git support but of course having a switch that detects an installed git client and uses the power of git pull will improve performance espacially for large addons like the freecad library and cadquery.
I will think about how to add git components as "plugins" too.
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Plugin Loader

Post by microelly2 »

I have started a branch https://github.com/microelly2/freecad-p ... /localdirs
which will only work inside UserAppData (~/.FreeCAD on ubuntu)

Next steps:
rework pluginloaderconfig.yaml
automatic macro-menubar generation
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Plugin Loader

Post by triplus »

Sounds good.
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Plugin Loader

Post by cox »

That is good news. :)
Need help? Feel free to ask, but please read the guidelines first
serviteur
Posts: 69
Joined: Thu Nov 13, 2014 5:54 pm

Re: Plugin Loader

Post by serviteur »

Hello microelly2,

I have problem with the Plugin Loader.

When I Copy and paste installer.py into the FreeCAD python console window Freecad doesn't work.

download/file.php?mode=view&id=23306

Linux note

I install yaml

Code: Select all

 sudo apt-get install python-yaml
I created a directory: /usr/lib/freecad/Mod/plugins/

and

Code: Select all

 sudo chmod a+rw /usr/lib/freecad/Mod/plugins/
    sudo chmod a+rw /usr/lib/freecad/Mod/
download/file.php?mode=view&id=23305
download/file.php?mode=view&id=23304

How to solved it?




OS: Ubuntu 16.04 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6703 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 2ce5c8d2e3020d05005ed71f710e09e9aa561f40
Python version: 2.7.11+
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Attachments
Capture_plugin_loader.png
Capture_plugin_loader.png (10.9 KiB) Viewed 3916 times
Capture_usr_lib_freecad_Mod_plugins.png
Capture_usr_lib_freecad_Mod_plugins.png (25.67 KiB) Viewed 3917 times
Capture_usr_lib_freecad_Mod.png
Capture_usr_lib_freecad_Mod.png (26.91 KiB) Viewed 3917 times
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Plugin Loader

Post by microelly2 »

I have changed the installation directory to the users home:
It's now

$HOME/.FreeCAD/Mod/plugins

Move the plugins folder to this and it should work

EDIT: You have to use the localdirs branch:

https://github.com/microelly2/freecad-p ... /localdirs
serviteur
Posts: 69
Joined: Thu Nov 13, 2014 5:54 pm

Re: Plugin Loader

Post by serviteur »

OK; but a don't have /Mod in

Code: Select all

/home/serviteur/.FreeCAD

How to restore rights directory /usr/lib/freecad/Mod/plugins and /usr/lib/freecad/Mod/ after the command?

Code: Select all

sudo chmod a+rw /usr/lib/freecad/Mod/plugins/

Code: Select all

 sudo chmod a+rw /usr/lib/freecad/Mod/
Attachments
Capture_freecad.png
Capture_freecad.png (7.42 KiB) Viewed 3907 times
serviteur
Posts: 69
Joined: Thu Nov 13, 2014 5:54 pm

Re: Plugin Loader

Post by serviteur »

I created /Mod and I work now.
Attachments
Capture_pluginManager.png
Capture_pluginManager.png (35.4 KiB) Viewed 3899 times
Capture_Mod.png
Capture_Mod.png (8.82 KiB) Viewed 3899 times
cement_head
Posts: 1
Joined: Mon Apr 10, 2017 8:55 pm

Re: Plugin Loader

Post by cement_head »

Okay, got this fixed now on Ubuntu. Can you please change the documentation on GitHub and the PluginLoader FreeCAD page?

Thanks,
Andor
Post Reply