Having trouble installing on MacOSX

45 views
Skip to first unread message

Adam Amara

unread,
Nov 3, 2016, 4:26:05 PM11/3/16
to gc3pie
Hi Everyone,

I'm having trouble installing gc3pie on my mac. I have:

- macOS Sierra
- python 2.7.12
- pip 9.0.0

I followed the instructions on the website and I'm pretty sure my Mac setting are ok (Command Line Tools for XCode, time works etc). After getting a copy of the install script, using curl, I try to run it and I get the message below. I don't know if you have seen this before. I have googled to try to find similar problems but I can't find what I would need to do.

Thanks for help and advice you have

Adam

----
python install.py

==========================
GC3Pie installation script
==========================

This script installs *latest stable version* of GC3Pie in '/Users/amaraa/gc3pie'.

If you encounter any problem running this script, please contact
the GC3Pie team by sending an email to gc3...@googlegroups.com.

Remember to attach the full output of the script, in order to help us
to identify the problem.

Installation info:

    Destination directory:    /Users/amaraa/gc3pie
    Overwrite existing dir:   ask
    Python executable:        /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
    Ask for confirmation:     yes
    Install unreleased code:  no
    Install gc3apps:          yes
    Optional features:        NONE
    Installer script version: 2.0.2


Are you ready to continue? [Y/n] Y
<GC3Pie install>  WARNING: Cannot determine what package manager this Linux distribution has, so I cannot check if requisite software is installed. I'm proceeding anyway, but you may run into errors later. Please write to gc3...@googlegroups.com to get help.
Traceback (most recent call last):
  File "install.py", line 982, in <module>
    main()
  File "install.py", line 130, in main
    create_virtualenv(options.target, options.python)
  File "install.py", line 339, in create_virtualenv
    download(VIRTUALENV_191_URL, to_file='virtualenv.py')
  File "install.py", line 479, in download
    src = urlopen(url)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1241, in https_open
    context=self._context)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>

Riccardo Murri

unread,
Nov 3, 2016, 5:06:22 PM11/3/16
to gc3...@googlegroups.com
Dear Adam,

On 3 November 2016 at 21:26, Adam Amara <adam...@gmail.com> wrote:
> SSL: CERTIFICATE_VERIFY_FAILED

We have had reports of this sort in the past, which were solved by
this StackOverflow answer:
http://stackoverflow.com/questions/16094187/pip-3-3-ssl-verification-error-mac-osx-10-5-8

Now, that answer is getting old so I wouldn't be sure it helps but maybe try?

If it does not help, can you please post:

- full path of the Python executable
- how you installed it (e.g., came with the OS, Anaconda, homebrew, etc.)
- full path to the `pip` executable
- how you installed it

Thanks!

Riccardo

Adam Amara

unread,
Nov 4, 2016, 4:27:35 AM11/4/16
to gc3pie
Hi Riccardo,

Thank you so much for such a quick response.

I tried to follow the advice on the StackOverflow by rolling back to version 1.2.1 of pip (I used pip install pip==1.2.1), but I get the same error message.

My python path is (which python):

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python
this is a soft link that points to:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

My pip path is (again from which pip):

/opt/local/bin/pip
which again looks like link to 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pip

I installed pip using macports and I think that also installed my python version. Once I had pip and python, pretty much all my other installations are done with pip.

Thank you again!

Adam

Riccardo Murri

unread,
Nov 4, 2016, 6:34:10 AM11/4/16
to gc3...@googlegroups.com
Dear Adam,

I do not have a Mac computer to reproduce the error, so what I'm going
to suggest now is a bit of a shot in the dark.

A possible workaround could be:

1. Download file `virtualenv.py
2. Comment out line 339 in `install.py` (the one that reads
`download(VIRTUALENV_...)`
3. Run the installation procedure again.

Riccardo Murri

unread,
Nov 4, 2016, 6:39:09 AM11/4/16
to gc3...@googlegroups.com
Dear Adam,

please disregard my previous message! Somehow I hit the wrong key and
an unfinished draft was sent.

I do not have a Mac computer to reproduce the error, so what I'm going
to suggest now is a bit of a shot in the dark.

A possible workaround could be:

1. Download file `virtualenv.py` from
https://raw.github.com/pypa/virtualenv/1.9.1/virtualenv.py and save it
in the same directory where GC3Pie's `install.py` script is.
2. Comment out line 339 in `install.py` (the one that reads
`download(VIRTUALENV_...)`
3. Run the installation procedure again.

Let us know whether this works.

The issue seems to stem from the fact that during the installation
procedure we try to download the `virtualenv.py` directly from its
source repository at GitHub. Your Python installation (via macports)
likely has the SSL certificates for PyPI, python.org and other major
Python sites (so you can successfully install stuff via `pip install`)
but apparently lacks the SSL/TLS root certificate for GitHub.com.
Unfortunately, I have no idea where such root certificates should be
placed on a MacOSX filesystem (in Ubuntu and Debian GNU/Linux, it
would be `/etc/ssl/certs`).

Hope this helps,
Riccardo

Adam Amara

unread,
Nov 4, 2016, 11:27:52 AM11/4/16
to gc3pie
Riccardo, Thank you so much!!

That seems to have done the trick. I now get to the magical words:


===============================
Installation of GC3Pie is done!
===============================


Again, thank you.

Adam




On Thursday, November 3, 2016 at 9:26:05 PM UTC+1, Adam Amara wrote:
Reply all
Reply to author
Forward
0 new messages