Package Details: python-cadquery 2.1-1

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: 2
Popularity: 0.054096
First Submitted: 2019-11-27 10:33
Last Updated: 2021-03-04 21:46

Latest Comments

greyltc commented on 2021-03-04 21:47

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

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

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

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