Package Details: python-or-tools 9.11-4

Git Clone URL: https://aur.archlinux.org/python-or-tools.git (read-only, click to copy)
Package Base: python-or-tools
Description: Google's Operations Research tools
Upstream URL: https://github.com/google/or-tools
Keywords: or-tools ortools
Licenses: Apache-2.0
Submitter: dariost
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 8
Popularity: 0.50
First Submitted: 2017-07-11 23:45 (UTC)
Last Updated: 2024-10-05 19:24 (UTC)

Latest Comments

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

XZS commented on 2023-08-29 19:28 (UTC)

Thank you for the update. Unfortunately, building already fails again for me, even in a clean chroot. I suspect the relevant part of the error message to be the following/

[ 11%] Creating directories for 'pybind11_protobuf-populate'
[ 22%] Performing download step (git clone) for 'pybind11_protobuf-populate'
Cloning into 'pybind11_protobuf-src'...
Your branch is up to date with 'origin/main'.
Already on 'main'
[ 33%] Performing disconnected update step for 'pybind11_protobuf-populate'
[ 44%] Performing patch_disconnected step for 'pybind11_protobuf-populate'
[ 55%] No configure step for 'pybind11_protobuf-populate'
[ 66%] No build step for 'pybind11_protobuf-populate'
[ 77%] No install step for 'pybind11_protobuf-populate'
[ 88%] No test step for 'pybind11_protobuf-populate'
[100%] Completed 'pybind11_protobuf-populate'
[100%] Built target pybind11_protobuf-populate
CMake Error at /usr/lib/cmake/absl/abslTargets.cmake:42 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: absl::atomic_hook, absl::errno_saver, absl::log_severity,
  absl::raw_logging_internal, absl::spinlock_wait, absl::config,
  absl::dynamic_annotations, absl::core_headers, absl::malloc_internal,

I cut out a long list of what seems to be functions from absl here.

  absl::optional, absl::bad_optional_access, absl::bad_variant_access,
  absl::variant, absl::compare, absl::utility

  Targets not yet defined: absl::hash_testing, absl::spy_hash_state,
  absl::scoped_mock_log, absl::random_mocking_bit_gen,
  absl::cord_test_helpers

Call Stack (most recent call first):
  /usr/lib/cmake/absl/abslConfig.cmake:42 (include)
  build/_deps/pybind11_protobuf-src/CMakeLists.txt:32 (find_package)


-- Configuring incomplete, errors occurred!

I already tried to downgrade absl and protobuf, to no avail.

brolin commented on 2023-08-08 01:25 (UTC)

sudo pacman -S python-virtualenv

solves the error

philo commented on 2022-08-18 15:54 (UTC)

Nobody can offer a solution to the issue raised by the previous commentator ? Would version 9.4 solve it ?

fow0ryl commented on 2022-08-02 06:21 (UTC) (edited on 2022-08-02 06:23 (UTC) by fow0ryl)

Installed python-absl package to fulfil the dependencys. But building python-or-tools failed ...

[ 75%] Building CXX object ortools/glop/CMakeFiles/ortools_glop.dir/reduced_costs.cc.o [ 75%] Building CXX object ortools/graph/CMakeFiles/ortools_graph.dir/topologicalsorter.cc.o [ 76%] Building CXX object ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/glpk_interface.cc.o [ 76%] Building CXX object ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/gurobi_interface.cc.o [ 76%] Building CXX object ortools/constraint_solver/CMakeFiles/ortools_constraint_solver.dir/resource.cc.o [ 76%] Building CXX object ortools/linear_solver/CMakeFiles/ortools_linear_solver.dir/gurobi_proto_solver.cc.o In Datei, eingebunden von /tmp/trizen-henning/python-or-tools/src/or-tools-9.3/ortools/graph/topologicalsorter.h:67, von /tmp/trizen-henning/python-or-tools/src/or-tools-9.3/ortools/graph/topologicalsorter.cc:14: /tmp/trizen-henning/python-or-tools/src/or-tools-9.3/ortools/graph/topologicalsorter.h:80:8: Fehler: Standardattribute inmitten von Deklarationssymbolen 80 | inline ABSL_MUST_USE_RESULT bool DenseIntTopologicalSort( | ^~~~~~~~~~~~~~~~~~~~ /tmp/trizen-henning/python-or-tools/src/or-tools-9.3/ortools/graph/topologicalsorter.h:80:8: Anmerkung: Standardattribute müssen vor den Deklarationsspezifizierern stehen, um für die Deklaration zu gelten, oder ihnen folgen, um für den Typ zu gelten /tmp/trizen-henning/python-or-tools/src/or-tools-9.3/ortools/graph/topologicalsorter.h:85:8: Fehler: Standardattribute inmitten von Deklarationssymbolen 85 | inline ABSL_MUST_USE_RESULT bool DenseIntStableTopologicalSort( | ^~~~~~~~~~~~~~~~~~~~ /tmp/trizen-henning/python-or-tools/src/or-tools-9.3/ortools/graph/topologicalsorter.h:85:8: Anmerkung: Standardattribute müssen vor den Deklarationsspezifizierern stehen, um für die Deklaration zu gelten, oder ihnen folgen, um für den Typ zu gelten make[2]: *** [ortools/graph/CMakeFiles/ortools_graph.dir/build.make:230: ortools/graph/CMakeFiles/ortools_graph.dir/topologicalsorter.cc.o] Fehler 1 make[1]: *** [CMakeFiles/Makefile2:6741: ortools/graph/CMakeFiles/ortools_graph.dir/all] Fehler 2 make[1]: *** Es wird auf noch nicht beendete Prozesse gewartet....

fow0ryl commented on 2022-07-31 13:21 (UTC)

I cannot find the dependency: absl-py

Valicek1 commented on 2022-05-27 06:43 (UTC)

Hi, as arch has jumped from gcc 11 to gcc 12, or-tools are not able to get compiled. Here is patch for quick-fix:

diff --git a/PKGBUILD b/PKGBUILD
index e48deed..03fb285 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ arch=('x86_64' 'i686' 'aarch64' 'armv7h')
 url="https://github.com/google/or-tools"
 license=('Apache2')
 depends=('python>=3.6' 'swig' 'python-protobuf>=3.19.1' 'absl-py>=0.13' 'python-numpy>=1.13.3')
-makedepends=('cmake' 'wget' 'lsb-release' 'automake' 'python-wheel' 'python-pip' 'git' 'python-mypy-protobuf')
+makedepends=('cmake' 'wget' 'lsb-release' 'automake' 'python-wheel' 'python-pip' 'git' 'python-mypy-protobuf' 'gcc11')
 optdepends=('cplex: CPLEX solver support' 'python-pandas: used by some examples' 'python-matplotlib: used by some examples')
 options=(!emptydirs)
 source=("https://github.com/google/or-tools/archive/v${pkgver}.tar.gz")
@@ -16,9 +16,9 @@ b2sums=('3d2ca42788909801621efdb134e31d5638d9cbd50c4b879aa291a7ff7a0e8765b6bcb9d
 build() {
     cd "${srcdir}/or-tools-${pkgver}"
     if [ `pacman -Qi cpelx &>/dev/null` ]; then
-        cmake -S. -Bbuild -DBUILD_PYTHON:BOOL=ON -DUSE_CPLEX:BOOL=ON -DCPLEX_ROOT=/usr/lib/cplex
+        cmake -S. -Bbuild -DBUILD_PYTHON:BOOL=ON -DUSE_CPLEX:BOOL=ON -DCPLEX_ROOT=/usr/lib/cplex -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11
     else
-       cmake -S. -Bbuild -DBUILD_PYTHON:BOOL=ON
+       cmake -S. -Bbuild -DBUILD_PYTHON:BOOL=ON -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11
     fi
     cmake --build build
 }


marcelom87 commented on 2022-03-31 18:50 (UTC)

Hi guys - I have received a bug when using python-or-tools 9.3-1, after trying to execute the bin-packing problem example in: https://developers.google.com/optimization/cp/channeling . When executing the lines:

solver = cp_model.CpSolver()
status = solver.Solve(model)

I received:

/usr/include/c++/11.2.0/bits/stl_vector.h:1063: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator const [with _Tp = operations_research::sat::Literal; _Alloc = std::allocator<operations_research::sat::Literal>; std::vector<_Tp, _Alloc>::const_reference = const operations_research::sat::Literal&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__n < this->size()' failed. [Finished in 0.5s with exit code -6]

My arch is updated and my Python is the 3.10.4 .

sameer commented on 2022-01-15 17:04 (UTC) (edited on 2022-01-15 17:05 (UTC) by sameer)

I checked ortools-9.2.9999.dist-info/METADATA and found dependencies on absl-py & python-numpy which have been added in ff45efd6fab7. Seems like python-mypy-protobuf is needed as makedepends so I've added that in 9507eb4a61fd. Pandas + matplotlib only seem to be necessary to run examples so I've added them as optdepends in abedd03e0e11.

kruzah commented on 2022-01-15 13:48 (UTC) (edited on 2022-01-15 13:49 (UTC) by kruzah)

My build failed with a make error. In my case it was just python-mypy-protobuf which was missing:

protoc-gen-mypy: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--mypy_out: protoc-gen-mypy: Plugin failed with status code 1.
make[2]: *** [CMakeFiles/Pyortools_proto.dir/build.make:89: python/ortools/constraint_solver/assignment_pb2.py] Error 1
make[1]: *** [CMakeFiles/Makefile2:2008: CMakeFiles/Pyortools_proto.dir/all] Error 2