Is it possible to import the python freecad library from an appimage?

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!
Post Reply
User avatar
dcapeletti
Posts: 403
Joined: Wed Jul 23, 2014 2:27 pm

Is it possible to import the python freecad library from an appimage?

Post by dcapeletti » Sat Nov 30, 2019 10:54 am

Hi, I usually have updated freecad on my system through an appimage, but I don't have it installed on my debian gnu linux system.

I would like to know if it is possible to import the freecad library in the python console of my system to test other applications that I am building without having to install freecad on my system.

Thanks

User avatar
looo
Posts: 3017
Joined: Mon Nov 11, 2013 5:29 pm

Re: Is it possible to import the python freecad library from an appimage?

Post by looo » Sat Nov 30, 2019 1:55 pm

Before anyone else posts some hacks to do so: no the appimage is not designed for the usage within an other environment.

But the appimage currently is created with conda. So creating an environment with conda you should be able to install any additional library into the same env as freecad is installed (and also use freecad from python directly)
You can also create an appimage (locally) with additional libraries if you want to distribute a 3rd party module/workbench ... .

For further information please have a look at this script:

https://github.com/FreeCAD/FreeCAD-AppI ... v.sh#L2L10

If you create an environment with the highlighted command you will get all the libraries that are also installed in the appimage.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
minimalistic blog: https://looooo.github.io/mini-blog/

Post Reply