Package Details: python-cadquery 2.4.0-6

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.020129
First Submitted: 2019-11-27 10:33 (UTC)
Last Updated: 2024-09-30 19:22 (UTC)

Latest Comments

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 ================================

Jarshvor commented on 2020-11-08 04:19 (UTC)

Just my two cents.

A number of tests failed for me, preventing successful installation: FAILED tests/test_cqgi.py::TestCQGI::test_build_with_different_params - IndexError: list index out of range FAILED tests/test_cqgi.py::TestCQGI::test_describe_parameter_invalid_doesnt_fail_script - KeyError: 'a' FAILED tests/test_cqgi.py::TestCQGI::test_describe_parameters - KeyError: 'a' FAILED tests/test_cqgi.py::TestCQGI::test_parser - AssertionError: Items in the second set but not the first: FAILED tests/test_cqgi.py::TestCQGI::test_setting_boolean_variable - AssertionError: False is not true FAILED tests/test_cqgi.py::TestCQGI::test_that_assinging_number_to_string_works - IndexError: list index out of range FAILED tests/test_cqgi.py::TestCQGI::test_that_only_top_level_vars_are_detected - AssertionError: 2 != 0 FAILED tests/test_jupyter.py::TestJupyter::test_repr_html - ModuleNotFoundError: No module named 'IPython'

All of these were successful when trying to install the python-cadquery-git 2.0.1.r174 package, with the exception of the Jupyter test, which was resolved by installing ipython.

s-ol commented on 2020-10-22 11:51 (UTC)

The python-occ-cadquery-git dependency does not exist anymore.