Package Details: python-or-tools 9.14-1

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: 9
Popularity: 0.27
First Submitted: 2017-07-11 23:45 (UTC)
Last Updated: 2025-06-20 15:42 (UTC)

Latest Comments

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

MarsSeed commented on 2024-03-13 18:46 (UTC)

Build is broken:

-- Searching python module: "setuptools"
CMake Warning at cmake/python.cmake:89 (message):
  Can't find python module: "setuptools", install it using pip...
Call Stack (most recent call first):
  cmake/python.cmake:362 (search_python_module)
  CMakeLists.txt:416 (include)

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
    python-xyz', where xyz is the package you are trying to
    install.

    If you wish to install a non-Arch-packaged Python package,
    create a virtual environment using 'python -m venv path/to/venv'.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.

    If you wish to install a non-Arch packaged Python application,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. Make sure you have python-pipx
    installed via pacman.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of 
    breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
CMake Error at cmake/python.cmake:90 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 1"

Call Stack (most recent call first):
  cmake/python.cmake:362 (search_python_module)
  CMakeLists.txt:416 (include)

-- Configuring incomplete, errors occurred!

sameer commented on 2024-03-01 18:06 (UTC)

P.S. Perhaps coin-or-clp should be in dependencies? Otherwise it is downloaded from Git and built by cmake.

There are a bunch of git dependencies pulled in by the build. For now I've been focused on getting the build working, but if you have ideas would be happy to apply a patch.

sameer commented on 2024-03-01 18:03 (UTC) (edited on 2024-03-01 18:03 (UTC) by sameer)

This would allow to use all CPU cores during build. Otherwise build is too slow.

Done!

Actually ended up reverting this, you should be setting MAKEFLAGS in your /etc/makepkg.conf so the build runs concurrently.

sameer commented on 2024-03-01 17:58 (UTC) (edited on 2024-03-01 17:58 (UTC) by sameer)

Hey all, I've updated to v9.8. There is a patch used to fix the build.

I've also adopted the python-mypy-protobuf dep and updated that to the latest version.

This would allow to use all CPU cores during build. Otherwise build is too slow.

Done!

winnie_ua commented on 2023-10-10 22:19 (UTC)

Please change this line

cmake --build build

to this:

cmake --build build -j

This would allow to use all CPU cores during build. Otherwise build is too slow.

P.S. Perhaps coin-or-clp should be in dependencies? Otherwise it is downloaded from Git and built by cmake.

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....