Package Details: python-cadquery 2.4.0-7

Git Clone URL: https://aur.archlinux.org/python-cadquery.git (read-only, click to copy)
Package Base: python-cadquery
Description: A parametric CAD scripting framework based on PythonOCC
Upstream URL: https://github.com/CadQuery/cadquery
Licenses: Apache
Conflicts: python-cadquery-git
Submitter: greyltc
Maintainer: greyltc
Last Packager: greyltc
Votes: 7
Popularity: 0.004365
First Submitted: 2019-11-27 10:33 (UTC)
Last Updated: 2024-12-24 16:29 (UTC)

Latest Comments

1 2 Next › Last »

s-ol commented on 2025-01-24 11:27 (UTC)

Current v2.5.2 (_build_hash=23af517a66928e7c0bc3ebb6b86edf643af4751c) builds fine, prepare() with the patch can be dropped as it has been merged.

I'm not sure why this package uses _build_hash is used instead of #tag=v${pkgver}?

Auerhuhn commented on 2025-01-02 16:36 (UTC)

Hi @greyltc,

Thank you for your comment on opencascade-cadquery, which made me give python-cadquery another try.

However, python-cadquery still fails to build for me in a clean chroot for several reasons explained here.

To fix these issues, I had to modify this PKGBUILD.
It works fine for me with the patch applied (provided that in python-ocp, fmt is also added to depends).

Would you consider applying my fixes?
The following snippet should suffice:

curl -LO https://salsa.debian.org/-/snippets/766/raw/main/python-cadquery-2.4.0-PKGBUILD.patch
less python-cadquery-2.4.0-PKGBUILD.patch
patch -p1 < python-cadquery-2.4.0-PKGBUILD.patch

Thanks again for maintaining this behemoth package, and sorry for bothering you time and again.
CAD stuff always has to be complicated, I guess!

Regards
Claudia

Kunda commented on 2024-03-14 21:15 (UTC)

https://github.com/CadQuery/cadquery/releases/tag/2.4.0
Changelog: https://github.com/CadQuery/cadquery/blob/2.4.0/changes.md

leuko commented on 2024-02-07 18:23 (UTC)

During check() I get the following error:

ImportError while importing test module '/home/u/.cache/pikaur/build/python-cadquery/src/cadquery/tests/test_examples.py

Can someone verify this?

amstan commented on 2023-02-20 18:34 (UTC)

The build was failing for me without python-typish and python-nptyping

Can confirm. this helped with the error:

  File "/usr/lib/python3.10/site-packages/cadquery/sketch.py", line 19, in <module>
    from typish import instance_of, get_type
ModuleNotFoundError: No module named 'typish'

Is it possible not to run the tests?

I installed mine with pikaur -S python-cadquery --mflags=--nocheck, your aur helper might have similar flags.

I think greyltc should consider disabling checks, this is too much of a compiling beast to bicker about fonts missing in a unit tests.

I really wish it also used all my cores when compiling.

cyber1 commented on 2022-12-30 11:25 (UTC)

The build was failing for me without python-typish and python-nptyping. Probably they should be added to the list of dependencies? It also doesn't pass the tests because of missing fonts. I had to install cantarell-fonts-0.100 and Microsoft fonts from AUR. Is it possible not to run the tests?

tujir commented on 2022-09-14 14:49 (UTC)

https://github.com/CadQuery/cadquery/issues/998 ?

amstan commented on 2022-02-08 20:15 (UTC)

Wow, this package takes super long to compile (longest I've seen in the aur, and I've done kernel and chrome before). A couple of hours despite my various cores (and then errors). This alone is discouraging me from ever using cadquery, it seems to be quite the beast in terms of dependencies. I wonder if it would be worth getting a binary instead.

greyltc commented on 2021-03-04 21:47 (UTC) (edited on 2021-03-04 21:47 (UTC) by greyltc)

Yeah. This upstream release does not support opencascade 7.5 that Arch uses. Try my python-cadquery-git package until upstream catches up.

DCengineer commented on 2021-02-23 17:16 (UTC)

Getting multiple unit test errors

collected 0 items / 8 errors                                                      

===================================== ERRORS ======================================
___________________ ERROR collecting tests/test_cad_objects.py ____________________
ImportError while importing test module '/home/caleb/.cache/pacaur/python-cadquery/src/cadquery-2.0.1/tests/test_cad_objects.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/__init__.py:3: in <module>
    from .occ_impl.shapes import (
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/occ_impl/shapes.py:137: in <module>
    from OCP.Font import (
E   ImportError: cannot import name 'Font_BRepTextBuilder' from 'OCP.Font' (unknown location)
_____________________ ERROR collecting tests/test_cadquery.py _____________________
ImportError while importing test module '/home/caleb/.cache/pacaur/python-cadquery/src/cadquery-2.0.1/tests/test_cadquery.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/__init__.py:3: in <module>
    from .occ_impl.shapes import (
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/occ_impl/shapes.py:137: in <module>
    from OCP.Font import (
E   ImportError: cannot import name 'Font_BRepTextBuilder' from 'OCP.Font' (unknown location)
_______________________ ERROR collecting tests/test_cqgi.py _______________________
ImportError while importing test module '/home/caleb/.cache/pacaur/python-cadquery/src/cadquery-2.0.1/tests/test_cqgi.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/__init__.py:3: in <module>
    from .occ_impl.shapes import (
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/occ_impl/shapes.py:137: in <module>
    from OCP.Font import (
E   ImportError: cannot import name 'Font_BRepTextBuilder' from 'OCP.Font' (unknown location)
____________________ ERROR collecting tests/test_exporters.py _____________________
ImportError while importing test module '/home/caleb/.cache/pacaur/python-cadquery/src/cadquery-2.0.1/tests/test_exporters.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/__init__.py:3: in <module>
    from .occ_impl.shapes import (
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/occ_impl/shapes.py:137: in <module>
    from OCP.Font import (
E   ImportError: cannot import name 'Font_BRepTextBuilder' from 'OCP.Font' (unknown location)
____________________ ERROR collecting tests/test_importers.py _____________________
ImportError while importing test module '/home/caleb/.cache/pacaur/python-cadquery/src/cadquery-2.0.1/tests/test_importers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/__init__.py:3: in <module>
    from .occ_impl.shapes import (
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/occ_impl/shapes.py:137: in <module>
    from OCP.Font import (
E   ImportError: cannot import name 'Font_BRepTextBuilder' from 'OCP.Font' (unknown location)
_____________________ ERROR collecting tests/test_jupyter.py ______________________
ImportError while importing test module '/home/caleb/.cache/pacaur/python-cadquery/src/cadquery-2.0.1/tests/test_jupyter.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/__init__.py:3: in <module>
    from .occ_impl.shapes import (
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/occ_impl/shapes.py:137: in <module>
    from OCP.Font import (
E   ImportError: cannot import name 'Font_BRepTextBuilder' from 'OCP.Font' (unknown location)
____________________ ERROR collecting tests/test_selectors.py _____________________
ImportError while importing test module '/home/caleb/.cache/pacaur/python-cadquery/src/cadquery-2.0.1/tests/test_selectors.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/__init__.py:3: in <module>
    from .occ_impl.shapes import (
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/occ_impl/shapes.py:137: in <module>
    from OCP.Font import (
E   ImportError: cannot import name 'Font_BRepTextBuilder' from 'OCP.Font' (unknown location)
____________________ ERROR collecting tests/test_workplanes.py ____________________
ImportError while importing test module '/home/caleb/.cache/pacaur/python-cadquery/src/cadquery-2.0.1/tests/test_workplanes.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/__init__.py:1: in <module>
    from cadquery import *
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/__init__.py:3: in <module>
    from .occ_impl.shapes import (
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
cadquery/occ_impl/shapes.py:137: in <module>
    from OCP.Font import (
E   ImportError: cannot import name 'Font_BRepTextBuilder' from 'OCP.Font' (unknown location)

----------- coverage: platform linux, python 3.9.1-final-0 -----------
Name                            Stmts   Miss Branch BrPart  Cover
-----------------------------------------------------------------
cadquery/__init__.py                9      7      0      0    22%
cadquery/occ_impl/__init__.py       0      0      0      0   100%
cadquery/occ_impl/geom.py         448    270     92      1    33%
cadquery/occ_impl/shapes.py       816    779    206      0     4%
tests/__init__.py                  32     31      6      0     3%
-----------------------------------------------------------------
TOTAL                            1305   1087    304      1    14%

============================= short test summary info =============================
ERROR tests/test_cad_objects.py
ERROR tests/test_cadquery.py
ERROR tests/test_cqgi.py
ERROR tests/test_exporters.py
ERROR tests/test_importers.py
ERROR tests/test_jupyter.py
ERROR tests/test_selectors.py
ERROR tests/test_workplanes.py
!!!!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!!
================================ 8 errors in 1.57s ================================