Package Details: python-gurobipy 12.0.1-1

Git Clone URL: https://aur.archlinux.org/python-gurobipy.git (read-only, click to copy)
Package Base: python-gurobipy
Description: Python interface to Gurobi
Upstream URL: https://www.gurobi.com/products/gurobi-optimizer
Licenses: custom:Gurobi EULA
Submitter: vitaliikuzhdin
Maintainer: vitaliikuzhdin
Last Packager: vitaliikuzhdin
Votes: 0
Popularity: 0.000000
First Submitted: 2024-09-26 21:36 (UTC)
Last Updated: 2025-01-28 10:51 (UTC)

Latest Comments

vitaliikuzhdin commented on 2025-01-28 10:52 (UTC) (edited on 2025-01-28 10:57 (UTC) by vitaliikuzhdin)

@Viech, package updated, the issue was resolved by upstream.

Viech commented on 2025-01-17 16:08 (UTC)

@vitaliikuzhdin, thanks for your effort! I got it to run locally for now by installing aur/python3.12 and using its ensurepip/pip modules.

vitaliikuzhdin commented on 2025-01-17 15:07 (UTC)

@Viech, I've tried patching it further but I get segfaults. Using aur/python3.12 isn't an option either because we'd have to import all build-time and runtime dependencies for it to work. Until the next update, the package will be broken. Use a tool like pipx to make it work for now.

vitaliikuzhdin commented on 2025-01-12 16:11 (UTC) (edited on 2025-01-12 16:12 (UTC) by vitaliikuzhdin)

@Viech, this is because v12.0.0 was compiled to work with python3.12, but Arch Linux now ships python3.13. I have tried manually patching it to run with python3.13:

find "${pkgdir}${site_packages}" -type f -name '*312*' -exec sh -c 'mv "$0" "${0//312/313}"' {} \;

but I ran into an error:

Python 3.13.1 (main, Dec  4 2024, 18:05:56) [GCC 14.2.1 20240910] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gurobipy
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import gurobipy
  File "/usr/lib/python3.13/site-packages/gurobipy/__init__.py", line 3, in <module>
    from gurobipy._batch import Batch
ImportError: /usr/lib/python3.13/site-packages/gurobipy/_batch.cpython-313-x86_64-linux-gnu.so: undefined symbol: _PyThreadState_UncheckedGet

Until the next version is released, you would be better off running it in a virtual environment. I'll try to repackage this for aur/python312 a bit later.

Viech commented on 2025-01-12 14:43 (UTC)

I've patched the gurobi package to version 12.0.0 and am getting the following exception with this one:

>>> import gurobipy
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import gurobipy
  File "/usr/lib/python3.13/site-packages/gurobipy/__init__.py", line 3, in <module>
    from gurobipy._batch import Batch
ModuleNotFoundError: No module named 'gurobipy._batch'