[GRASS-user] g.extension and SSL

Dear GRASS list,

I'm trying to install an extension with ~g.extension r.stream.order~ and I'm getting a Python error:

    IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)

I see no mention of "g.extension" and "SSL" on Google or the archives for this list. Does anyone have any suggestions?

Thanks,

  -k.

Have you tried using the GUI? (Settings - Addons extensions - Install extensions from addons)

It asks you to set a Repository which may be your issue. (???)

[?]

Chris

Chris Bartolomei P.E.
bartolomei.chris@ensco.com
________________________________
From: grass-user <grass-user-bounces@lists.osgeo.org> on behalf of Ken Mankoff <mankoff@gmail.com>
Sent: Tuesday, October 31, 2017 1:39:41 PM
To: GRASS user list
Subject: [GRASS-user] g.extension and SSL

Dear GRASS list,

I'm trying to install an extension with ~g.extension r.stream.order~ and I'm getting a Python error:

    IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)

I see no mention of "g.extension" and "SSL" on Google or the archives for this list. Does anyone have any suggestions?

Thanks,

  -k.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_grass-2Duser&d=DwIGaQ&c=DsZY2bea7iNIzyp-7sZ0t0F2UfNQZUfZhEPCv_2wBI0&r=O31ltou6ygJL2Y01kQyNJJD2kiILIsbyz2V0Hn4lFUY&m=ldapzrVBIpGeZPJvxf9yt-ssZ9QZ3yKGMReAHzaUklw&s=eaCroE1VjdJYzbnoS38w36dNXLrm-zKJT57GhEPC6cg&e=

________________________________

The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws.

In case anyone else runs across this issue (SSL and g.extension), I've sort-of solved it for now. These are the steps I had to take to get an extension installed on Mac OS X and GRASS 7.2.0 installed via fink. I recall a year ago g.extension worked rather easily with a Homebrew installation.

If I download the ZIP file and try to install the extension that way:

   g.extension -s extension=r.stream.order url=/path/to/r.stream.order-71621.zip

I'm told:

    ERROR: You don't have permission to install extension to
       </sw/Applications/GRASS-mac-7.2.app/Contents/MacOS>. Try to run
       g.extension with administrator rights (su or sudo).

Adding sudo before ~g.extension~ does not work.

I made it farther by creating a new GRASS location as sudo:

    sudo grass72 -c EPSG:3413 ./Gtmp
    g.extension -s extension=r.stream.order url=/path/to/r.stream.order-71621.zip

But g.extension build fails with:

    In file included from io.c:1:
    ./io.h:8:10: fatal error: 'grass/glocale.h' file not found
    #include <grass/glocale.h>

From the full error message some work was being done in "/sw/src/fink.build/grass72-mac-7.2.0-1/grass-7.2.0/Applications". I looked there and found a sort-of empty shell of the GRASS.app. I fixed it with:

    cd /sw/src/fink.build/grass72-mac-7.2.0-1/grass-7.2.0/Applications
    sudo mv GRASS-mac-7.2.app/ GRASS-mac-7.2.app.no
    sudo ln -s /sw/Applications/GRASS-mac-7.2.app

Then

    g.extension -s extension=r.stream.order url=/path/to/r.stream.order-71621.zip

reports

    Installation of <r.stream.order> successfully finished

But ~g.extension -a~ reports: "No extension (module) installed"

Still, ~r.stream.order --help~ does print something, and it appears that the module does run.

I hope this is helpful for someone else, but I doubt it will be due to the limited Google results for these topics. Perhaps the someone else it helps is a future me.

  -k.

Hi Chris,

On 2017-10-31 at 21:00, Bartolomei.Chris <Bartolomei.Chris@ensco.com> wrote:

Have you tried using the GUI? (Settings - Addons extensions - Install
extensions from addons)

I did try the GUI. I recall it worked better once in the past, but I had the same errors now. I've solved it for now (see other self-reply).

Thanks for the suggestion,

  -k.

On Oct 31, 2017 9:39 PM, “Ken Mankoff” <mankoff@gmail.com> wrote:

Dear GRASS list,

I’m trying to install an extension with ~g.extension r.stream.order~ and I’m getting a Python error:

IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)

I see no mention of “g.extension” and “SSL” on Google or the archives for this list. Does anyone have any suggestions?

I wonder if this might be the problem:

https://trac.osgeo.org/osgeo/ticket/1981

Which operating system are you using?

Markus

On 2017-10-31 at 21:27, Markus Neteler <neteler@osgeo.org> wrote:

On Oct 31, 2017 9:39 PM, "Ken Mankoff" <mankoff@gmail.com> wrote:

I'm trying to install an extension with ~g.extension r.stream.order~
and I'm getting a Python error:

IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed (_ssl.c:661)

I wonder if this might be the problem:

https://trac.osgeo.org/osgeo/ticket/1981

Which operating system are you using?

I'm on OS X.

It may be related to that bug. I've solved it by downloading the ZIP file and installing from a local archive.

  -k.