Package Details: python-ocp

Git Clone URL: (read-only, click to copy)
Package Base: python-ocp
Description: Python wrapper for OCCT generated using pywrap
Upstream URL:
Licenses: Apache
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: 2023-11-18 16:53 (UTC)

Dependencies (47)

Sources (2)

Latest Comments

1 2 3 4 Next › Last »

ptomalak commented on 2024-01-21 09:11 (UTC) (edited on 2024-01-21 09:17 (UTC) by ptomalak)

It was failing for me with:

File "/home/user/builds/python-ocp/src/OCP/pywrap/bindgen/", line 48, in read_symbols
sym = pd.read_csv(p,header=None,names=['name'],delim_whitespace=True,
TypeError: read_csv() got an unexpected keyword argument 'error_bad_lines'

in the Dumping symbols, then generating bindings... part of the building process just days after (eventually) successfully building it on other device. Same issue with the git version of this package.

A quick hack that fixed the issue for me was modifying PKGBUILD to include:

find ./ -type f -name "*.py" -exec sed -i 's/error_bad_lines=False/on_bad_lines = "skip"/g' {} +

In this part of the build:

build() {
cd OCP
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
ln -s "${site_packages}"/clang15 clang
export PYTHONPATH="$(pwd):${PYTHONPATH}"

find ./ -type f -name "*.py" -exec sed -i 's/error_bad_lines=False/on_bad_lines = "skip"/g' {} +

msg2 "Dumping symbols, then generating bindings..."
PATH="/usr/lib/llvm15/bin/:${PATH}" LD_LIBRARY_PATH="/usr/lib/llvm15/lib:${LD_LIBRARY_PATH}" cmake -B new -S .

I did not delve deeper into how / why it works, I just applied the first fix given by looking up the error ( ). I hope someone finds it helpful, or confirms if it is a wider issue or just limited to my setup.

tapia commented on 2023-11-19 21:00 (UTC)

Hi greyltc, it works now! Thanks for fixing the issue ;)

greyltc commented on 2023-11-16 21:25 (UTC)

Should be fixed now tapia. Turns out the official package upgrade of clang/llvm and friends from version 15->16 on 2023-08-29 broke the build. Took me almost forever to figure this out and implement a fix :(

tapia commented on 2023-11-13 21:57 (UTC)

Hi, this is not compiling for me. Is it working for anyone?

greyltc commented on 2023-03-25 23:14 (UTC)

The vtk dep here is stuck at 9.1 for now. You'll have to downgrade/ignore vtk upgrades for this package to work. Once opencascade gets upgraded to 7.7 I'll be able to update this package to unlock it from vtk 9.1.

DCengineer commented on 2023-03-25 20:29 (UTC)

Looks like the recent vtk update in the main repos may have broken the dependency checks for this package. python-ocp-git seems unaffected.

:: Resolving dependencies...
error: could not find all required packages:
    vtk=9.1 (wanted by: python-cadquery-git -> python-ocp)

Salamandar commented on 2022-10-14 16:00 (UTC)

It's not building anymore:

.cache/yay/python-ocp/src/OCP/OCP/BRepPrimAPI_pre.cpp:64:47: erreur: la valeur void n'a pas été ignorée comme elle aurait dû l'être
   64 |         Standard_Address OneAxis() override { PYBIND11_OVERLOAD_PURE(Standard_Address,BRepPrimAPI_MakeOneAxis,OneAxis,) };

rpodgorny commented on 2022-07-18 16:00 (UTC)

please add the missing dependency or orphan the package and i'll do it. thanks!

nobodyinperson commented on 2022-04-25 12:09 (UTC)

Missing dependency: python-lief

mmirate commented on 2022-03-02 22:05 (UTC)

Missing dependencies: openmpi, pugixml, fmt, glew.