Giter VIP home page Giter VIP logo

Comments (9)

agstephens avatar agstephens commented on July 1, 2024

Hi @mattben, The main developer of this code has moved on and we discussed whether the "logon.py" module should be deprecated as it is not fully tested. I will discuss with @philipkershaw and get back to you. A better solution might be to use other libraries to handle the authentication. Kind regards, Ag @agstephens

from esgf-pyclient.

mattben avatar mattben commented on July 1, 2024

@agstephens @philipkershaw since @stephenpascoe has moved on, is it safe to say you two are the new maintainers? Instead of deprecating, can we/I fix it? I love this package and would like to see it grow. A lot of my sites i'm working on are Django web apps and having a working esgf-pyclient makes life much easier. Not to be noise or pushy, is there a working group for this repo? If not we could start one? Also maybe instead of having a fork we should ask to move the repo to give us full access and/or just break ties. I'm not sure what the politics and issues would be with that its just an idea. In short I'd be glad to help out with this effort, also thank your for the quick responses.

from esgf-pyclient.

agstephens avatar agstephens commented on July 1, 2024

Hi @mattben,
I have discussed the issue with @philipkershaw and we are keen for you to help us with the development of esgf-pyclient. I have created a GitHub team and invited you into it. You should now have write access to the archive. Please follow the usual protocols of developing in your own branch and then asking me to merge in any changes from your branch when you have tested.
@philipkershaw is busy this week but will take a look at this issue when he gets a moment (unless you fix it before he gets there). Let me know if you have any problems getting access.
Thanks, @ESGF/esgf-pyclient-team

from esgf-pyclient.

mattben avatar mattben commented on July 1, 2024

Thanks @agstephens I'd be very happy to contribute and will conform to the normal github policy of using PRs. Sorry i broke that rule a few days a go, updating the .gitignore file.

to this issues, looks like the curllib does not support ssl context and i'm looking in to using httplib with ssl, more to come.

from esgf-pyclient.

mattben avatar mattben commented on July 1, 2024

I am able to make the package work, with out any code changes. I'd like to recommended updating the docs. http://esgf-pyclient.readthedocs.org/en/latest I'm embarrassed to admit the SSL error was due to a Python version issues. I'm running python 2.7.5/6 on most servers. SSL was updated in python 2.7.9 for SSL Context https://docs.python.org/2/library/ssl.html?highlight=ssl.sslcontext#ssl.SSLContext New in version 2.7.9.. I wrote a basic Test and it works now. The process was:

  1. Upgrade Python (I went to the newest 2.7.11)

  2. Setup and Install requirements

    virtualenv env
    source env/bin/activate
    python --verson
    >> 2.7.11
    pip install esgf-pyclient MyProxyClient
    
  3. The Simple Test Script

    import pyesgf.logon
    from local_settings import * # open_id and password
    oid = open_id
    pw = password
    lm = pyesgf.logon.LogonManager()
    lm.logoff()
    print lm.is_logged_on()
    lm.logon_with_openid(oid, pw)
    print lm.is_logged_on()
    
  4. Run Test

    python logon_test.py
    >> False
    >> True
    

Thank you for your willingness to help and answer my questions, sorry to start a fuss about nothing. I'll continue to test logon and implement it in to my project.

from esgf-pyclient.

agstephens avatar agstephens commented on July 1, 2024

Hi Matthew,

Thanks for working out the issue. I will update the documentation to state this requirement when working with the LogonManager.

Thanks,
Ag

from esgf-pyclient.

agstephens avatar agstephens commented on July 1, 2024

Hi Matthew,

I've added a warning in the docs here:

http://esgf-pyclient.readthedocs.org/en/latest/logon.html

Thanks,
Ag

from esgf-pyclient.

philipkershaw avatar philipkershaw commented on July 1, 2024

Hi Matthew,

Glad to hear that you got to the bottom of this and sorry I wasn’t able to reply sooner.

Regarding SSL dependencies, MyProxyClient uses PyOpenSSL for SSL functionality so I would expect the issues you were seeing could be due to a stale version of PyOpenSSL or MyProxyClient. - Earlier versions of MyProxyClient used SSLv3 but it now uses TLS. If your MyProxy server was rejecting SSLv3 (it should!) then it could cause an error like you were seeing.

Can you send me a full pip freeze output for the configuration that was failing?

Cheers,
Phil

from esgf-pyclient.

mattben avatar mattben commented on July 1, 2024

@philipkershaw I think you 100% correct i've tested around on on a few different versions of python and the issue was either no MyProxyClient installed or and older version.

the only failing output from pip I have shows that MyProxyClient is not installed.

> pip list 
esgf-pyclient (0.1.4b)
Jinja2 (2.8) 
MarkupSafe (0.23)
pip (1.5.6)
setuptools (3.6)

Again sorry for the false alarm.

from esgf-pyclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.