philipkershaw / myproxyclient Goto Github PK
View Code? Open in Web Editor NEWPython client implementation of MyProxy credential management service - see https://github.com/cedadev/MyProxyClient for maintained version
Python client implementation of MyProxy credential management service - see https://github.com/cedadev/MyProxyClient for maintained version
Hi Phil, how's things? We're moving on to Python=3.12 and noticed an issue with pyesgf client that uses MyProxyClient, that buils down to an import issue:
from myproxy.client import MyProxyClient
spits out:
Traceback (most recent call last):
File "/home/valeriu/ESMValCore/testimp.py", line 1, in <module>
from myproxy.client import MyProxyClient
File "/home/valeriu/miniconda3/envs/esmvaltool-fromlock/lib/python3.12/site-packages/myproxy/client/__init__.py", line 44, in <module>
from myproxy.client.utils.openssl import OpenSSLConfig
File "/home/valeriu/miniconda3/envs/esmvaltool-fromlock/lib/python3.12/site-packages/myproxy/client/utils/__init__.py", line 11, in <module>
from six.moves.configparser import SafeConfigParser
ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/home/valeriu/miniconda3/envs/esmvaltool-fromlock/lib/python3.12/configparser.py). Did you mean: 'RawConfigParser'?
I am using six=1.16
and myproxyclient=2.1.0
. As far as I can see SafeConfigParse
was renamed to ConfigParser
many moons ago benjaminp/six#218 but only now it has been completely nuked https://docs.python.org/3/whatsnew/3.12.html - I can open a PR fix this here if you OK with that? Many thanks and cheers ๐บ
$myproxyclient logon -s myproxy.ceda.ac.uk -b -C ~/.esg/certificates -o ~/.esg/credentials.pem -l lawrenceEnter password for user 'lawrence' on MyProxy server 'myproxy.ceda.ac.uk':
Traceback (most recent call last):
File "/home/bnl/anaconda2/bin/myproxyclient", line 9, in <module>
load_entry_point('MyProxyClient==2.0.1', 'console_scripts', 'myproxyclient')()
File "/home/bnl/anaconda2/lib/python2.7/site-packages/MyProxyClient-2.0.1-py2.7.egg/myproxy/script.py", line 196, in main
do_logon(myproxy, options)
File "/home/bnl/anaconda2/lib/python2.7/site-packages/MyProxyClient-2.0.1-py2.7.egg/myproxy/script.py", line 221, in do_logon
updateTrustRoots=options.trustroots)
File "/home/bnl/anaconda2/lib/python2.7/site-packages/MyProxyClient-2.0.1-py2.7.egg/myproxy/client.py", line 1448, in logon
**getTrustRootsKw)
File "/home/bnl/anaconda2/lib/python2.7/site-packages/MyProxyClient-2.0.1-py2.7.egg/myproxy/client.py", line 1605, in getTrustRoots
conn.write(self.__class__.GLOBUS_INIT_MSG)
File "/home/bnl/anaconda2/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1256, in send
self._raise_ssl_error(self._ssl, result)
File "/home/bnl/anaconda2/lib/python2.7/site-packages/OpenSSL/SSL.py", line 1166, in _raise_ssl_error
raise SysCallError(errno, errorcode.get(errno))
OpenSSL.SSL.SysCallError: (104, 'ECONNRESET')
Hi @philipkershaw,
Currently I am attempting to upload a conda recipe of MyProxyClient to the conda-forge in this PR. The maintainers have requested some clarifications, in particular:
setup.py
.LICENSE.txt
should be included in MANIFEST.in
Let me know if you are able to address these things. If you are too busy, I would be happy to make a PR myself.
I have difficulties generating certificates using MyProxyClient.
When installing MyProxyClient from github, I get the following error:
>>> from myproxy.client import MyProxyClient
>>> myproxy_clnt = MyProxyClient(hostname="esgf-node.llnl.gov")
>>> cert, private_key = myproxy_clnt.logon('nad****,'*****', bootstrap=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/export/nadeau1/MyProxyClient/myproxy/client.py", line 1532, in logon
raise MyProxyClientGetError(errorTxt)
myproxy.client.MyProxyClientGetError: Certificate generation failure.
When using the version from "pip install" it works fine.
>>> from myproxy.client import MyProxyClient
>>> myproxy_clnt = MyProxyClient(hostname="esgf-node.llnl.gov")
>>> cert, private_key = myproxy_clnt.logon('nad****','*****', bootstrap=True)
Can you tell me what is different in the latest update?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.