Package Details: freecad-git 0.22.0.36999.ged77603af9-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.007774
First Submitted: 2012-03-03 13:46 (UTC)
Last Updated: 2024-04-30 00:29 (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 12 .. 58 Next › Last »

S.Thanawat commented on 2022-06-27 03:17 (UTC) (edited on 2022-06-27 03:28 (UTC) by S.Thanawat)

Hi, I'm tried to build this package on my Manjaro but got 1 error on the last step(I think). How can I fix this error?

======================================================================
ERROR: test_draft_to_drawing (drafttests.test_modification.DraftModification)
Create a solid, and then a projected view in a Drawing page.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/pamac-build-taman/freecad-git/src/FreeCAD/build/Mod/Draft/drafttests/test_modification.py", line 562, in test_draft_to_drawing
    page = App.ActiveDocument.addObject('Drawing::FeaturePage')
ImportError: {'sclassname': 'N4Base11PyExceptionE', 'sErrMsg': '/usr/lib/freecad/lib/Drawing.so: undefined symbol: _ZN3App14DocumentObject13setExpressionERKNS_16ObjectIdentifierEN5boost10shared_ptrINS_10ExpressionEEE', 'sfile': '', 'iline': 0, 'sfunction': '', 'swhat': '/usr/lib/freecad/lib/Drawing.so: undefined symbol: _ZN3App14DocumentObject13setExpressionERKNS_16ObjectIdentifierEN5boost10shared_ptrINS_10ExpressionEEE', 'btranslatable': False, 'breported': False}

----------------------------------------------------------------------
Ran 739 tests in 41.333s

FAILED (errors=1)

adrianinsaval commented on 2022-06-13 22:50 (UTC)

done

Kunda commented on 2022-06-13 00:54 (UTC)

Congrats! @adrianinsaval
BTW, can someone update the Package Details -> Upstream URL to https://www.freecad.org/ ? Thanks!

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.