Comments (9)
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.
@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.
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.
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.
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:
-
Upgrade Python (I went to the newest 2.7.11)
-
Setup and Install requirements
virtualenv env source env/bin/activate python --verson >> 2.7.11 pip install esgf-pyclient MyProxyClient
-
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()
-
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.
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.
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.
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.
@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)
- Failing CI build: parsing of HTTPResponse by defusedxml.ElementTree HOT 1
- Is there a way to search the entire ESGF? HOT 4
- `ignore_facet_check` search option appears to be broken
- Dependency problem (version mismatch between pyesgf and requests library) leading to AttributeError: module 'requests_cache' has no attribute 'core' HOT 5
- add "facets" keyword argument to DatasetResult.file_context
- New release? HOT 5
- Import trial of `MyProxyClient` in `pyesgf/logon.py` outputs misleading error and incompatibility with `cryptography` from Anaconda `main` channel HOT 2
- logon for http request HOT 2
- lm.logon timeout HOT 12
- Facets warning with aggregation_context(): unexpected keyword
- CMIP6 data availability? HOT 2
- logon does not allow access to all ESGF nodes HOT 13
- Unexpected number of results for large query
- Not matching all the expected files HOT 4
- logon refused from my laptop HOT 3
- Facets warning appears even when facets are specified HOT 5
- collection import errors from python 3.10 HOT 1
- [via MyProxyClient] Import of `MyProxyClient` fails due to complete retirement of `SafeConfigParser` in Python 3.12 HOT 2
- Fix `tests/test_results` test module
- 503 HTTPErrors should not be failing the tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esgf-pyclient.