I have an error when trying to install the gurobi backend that is now a 
separate optional package.
I followed the instructions for installing the gurobi backend with sage 
9.1.beta0 and macOS Mojave 10.14.6.
I have gurobi 8.11 and gurobi.sh is in my path (so no need to set 
GUROBI_HOME).
(note that I successfully installed the cplex backend).

Should I report this issue directly 
on https://github.com/mkoeppe/sage-numerical-backends-gurobi ?

confetti:sage dcoudert$ ./sage -python -m pip install 
sage-numerical-backends-gurobi

Collecting sage-numerical-backends-gurobi

  Downloading 
https://files.pythonhosted.org/packages/2c/5c/e1532bb6cde28cf86ebffd408ccb500d7b846bc29bbd1c5e479a2f18acb6/sage_numerical_backends_gurobi-9.0b12.tar.gz

Requirement already satisfied: sphinx in 
./local/lib/python3.7/site-packages (from sage-numerical-backends-gurobi) 
(1.8.5)

Requirement already satisfied: six>=1.5 in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (1.12.0)

Requirement already satisfied: Jinja2>=2.3 in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (2.10)

Requirement already satisfied: Pygments>=2.0 in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (2.3.1)

Requirement already satisfied: docutils>=0.11 in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (0.14)

Requirement already satisfied: snowballstemmer>=1.1 in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (1.2.1)

Requirement already satisfied: babel!=2.0,>=1.3 in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (2.6.0)

Requirement already satisfied: alabaster<0.8,>=0.7 in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (0.7.12)

Requirement already satisfied: imagesize in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (1.1.0)

Requirement already satisfied: requests>=2.0.0 in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (2.13.0)

Requirement already satisfied: setuptools in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (40.6.3)

Requirement already satisfied: packaging in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (18.0)

Requirement already satisfied: sphinxcontrib-websupport in 
./local/lib/python3.7/site-packages (from 
sphinx->sage-numerical-backends-gurobi) (1.1.0)

Requirement already satisfied: MarkupSafe>=0.23 in 
./local/lib/python3.7/site-packages (from 
Jinja2>=2.3->sphinx->sage-numerical-backends-gurobi) (1.1.0)

Requirement already satisfied: pytz>=0a in 
./local/lib/python3.7/site-packages (from 
babel!=2.0,>=1.3->sphinx->sage-numerical-backends-gurobi) (2018.7)

Requirement already satisfied: pyparsing>=2.0.2 in 
./local/lib/python3.7/site-packages (from 
packaging->sphinx->sage-numerical-backends-gurobi) (2.3.0)

Installing collected packages: sage-numerical-backends-gurobi

  Running setup.py install for sage-numerical-backends-gurobi ... error

    Complete output from command /Users/dcoudert/sage/local/bin/python3 -u 
-c "import setuptools, 
tokenize;__file__='/private/var/folders/l8/sxf193t11mvdyqq56f4w_6_80000gn/T/pip-install-t4k429rc/sage-numerical-backends-gurobi/setup.py';f=getattr(tokenize,
 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/private/var/folders/l8/sxf193t11mvdyqq56f4w_6_80000gn/T/pip-record-sk9om1cp/install-record.txt
 
--single-version-externally-managed --compile:

    Using GUROBI_HOME obtained from gurobi.sh:

    GUROBI_HOME is not set, or it does not point to a directory with a 
Gurobi installation.  Trying to link against -lgurobi

    Checking whether HAVE_SAGE_CPYTHON_STRING...

    Checking whether HAVE_ADD_COL_UNTYPED_ARGS...

    Using compile_time_env: {'HAVE_SAGE_CPYTHON_STRING': True, 
'HAVE_ADD_COL_UNTYPED_ARGS': True}

    running install

    running build

    running build_py

    creating build

    creating build/lib.macosx-10.9-x86_64-3.7

    creating build/lib.macosx-10.9-x86_64-3.7/sage_numerical_backends_gurobi

    copying sage_numerical_backends_gurobi/__init__.py -> 
build/lib.macosx-10.9-x86_64-3.7/sage_numerical_backends_gurobi

    copying sage_numerical_backends_gurobi/gurobi_backend.pxd -> 
build/lib.macosx-10.9-x86_64-3.7/sage_numerical_backends_gurobi

    running build_ext

    building 'sage_numerical_backends_gurobi.gurobi_backend' extension

    creating build/temp.macosx-10.9-x86_64-3.7

    creating 
build/temp.macosx-10.9-x86_64-3.7/sage_numerical_backends_gurobi

    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g 
-fwrapv -O3 -Wall -Wno-unused 
-I/Users/dcoudert/sage/local/lib/python3.7/site-packages/cysignals 
-I/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/cpython 
-I/Users/dcoudert/sage/local/include 
-I/Users/dcoudert/sage/local/lib/python3.7/site-packages 
-I/Users/dcoudert/sage/local/lib/python3.7/site-packages/sage/ext 
-I/Users/dcoudert/sage/local/include/python3.7m 
-I/Users/dcoudert/sage/local/lib/python3.7/site-packages/numpy/core/include 
-I/Users/dcoudert/sage/local/include/python3.7m -c 
sage_numerical_backends_gurobi/gurobi_backend.c -o 
build/temp.macosx-10.9-x86_64-3.7/sage_numerical_backends_gurobi/gurobi_backend.o

    sage_numerical_backends_gurobi/gurobi_backend.c:629:10: fatal error: 
'gurobi_c.h' file not found

    #include "gurobi_c.h"

             ^~~~~~~~~~~~

    1 error generated.

    error: command 'clang' failed with exit status 1

    

    ----------------------------------------

Command "/Users/dcoudert/sage/local/bin/python3 -u -c "import setuptools, 
tokenize;__file__='/private/var/folders/l8/sxf193t11mvdyqq56f4w_6_80000gn/T/pip-install-t4k429rc/sage-numerical-backends-gurobi/setup.py';f=getattr(tokenize,
 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/private/var/folders/l8/sxf193t11mvdyqq56f4w_6_80000gn/T/pip-record-sk9om1cp/install-record.txt
 
--single-version-externally-managed --compile" failed with error code 1 in 
/private/var/folders/l8/sxf193t11mvdyqq56f4w_6_80000gn/T/pip-install-t4k429rc/sage-numerical-backends-gurobi/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/b029c618-5b2a-4535-8e4b-094e496787a7%40googlegroups.com.

Reply via email to