Uploaded image for project: 'Software Support'
  1. Software Support
  2. SUP-663

Downloading ecmwf-api-client-python.tgz, problem with SSL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • WEBAPI
    • None
    • Academic

    Description

      Hi there,

      I'm wondering if you can help me out. I've been attempting to install the ecmwf-api-client-python.tgz package for Python 3.3. When I run the command " sudo pip install https://software.ecmwf.int/wiki/download/attachments/23694554/ecmwf-api-client-python.tgz" I am getting an error:

      Downloading/unpacking https://software.ecmwf.int/wiki/download/attachments/23694554/ecmwf-api-client-python.tgz
        Downloading ecmwf-api-client-python.tgz
        Running setup.py egg_info for package from https://software.ecmwf.int/wiki/download/attachments/23694554/ecmwf-api-client-python.tgz
          Traceback (most recent call last):
            File "<string>", line 16, in <module>
            File "/tmp/pip-bkpiz7-build/setup.py", line 14, in <module>
              import ecmwfapi
            File "ecmwfapi/__init__.py", line 12, in <module>
              from ecmwfapi import api
            File "ecmwfapi/api.py", line 27
              print "Python socket module was not compiled with SSL support. Aborting..."
                                                                                        ^
          SyntaxError: invalid syntax
          Complete output from command python setup.py egg_info:
          Traceback (most recent call last):
      
        File "<string>", line 16, in <module>
      
        File "/tmp/pip-bkpiz7-build/setup.py", line 14, in <module>
      
          import ecmwfapi
      
        File "ecmwfapi/__init__.py", line 12, in <module>
      
          from ecmwfapi import api
      
        File "ecmwfapi/api.py", line 27
      
          print "Python socket module was not compiled with SSL support. Aborting..."
      
                                                                                    ^
      
      SyntaxError: invalid syntax
      

      I'm wondering if there is someone who can tell me how to fix this? I also attempted to download the .tgz file directly, but cannot get the ecmwfapi module from that file - there are only 4 files in there, none of which represent the module, and when I try to run the setup,py, it just tells me that ecmwfapi does not exist.

      Also, I noticed that there are no examples of python script yet up on your page, was wondering if you have examples you could send along?

      Any help would be greatly appreciated.

      Barring that - do you have another way to batch access climatologies of your data that does not involve me having to learn Java or Perl?

      Thanks very much

      Sincerely,
      Grant Humphries

      Attachments

        Activity

          People

            usv Daniel Varela Santoalla
            humphries.grant@gmail.com Grant Humphries
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: