Search Criteria
Package Details: python-or-tools 9.3-1
Package Actions
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: | Apache2 |
Submitter: | dariost |
Maintainer: | sameer |
Last Packager: | sameer |
Votes: | 7 |
Popularity: | 0.000142 |
First Submitted: | 2017-07-11 23:45 (UTC) |
Last Updated: | 2022-03-19 05:10 (UTC) |
Dependencies (16)
- absl-py (python-absl)
- python (python38, python37, nogil-python, python39, python36, python32, python311)
- python-numpy (python-numpy-git, python-numpy-mkl, python-numpy-flame, python-numpy1.22, python-numpy-mkl-bin, python-numpy-openblas)
- python-protobuf (python-protobuf-git)
- swig (swig-git)
- automake (automake-1.7, automake-git, automake-1.11, automake-1.15, automake-1.14) (make)
- cmake (cmake-git) (make)
- git (git-git, git-vfs, git-run-command-patch-git) (make)
- lsb-release (make)
- python-mypy-protobuf (make)
- python-pip (make)
- python-wheel (make)
- wget (wget-git, wget-xdg) (make)
- cplex (optional) – CPLEX solver support
- python-matplotlib (python-matplotlib-git) (optional) – used by some examples
- python-pandas (optional) – used by some examples
Latest Comments
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:
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:
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 onabsl-py
&python-numpy
which have been added in ff45efd6fab7. Seems likepython-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:fow0ryl commented on 2022-01-15 11:38 (UTC) (edited on 2022-01-15 11:38 (UTC) by fow0ryl)
New version 9.2-1 build is working fine for me now. Did not have the packages installed which are named as dependency by @kruzah .... Only python-numpy was installed (as dependency of cura)
kruzah commented on 2022-01-15 11:21 (UTC)
Build misses several dependencies that cause the package to fail to build. Please add dependencies
python-numpy
,python-pandas
,absl-py
, andpython-mypy-protobuf
to PKGBUILD (I'm unsure which of these are runtime deps and which are make-only). Sourced from heresameer commented on 2022-01-14 18:29 (UTC)
Hey all, sorry for the delay. This is fixed in 0ef1baa82d54.
Seems like the makefile method originally used no longer works, so the PKGBUILD now uses cmake directly as outlined here: https://github.com/google/or-tools/blob/stable/cmake/README.md
Let me know if you run into any other issues.
ericfont commented on 2022-01-12 19:49 (UTC)
I'm getting "ERROR: A failure occured in build(). Aborting..." on 9.2-1, but I don't know why cause my terminal screen doesn't go back enough.
fow0ryl commented on 2021-12-30 12:17 (UTC) (edited on 2021-12-30 12:19 (UTC) by fow0ryl)
version 9.2 did not build ...
got tons of errors:
and finaly:
firoz commented on 2021-10-14 13:43 (UTC)
The package() step fails for me: pip [..] → no such option: --root
nobodyinperson commented on 2021-04-10 12:11 (UTC) (edited on 2021-04-10 14:02 (UTC) by nobodyinperson)
For those struggling to build
python-or-tools
on aarch64, here are the required changes for the PKGBUILD (at least for v8.2...):Further info: https://github.com/google/or-tools/issues/2434#issuecomment-817126196
sameer commented on 2020-12-12 03:09 (UTC)
I've updated to v8.1 in b62a6cbdb46d
sameer commented on 2020-10-11 14:35 (UTC) (edited on 2020-10-11 14:39 (UTC) by sameer)
I've updated to v8.0 and added MadTux's suggestion in b6b5cf447d0d.
MadTux commented on 2020-08-14 15:56 (UTC) (edited on 2020-08-14 15:57 (UTC) by MadTux)
Could you add something like
pacman -Qi cplex &> /dev/null && echo 'UNIX_CPLEX_DIR = /usr/lib' >> Makefile.local
to build() please?So that CPLEX can be used out of the box when it is installed.
EDIT: This would go between
make third_party
andmake python
according to the OR-Tools docs.sameer commented on 2020-08-06 00:28 (UTC)
Thanks mcol, added in cdf6e5b20c97
mcol commented on 2020-08-05 17:49 (UTC) (edited on 2020-08-05 17:49 (UTC) by mcol)
Hey, this needs git as a makedepend btw :)
sameer commented on 2020-06-13 06:11 (UTC) (edited on 2020-06-13 06:11 (UTC) by sameer)
flipflop97: thanks for bringing this to my attention, I've added it to makedepends. v7.7 was released today and I've also updated the package to reflect that
flipflop97 commented on 2020-06-05 18:19 (UTC)
Hi, it seems to require
python-pip
as makedepend. Can you add that?sameer commented on 2020-04-24 04:00 (UTC)
FirefighterBlu3: looks like python-wheel was missing in makedepends, which I've now added.
In other news, I've updated to v7.6 which was released today.
FirefighterBlu3 commented on 2020-04-10 17:54 (UTC) (edited on 2020-04-10 17:54 (UTC) by FirefighterBlu3)
has breakage in build()
sameer commented on 2020-01-28 20:50 (UTC) (edited on 2020-01-28 20:50 (UTC) by sameer)
I took maintenance of the package after it was orphaned, but it might be related to the repo being called
or-tools
on GitHub. If there's a way to rename it easily let me know.I've updated the package to v7.5.
mizux commented on 2020-01-28 14:36 (UTC)
why don't naming it python-ortools ? like the pypi package ? https://pypi.org/project/ortools/
sameer commented on 2019-11-14 19:54 (UTC)
Python 3.8 support will arrive with the next release.
sameer commented on 2019-09-18 21:17 (UTC) (edited on 2019-09-18 21:18 (UTC) by sameer)
Zento commented on 2018-08-09 09:40 (UTC) (edited on 2018-08-09 09:40 (UTC) by Zento)
The version limitation of the python dependency seems to be wrong. According to the documentation, the requirement is Python >=3.6 or Python >= 2.7.
Documentation: https://developers.google.com/optimization/install/python/linux
Otherwise, thanks for maintaining the package!
dric512 commented on 2018-05-10 13:29 (UTC)
During installation, I noticed that the following packages are required for installation: wget and lsb-release