Cplex installation (for beginners)

100 views
Skip to first unread message

David Coudert

unread,
Aug 26, 2020, 12:10:33 PM8/26/20
to sage-devel
Hello,

I'm posting this here as it may help improving the documentation of sage math and the install guide of Cplex.

A colleague (with very little system knowledge) just installed sagemath on his new macOS laptop using the  precompiled binary sage-9.1-OSX_10.15.4-x86_64.app.dmg.
He also installed Cplex Studio 12.10.
Then he followed the install guide of Cplex from https://github.com/mkoeppe/sage-numerical-backends-cplex and got the following error.
I don't know how to solve this issue.

Any help is more than welcome :))

Best,
David.

=====
aioli:~ nnisse$ sage -python -m pip install sage-numerical-backends-cplex
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting sage-numerical-backends-cplex
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
  Could not fetch URL https://pypi.org/simple/sage-numerical-backends-cplex/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/sage-numerical-backends-cplex/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement sage-numerical-backends-cplex (from versions: )
No matching distribution found for sage-numerical-backends-cplex
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
=====

Dima Pasechnik

unread,
Aug 26, 2020, 12:23:20 PM8/26/20
to sage-devel
On Wed, Aug 26, 2020 at 5:10 PM David Coudert <david....@gmail.com> wrote:
>
> Hello,
>
> I'm posting this here as it may help improving the documentation of sage math and the install guide of Cplex.
>
> A colleague (with very little system knowledge) just installed sagemath on his new macOS laptop using the precompiled binary sage-9.1-OSX_10.15.4-x86_64.app.dmg.
> He also installed Cplex Studio 12.10.
> Then he followed the install guide of Cplex from https://github.com/mkoeppe/sage-numerical-backends-cplex and got the following error.
> I don't know how to solve this issue.
>
> Any help is more than welcome :))
>
> Best,
> David.
>
> =====
> aioli:~ nnisse$ sage -python -m pip install sage-numerical-backends-cplex
> pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

this is the 1st problem to fix, by doing
"sage -i openssl pyopenssl"
and crossing your fingers...




> Collecting sage-numerical-backends-cplex
> Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
> Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
> Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
> Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
> Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/sage-numerical-backends-cplex/
> Could not fetch URL https://pypi.org/simple/sage-numerical-backends-cplex/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/sage-numerical-backends-cplex/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
> Could not find a version that satisfies the requirement sage-numerical-backends-cplex (from versions: )
> No matching distribution found for sage-numerical-backends-cplex
> pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
> Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
> =====
>
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/45eb9955-098f-4583-9716-b1651ce89845n%40googlegroups.com.

Zachary Scherr

unread,
Aug 26, 2020, 4:49:10 PM8/26/20
to sage-devel
I think you need to run:

sage -i openssl
sage -f python3

and then you should be able to add packages through pip. 

Dima Pasechnik

unread,
Aug 26, 2020, 4:58:36 PM8/26/20
to sage-devel


On Wed, 26 Aug 2020, 21:49 Zachary Scherr, <zsc...@gmail.com> wrote:
I think you need to run:

sage -i openssl
sage -f python3

and then you should be able to add packages through pip. 

I would be surprised if this works on 
a machine without Xcode installed.

David Coudert

unread,
Aug 26, 2020, 5:13:25 PM8/26/20
to sage-devel
Xcode and home-brew are installed on that machine
We'll try tomorrow and tell you the result.
Thanks.

Matthias Koeppe

unread,
Aug 26, 2020, 6:25:28 PM8/26/20
to sage-devel
This package is also prepared as an optional sage package.

David Coudert

unread,
Aug 27, 2020, 7:44:07 AM8/27/20
to sage-devel
"sage -i sage_numerical_backends_cplex" is working well. Thank you.

May be we should say that in the documentation of https://github.com/mkoeppe/sage-numerical-backends-cplex.

Best,
David.

Matthias Koeppe

unread,
Aug 27, 2020, 11:00:14 AM8/27/20
to sage-devel
On Thursday, August 27, 2020 at 4:44:07 AM UTC-7, David Coudert wrote:
"sage -i sage_numerical_backends_cplex" is working well. Thank you.

May be we should say that in the documentation of https://github.com/mkoeppe/sage-numerical-backends-cplex.


I have already updated the README there - please take a look  

David Coudert

unread,
Aug 27, 2020, 12:16:16 PM8/27/20
to sage-devel
Perfect. Thank you.
Reply all
Reply to author
Forward
0 new messages