Package Details: python-ocp 7.8.1.2+r81.g2dd2ce8a-1

Git Clone URL: https://aur.archlinux.org/python-ocp.git (read-only, click to copy)
Package Base: python-ocp
Description: Python wrapper for OCCT generated using pywrap
Upstream URL: https://github.com/CadQuery/OCP
Licenses: Apache-2.0
Conflicts: python-ocp-git
Submitter: greyltc
Maintainer: greyltc
Last Packager: greyltc
Votes: 1
Popularity: 0.000000
First Submitted: 2020-08-22 14:36 (UTC)
Last Updated: 2025-10-04 17:13 (UTC)

Dependencies (47)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

captain_tycho commented on 2021-04-15 16:50 (UTC)

Hey, just figured I'd drop a note that when I compiled this package I had a minor problem that the output file was called OCP.cpython-39-x86_64-linux-gnu.so, instead of OCP.so, which was what Python expected. Don't know if that was intentional, but it caused import issues until it was easily fixed by renaming it.

rbgo commented on 2021-02-02 06:56 (UTC)

@greyltc Everything is working now up to CQ-editor. Thank you very much! :D

dack commented on 2021-02-01 23:49 (UTC)

FYI - the combination of python-ocp and python-cadquery-git works fine for me (no need for python-ocp-git).

greyltc commented on 2021-01-26 15:02 (UTC)

@rbgo I think python-cadquery being broken is an upstream problem. They don't support opencascade 7.5, only 7.4. I've put some workarounds for that problem into python-cadquery-git, so you might give that a shot (maybe paired with python-ocp-git. that's the combo I'm using).

greyltc commented on 2021-01-26 14:11 (UTC)

Yeah, sorry about that. I made a mistake in the joblib version spec that I just added to the PKGBUILD. I've fixed it now, so try your build again please. My experience has been that python 3.9 causes your original build error with joblib version 0.16 but not with version 1.0.

rbgo commented on 2021-01-26 11:33 (UTC) (edited on 2021-01-26 11:34 (UTC) by rbgo)

@greyltc I had "python-joblib 0.16.0-3" installed from Manjaro's Offical Repositories and removed it, because I saw an AUR available "python-joblib 1.0.0-1". I installed it. Then I tryed install AURs (1)"python-ocp-git 7.5.RC1.r4.g6b105a3-1" and (2)"python-ocp 7.5.RC1-2", both failed on not having "python-joblib => 1.0"; strange. I edit the build file of (2) removing the joblib version requirement. The build came far but tripped over missing opencascade files and cmake could not continue. Did the same with (1) and the build completed! So that helped. Thank you! :-)

But now it is "python-cadquery 2.0.1-1" that fails to install...

----------- 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 0.89s ===============================
==> ERROR: A failure occurred in check().
    Aborting...

I checked all the dependencies for "python-cadquery" and they're all installed.

@s-ol Thank for your thoughts on this.

[12:17 rbgo]~> free
        total        used        free      shared  buff/cache   available
Mem:            64310        5123       54786         347        4400       58208
Swap:               0           0           0

s-ol commented on 2021-01-26 09:23 (UTC)

@rbgo The error message seems to suggest you may be running out of RAM? How much RAM and swap space do you have available? (e.g. output of free)

greyltc commented on 2021-01-26 09:06 (UTC) (edited on 2021-01-26 09:09 (UTC) by greyltc)

@rbgo I've never used Manjaro, so I'm not really sure what goes on there. What version of python-joblib does Manjaro give you? Seems to me you're running an out of date version of that package with bugs that break this build.

rbgo commented on 2021-01-26 00:29 (UTC) (edited on 2021-01-26 00:31 (UTC) by rbgo)

I got two Manjaro systems on my LAN. Tryed to install this package and also the git version separately as a dependency of python-cq-editor. In both cases and on both PCs the install will not complete. Next to GUI install with pamac I also tryed install with pacman, makepkg and yay, all having same results.

Install starts normal like this...

Preparing...
Cloning python-ocp build files...
Checking python-ocp dependencies...
Resolving dependencies...
Checking inter-conflicts...
Building python-ocp...
==> Making package: python-ocp 7.5.RC1-1 (Tue 26 Jan 2021 01:12:00 AM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found python-ocp-7.5.RC1.tar.gz
-> Found pywrap-7.5.RC1.tar.gz
==> Validating source files with sha256sums...
    python-ocp-7.5.RC1.tar.gz ... Passed
    pywrap-7.5.RC1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting python-ocp-7.5.RC1.tar.gz with bsdtar
-> Extracting pywrap-7.5.RC1.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...

And then the following output is dumped starting with "LokyProcess-xx failed..." headers of which I copy the last one...

--------------------------------------------------------------------------------
LokyProcess-22 failed with traceback: 
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/joblib/externals/loky/backend/popen_loky_posix.py", line 199, in <module>
    process_obj = pickle.load(from_parent)
File "/usr/lib/python3.9/site-packages/joblib/externals/loky/backend/queues.py", line 75, in __setstate__
    self._after_fork()
File "/usr/lib/python3.9/multiprocessing/queues.py", line 69, in _after_fork
    self._reset(after_fork=True)
File "/usr/lib/python3.9/multiprocessing/queues.py", line 73, in _reset
    self._notempty._at_fork_reinit()
AttributeError: '_SafeQueue' object has no attribute '_notempty'
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
File "/var/tmp/pamac-build-rbgo/python-ocp/src/OCP-7.5-RC1/pywrap/bindgen/__main__.py", line 96, in <module>
    main()
File "/usr/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
File "/usr/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context().obj, *args, **kwargs)
File "/var/tmp/pamac-build-rbgo/python-ocp/src/OCP-7.5-RC1/pywrap/bindgen/__main__.py", line 31, in parse
    result = parse_modules(obj.verbose,obj.njobs,settings,module_mapping,module_settings,platform)
File "/var/tmp/pamac-build-rbgo/python-ocp/src/OCP-7.5-RC1/pywrap/bindgen/__init__.py", line 235, in parse_modules
    modules = Parallel(prefer='processes',n_jobs=n_jobs)\
File "/usr/lib/python3.9/site-packages/joblib/parallel.py", line 1042, in __call__
    self.retrieve()
File "/usr/lib/python3.9/site-packages/joblib/parallel.py", line 921, in retrieve
    self._output.extend(job.get(timeout=self.timeout))
File "/usr/lib/python3.9/site-packages/joblib/_parallel_backends.py", line 542, in wrap_future_result
    return future.result(timeout=timeout)
File "/usr/lib/python3.9/concurrent/futures/_base.py", line 440, in result
    return self.__get_result()
File "/usr/lib/python3.9/concurrent/futures/_base.py", line 389, in __get_result
    raise self._exception
File "/usr/lib/python3.9/site-packages/joblib/externals/loky/_base.py", line 625, in _invoke_callbacks
    callback(self)
File "/usr/lib/python3.9/site-packages/joblib/parallel.py", line 347, in __call__
    self.parallel.dispatch_next()
File "/usr/lib/python3.9/site-packages/joblib/parallel.py", line 780, in dispatch_next
    if not self.dispatch_one_batch(self._original_iterator):
File "/usr/lib/python3.9/site-packages/joblib/parallel.py", line 847, in dispatch_one_batch
    self._dispatch(tasks)
File "/usr/lib/python3.9/site-packages/joblib/parallel.py", line 765, in _dispatch
    job = self._backend.apply_async(batch, callback=cb)
File "/usr/lib/python3.9/site-packages/joblib/_parallel_backends.py", line 531, in apply_async
    future = self._workers.submit(SafeFunction(func))
File "/usr/lib/python3.9/site-packages/joblib/externals/loky/reusable_executor.py", line 177, in submit
    return super(_ReusablePoolExecutor, self).submit(
File "/usr/lib/python3.9/site-packages/joblib/externals/loky/process_executor.py", line 1102, in submit
    raise self._flags.broken
joblib.externals.loky.process_executor.TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.

The exit codes of the workers are {EXIT(1)}
62%|██████▏   | 191/309 [00:00<00:00, 481.43it/s]
==> ERROR: A failure occurred in build().
    Aborting...

greyltc commented on 2020-11-22 13:56 (UTC)

@Knusperkeks It seems to me that those "errors" are actually warnings.

You wrote "I tried building it inside a clean chroot and it does not succeed." I don't see anything indicating failure in what you pasted.

Thanks for the new deps, I've added them.