Yeah, check() fails for me too. I assume this test failure is upstream's bug. Have you tried looking for or reporting an issue there?
Search Criteria
Package Details: freecad-git 1.1.0.41361.g774ec2cc93-1
Package Actions
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: | 107 |
Popularity: | 1.18 |
First Submitted: | 2012-03-03 13:46 (UTC) |
Last Updated: | 2025-04-22 00:51 (UTC) |
Dependencies (40)
- boost-libs
- coin (coin-gitAUR)
- fmt (fmt-gitAUR)
- glew (glew-libepoxyAUR, glew-wayland-gitAUR, glew-gitAUR)
- jsoncpp (jsoncpp-cmake-gitAUR, jsoncpp-cmakeAUR, jsoncpp-gitAUR)
- med (med-openmpi)
- netcdf (netcdf-openmpi)
- opencascade (opencascade-gitAUR)
- openmpi (openmpi-gitAUR)
- pybind11 (pybind11-gitAUR)
- pyside6
- pyside6-tools
- python-matplotlib (python-matplotlib-gitAUR)
- python-packaging
- python-pivy
- python-ply
- python-yaml (python-yaml-gitAUR)
- qt6-5compat
- qt6-base (qt6-base-gitAUR, qt6-base-headlessAUR)
- qt6-svg
- qt6-tools
- shared-mime-info
- verdict
- vtk (vtk-gitAUR, vtk93AUR)
- xerces-c
- yaml-cpp
- boost (boost-gitAUR) (make)
- cmake (cmake-gitAUR, cmake3AUR) (make)
- eigen (eigen-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- nlohmann-json (nlohmann-json-gitAUR) (make)
- shiboken6 (make)
- swig (swig-gitAUR) (make)
- pugixml (pugixml-gitAUR) (check)
- calculix-ccxAUR (optional) – FEM solver backend
- graphviz (optional) – dependency graph support
- libspnav (libspnav-gitAUR) (optional) – 3D mouse support
- openscad (openscad-objects-gitAUR, openscad-qt6-gitAUR, openscad-gitAUR) (optional) – OpenSCAD support
- python-pip (optional) – support installing python dependencies for addons
Required by (4)
- freecad-a2plus-git (requires freecad)
- freecad-cadquery-git (requires freecad)
- freecad-fcgear-git (requires freecad)
- openmc-git (requires freecad)
Sources (1)
Latest Comments
« First ‹ Previous 1 .. 13 14 15 16 17 18 19 20 21 22 23 .. 58 Next › Last »
greyltc commented on 2021-02-05 11:33 (UTC) (edited on 2021-02-05 11:34 (UTC) by greyltc)
neo2001 commented on 2021-02-05 11:29 (UTC) (edited on 2021-02-05 11:31 (UTC) by neo2001)
It's me again. :-) Last time it was my own fault for not completely deleting the src and pkg directories. After that everything worked fine... for a while.
But since a few days I only get this:
Ran 246 tests in 31.672s
FAILED (failures=1, errors=49)
==> ERROR: A failure occurred in check().
Aborting...
The build itself seems to work fine, but the tests always fail (which they didn't before).
Should I just ignore/comment them in the PKGBUILD or do I need to actually care about the result of the unit tests?
I've tried to delete everything and start fresh, I also waited a few days and tried again a few times. But it's always the same...
Example output:
======================================================================
ERROR: test_draft_to_sketch (drafttests.test_modification.DraftModification)
Convert a Draft object to a Sketch and back.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/Mod/Draft/drafttests/test_modification.py", line 375, in test_draft_to_sketch
obj = Draft.make_sketch(wire, autoconstraints=True)
File "/home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/Mod/Draft/draftmake/make_sketch.py", line 79, in make_sketch
from Sketcher import Constraint
File "/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
ImportError: /home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/lib/Sketcher.so: undefined symbol: _ZN3App4Part15getPartOfObjectEPKNS_14DocumentObjectEb
======================================================================
FAIL: testExtensions (Document.DocumentBasicCases)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/Mod/Test/Document.py", line 248, in testExtensions
grp.addExtension("App::GroupExtensionPython")
TypeError: function takes exactly 2 arguments (1 given)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/cf/abs/aur/freecad-git/src/FreeCAD/build_dir/check/Mod/Test/Document.py", line 255, in testExtensions
self.failUnless(False)
AssertionError: False is not true
Kunda commented on 2021-02-03 14:53 (UTC) (edited on 2021-02-03 14:54 (UTC) by Kunda)
News: upstream has announced feature freeze with release for v0.19 pending next month.
greyltc commented on 2021-01-12 16:06 (UTC)
packages fine for me. tested with both makepkg and yay
neo2001 commented on 2021-01-12 13:40 (UTC)
Anyone getting this error after the build and test have finished?:
mv: cannot stat '/home/xxx/abs/aur/freecad-git/pkg/freecad-git/usr/local/freecad/share/doc': No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
greyltc commented on 2021-01-08 20:26 (UTC)
I just made an update that I hope will address any outstanding issues.
malnven commented on 2021-01-08 10:43 (UTC)
@greyltc I suggest to remove the execution of the test suite. As it is now the PKGBUILD should be considered broken.
greyltc commented on 2020-12-30 11:56 (UTC)
@alhirzel, seems like you're right about that recource directory. Does anyone know how to set that at runtime?
Kunda commented on 2020-12-29 14:01 (UTC)
@Deewiant mentioned your observation in the FreeCAD forum: https://forum.freecadweb.org/viewtopic.php?f=4&t=50810&p=461930#p461930
alhirzel commented on 2020-12-26 17:49 (UTC) (edited on 2020-12-26 17:51 (UTC) by alhirzel)
I'm seeing a few issues in check()
right now, which could be upstream. I am building on a PC where FreeCAD is not installed, and the first set of errors are like the following:
File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/Arch/ArchIFCSchema.py", line 34, in <module>
with open(os.path.join(FreeCAD.getResourceDir(), "Mod", "Arch", "Presets",
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/freecad/Mod/Arch/Presets/ifc_contexts_IFC4.json'
I think it's because FreeCAD.getResourceDir()
follows Application::getResourceDir
which depends on RESOURCEDIR
at build-time. Perhaps the tests should not use this directory or something. I'm reporting this here just in case it is due to our packaging or our invocation of the test suite. (I did not see any mention of RESOURCEDIR
in the PKGBUILD
.)
Second set of issues are as follows, which are filesystem-related though I struggle to see how they could be due to the PKGBULID
:
======================================================================
ERROR: testHatchCase (TestTechDrawApp.TechDrawTestCases)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/TechDraw/TestTechDrawApp.py", line 53, in testHatchCase
rc = DHatchTest()
File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/TechDraw/TDTest/DHatchTest.py", line 45, in DHatchTest
hatch = FreeCAD.ActiveDocument.addObject('TechDraw::DrawHatch','Hatch')
Base.FreeCADError: {'sclassname': 'N4Base15FileSystemErrorE', 'sErrMsg': 'File /tmp/FreeCAD_Doc_6a76e492-caf2-464f-af89-d311de155634_da39a3_47564/FreeCAD_Doc_6a76e492-caf2-464f-af89-d311de155634_da39a3_47564HatchSvgHatch.svgpg7I9M does not exist.', 'sfile': '', 'iline': 0, 'sfunction': '', 'swhat': 'File /tmp/FreeCAD_Doc_6a76e492-caf2-464f-af89-d311de155634_da39a3_47564/FreeCAD_Doc_6a76e492-caf2-464f-af89-d311de155634_da39a3_47564HatchSvgHatch.svgpg7I9M does not exist.', 'btranslatable': False, 'breported': True}
======================================================================
ERROR: testSectionCase (TestTechDrawApp.TechDrawTestCases)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/TechDraw/TestTechDrawApp.py", line 85, in testSectionCase
rc = DVSectionTest()
File "/home/alhirzel/build_freecad/freecad-git/src/build/Mod/TechDraw/TDTest/DVSectionTest.py", line 42, in DVSectionTest
section = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewSection','Section')
Base.FreeCADError: {'sclassname': 'N4Base15FileSystemErrorE', 'sErrMsg': 'File /tmp/FreeCAD_Doc_9ddf8b87-511a-47e5-a564-d1935042ba5b_da39a3_47564/FreeCAD_Doc_9ddf8b87-511a-47e5-a564-d1935042ba5b_da39a3_47564SectionSvgHatch.svgD7AOwM does not exist.', 'sfile': '', 'iline': 0, 'sfunction': '', 'swhat': 'File /tmp/FreeCAD_Doc_9ddf8b87-511a-47e5-a564-d1935042ba5b_da39a3_47564/FreeCAD_Doc_9ddf8b87-511a-47e5-a564-d1935042ba5b_da39a3_47564SectionSvgHatch.svgD7AOwM does not exist.', 'btranslatable': False, 'breported': True}
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.