Package Details: python-cq-editor-git 0.1.2.r48.g2f75bf6-1

Git Clone URL: https://aur.archlinux.org/python-cq-editor-git.git (read-only, click to copy)
Package Base: python-cq-editor-git
Description: CadQuery GUI editor based on PyQT built from git
Upstream URL: https://github.com/CadQuery/CQ-editor
Licenses: Apache
Conflicts: python-cq-editor
Provides: python-cq-editor
Submitter: greyltc
Maintainer: greyltc
Last Packager: greyltc
Votes: 2
Popularity: 0.000168
First Submitted: 2019-12-31 13:23 (UTC)
Last Updated: 2021-01-18 19:40 (UTC)

Latest Comments

dack commented on 2021-05-26 19:26 (UTC)

Missing dependency for python-typing-extensions

$cq-editor 
Traceback (most recent call last):
  File "/usr/bin/cq-editor", line 33, in <module>
    sys.exit(load_entry_point('CQ-editor==0.3.0.dev0', 'gui_scripts', 'cq-editor')())
  File "/usr/bin/cq-editor", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 855, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/cq_editor/__main__.py", line 12, in <module>
    from .main_window import MainWindow
  File "/usr/lib/python3.9/site-packages/cq_editor/main_window.py", line 5, in <module>
    import cadquery as cq
  File "/usr/lib/python3.9/site-packages/cadquery/__init__.py", line 3, in <module>
    from .occ_impl.shapes import (
  File "/usr/lib/python3.9/site-packages/cadquery/occ_impl/shapes.py", line 16, in <module>
    from typing_extensions import Literal, Protocol
ModuleNotFoundError: No module named 'typing_extensions'

DCengineer commented on 2021-03-06 20:54 (UTC)

You can add a .desktop file with the following changes...

prepare() {
  gendesk -f -n --pkgname "cq-editor" --name "CadQuery Editor" --pkgdesc "$pkgdesc" --categories "Graphics;3DGraphics;Engineering"
}
package() {
  cd CQ-editor
  python setup.py install --root="$pkgdir" --skip-build
  install -Dm644 "$srcdir/cq-editor.desktop" "$pkgdir/usr/share/applications/cq-editor.desktop"
  install -Dm644 "$srcdir/CQ-editor/icons/cadquery_logo_dark.svg" "$pkgdir/usr/share/pixmaps/cq-editor.svg"
}

Also, add gendesk to makedepends.

DCengineer commented on 2021-03-06 18:01 (UTC)

@greyltc Installations works, but there is one error during test.

_______________________ ERROR collecting tests/test_app.py ________________________
ImportError while importing test module '/home/caleb/.cache/pacaur/python-cq-editor-git/src/CQ-editor/tests/test_app.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/test_app.py:16: in <module>
    from cq_editor.__main__ import MainWindow
/usr/lib/python3.9/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py:142: in _import
    return original_import(name, *args, **kwargs)
E   ModuleNotFoundError: No module named 'cq_editor'

dack commented on 2020-10-19 18:39 (UTC)

Here's a .desktop file that works for me. The icon is in the cq-editor git repo (icons/cadquery_logo_dark.svg), but isn't currently installed by the PKGBUILD (it's not copied as a part of running setup.py). The icon and the .desktop file installation would just need to be added to the PKGBUILD's package() function.

[Desktop Entry] Type=Application Name=CQ-Editor Comment=CadQuery Editor Exec=/usr/bin/cq-editor Encoding=UTF-8 Icon=cadquery_logo_dark Categories=Science; Terminal=false StartupWMClass=cq-editor

mikelkook commented on 2020-10-10 21:40 (UTC)

You can remove the whole prepare() block now, the two patches have been fixed upstream (and now it fails when applying the patches). Also could you please add a .desktop file, so we can start CQ-editor directly from the desktop environment's gui and not only via console? Thanks!

dack commented on 2020-10-05 16:58 (UTC)

Missing dependencies for python-scipy and python-nptyping (AUR). They were added in this commit:

https://github.com/CadQuery/CQ-editor/commit/77bfcdb293e6c9e981b470bc9ec01920251f65ad

dack commented on 2020-08-24 22:38 (UTC) (edited on 2020-08-24 22:39 (UTC) by dack)

I think there is a missing dependency on python-ocp:

Traceback (most recent call last):
  File "/usr/bin/cq-editor", line 33, in <module>
    sys.exit(load_entry_point('CQ-editor==0.1.0', 'gui_scripts', 'cq-editor')())
  File "/usr/bin/cq-editor", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/cq_editor/__main__.py", line 12, in <module>
    from .main_window import MainWindow
  File "/usr/lib/python3.8/site-packages/cq_editor/main_window.py", line 8, in <module>
    from .widgets.viewer import OCCViewer
  File "/usr/lib/python3.8/site-packages/cq_editor/widgets/viewer.py", line 11, in <module>
    from OCP.AIS import AIS_Shaded,AIS_WireFrame, AIS_ColoredShape, \
ModuleNotFoundError: No module named 'OCP'