Giter Site home page Giter Site logo

myproxyclient's People

Contributors

agoodm avatar asharwood avatar philipkershaw avatar stephenpascoe avatar

Watchers

 avatar  avatar

myproxyclient's Issues

Error importing `from myproxy.client import MyProxyClient` with Python=3.12 due to SafeConfigParser being completely retired

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 ๐Ÿบ

Errors using myproxyclient on linux mint 17.3 via anaconda python

$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')

Update license files

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:

  • Is the license BSD or LGPL? It appears to be BSD 3-clause, which would mean the trove classifier needs to be corrected 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.

certificate generation failure

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?

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.