Package Details: freecad-git 0.22.0.35039.ge937cc1efc-1

Git Clone URL: https://aur.archlinux.org/freecad-git.git (read-only, click to copy)
Package Base: freecad-git
Description: A general purpose 3D CAD modeler - git checkout
Upstream URL: https://www.freecad.org/
Licenses: LGPL
Conflicts: freecad, freecad-appimage, freecad-appimage-git
Provides: freecad
Submitter: gborzi
Maintainer: greyltc (adrianinsaval)
Last Packager: adrianinsaval
Votes: 104
Popularity: 0.99
First Submitted: 2012-03-03 13:46 (UTC)
Last Updated: 2023-11-14 18:37 (UTC)

Pinned Comments

adrianinsaval commented on 2023-03-12 14:50 (UTC)

If the check fails there is little I can do about it as it most likely needs to be fixed upstream, in such cases report those upstream (maybe wait a day or two as sometimes it's quickly solved upstream) or skip the check with makepkg --nocheck if you don't care about the functionality that is being reported as failing in the check.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 .. 56 Next › Last »

adrianinsaval commented on 2022-05-18 12:23 (UTC)

thanks for the welcome! :) importing freecad itself was working but some of the modules were not available from python out of the box, drmacro was having trouble to import PartDesign specifically, there was a recent change regarding the whole site-packages situation so that might have broken stuff. With my changes the modules are available out of the box, no hacks required, I'll push the changes later today once I'm home since I need to setup my ssh key here.

greyltc commented on 2022-05-18 07:53 (UTC)

Hey adrianinsaval, happy to add you as a co-maintiner! I'd love to see you get rid of some of my hacks here :-) My goals have been to of course make sure all the features of this freecad work correctly, but also to ensure that its python modules can be imported from anywhere without any python search path manipulation. Seems like something in freecad must have (hopefully) changed recently because everything used to be working correctly with the hacks I had. Would be great if they're not needed any more.

adrianinsaval commented on 2022-05-17 23:05 (UTC) (edited on 2022-05-17 23:06 (UTC) by adrianinsaval)

@greyltc all the hacks in the PKGBUILD to get it to work on python were problematic and it took me some time to figure out how to get it to work, here https://github.com/adrianinsaval/freecad-git-AUR a PKGBUILD that works without adding potentially problematic env variables or links, explicitly setting the full path for CMAKE_INSTALL_LIBDIR was the main needed change because that is what is used to set the default value of PATH_TO_FREECAD_LIBDIR at build time in the freecad init.py script. I changed it to be /usr/lib/freecad/lib to be FHS compliant. Please merge into this repo or if you're ok with it you can add me as another maintainer for this package, I can't promise I'll be making this work all the time but I can give it a go whenever needed and I'm very active in the freecad forum

drmacro commented on 2022-05-12 12:37 (UTC)

Further experimentation shows that the AUR script leave symlinks in /usr/lib/python3.10/site-packages for most of the FreeCAD modules.

The symlinks point to /usr/lib where most of the FreeCAD modules have been duplicated. (They also exist in /usr/lib/freecad.)

But, PartDesign is not similarly symlinked. In addition it is not duplicated in /usr/lib nor is it a .so module, it uses the Python ini.py resident in /usr/lib/freecad/Mod/PartDesign directory.

It would apear the symlink setup done by AUR is lacking a symlink from to /usr/lib/python3.10/site-packages to /usr/lib/freecad/Mod/PartDesign

Should the freecad modules be duplicated in multiple places? Is the symlink setup the right way for this to be handled? At minimum the symlink for PartDesign directory needs to be added?

drmacro commented on 2022-05-10 15:22 (UTC) (edited on 2022-05-10 15:25 (UTC) by drmacro)

More research and experimentation.

Basically the AUR install leave Python with no way to find PartDesign/init.py because it is just not resident in any of the directories where Python searches.

PartDesign/__init__.py does exist in /usr/lib/freecad/Mod

So, the following script allows Blender/sverchok to work with FreeCAD PartDesign objects:

PYTHONPATH=/usr/lib/freecad/Mod
export PYTHONPATH
blender

drmacro commented on 2022-05-06 14:40 (UTC)

It appears that the AUR script ends up with parts of freecad in different palces. /usr/lib/python3.10/site-packages/ /usr/share/freecad /usr/lib/freecad

Apps trying to use the freecad api fail to find PartDesign since the system is looking in /usr/lib/python3.10/site-packages/ but PartDesign is not installed there.

Normally the PartDesign directory contains init.py. There is no PartDesign directory in /usr/lib/python3.10/site-packages/ But, _PartDesign and init.py have been deposited there. Attempting to 'import PartDesign' fails the Python mechanism for loading a directory module.

drmacro commented on 2022-05-02 13:34 (UTC) (edited on 2022-05-03 14:04 (UTC) by drmacro)

Not sure, but it is possible that the resulting file structure is not quite right. When using the FreeCAD API it appears to not find PartDesign.

See this thread where I attempt to trouble shoot with wmayer: https://forum.freecadweb.org/viewtopic.php?f=22&t=68354&start=10

Edit: tried this on a different PC with Manjaro. It does appear that the file locations are not set up correctly for API use outside FreeCAD.

adrianinsaval commented on 2022-04-14 23:26 (UTC)

As you pointed out yourself Kunda qt5-webengine was already added, qt5-webchannel I think should be explicitly added, although currently it will get installed anyways because qt5-webengine depends on it.

Kunda commented on 2022-04-14 22:45 (UTC)

Looks like there may be new Qt dep for Addon manager (reported by a user who uses the PPA) https://forum.freecadweb.org/viewtopic.php?f=42&t=68015 This is what is shown on their system:

Addon Manager Warning: Could not import QtWebEngineWidgets, it seems to be missing from your system. 
Please use your system's package manager to install the python3-pyside2.qtwebengine* and python3-pyside2.qtwebchannel packages, 
and if possible alert your package creator to the missing dependency. 
Display of package README will be limited until this dependency is resolved.

I can't test this because freecad-git fails when i built it. But just wanted to give @greyltc a heads up.

Kunda commented on 2022-04-14 02:07 (UTC) (edited on 2022-04-14 02:08 (UTC) by Kunda)

Just tried to build latest freecad-git (r28679)
Build completed but failed in the tests (80 tests failed)
Here is the log file: https://forum.freecadweb.org/download/file.php?id=186393