Giter Club home page Giter Club logo

rt's People

Contributors

sperrygrove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

prophaner

rt's Issues

login() errors out when using HTTPS

tracker = rt.Rt('https://testit:48089/REST/1.0/','testuser','testuser')
tracker.login()

Traceback (most recent call last):
File "<pyshell#7>", line 1, in
tracker.login()
File "C:\Python27\lib\site-packages\rt-1.0.0-py2.7.egg\rt.py", line 142, in login
without_login=True)) == 200
File "C:\Python27\lib\site-packages\rt-1.0.0-py2.7.egg\rt.py", line 107, in __request
raise Exception(e.args[0].message)
Exception: [Errno 1] _ssl.c:504: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

I checked out the requests package doc for information on how to avoid the SSL CERT issue here:
http://docs.python-requests.org/en/latest/user/advanced/#session-objects under SSL Cert Verification and used the workaround they suggested:

os.environ['REQUESTS_CA_BUNDLE'] = 'False'
tracker = rt.Rt('https://testit:48089/REST/1.0/','testuser','testuser')
tracker.login()

Traceback (most recent call last):
File "<pyshell#12>", line 1, in
tracker.login()
File "C:\Python27\lib\site-packages\rt-1.0.0-py2.7.egg\rt.py", line 142, in login
without_login=True)) == 200
File "C:\Python27\lib\site-packages\rt-1.0.0-py2.7.egg\rt.py", line 107, in __request
raise Exception(e.args[0].message)
Exception: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib

Version number and setup.py

Hi,

I'm trying to package python-rt for Arch Linux, but I can't find a version number anywhere. Is it safe to assume version 1.0.0?

Also, a setup.py file would be great, as it simplifies packaging. This is all that is needed:

from distutils.core import setup

setup(
        name='rt',
        version='1.0.0',
        py_modules=['rt'],
                          )

Thank you.

Best regards,
Alexander Rødseth

TypeError at .login()

Hi,

When trying to use the rt module to log in, I get the following error:

>>> tracker.login()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.2/site-packages/rt.py", line 139, in login
    without_login=True)) == 200
  File "/usr/lib/python3.2/site-packages/rt.py", line 112, in __get_status_code
    return int(msg.split('\n')[0].split(' ')[1])
TypeError: Type str doesn't support the buffer API
>>> 

This is on 64-bit Arch Linux with Python 3.2.3 (the default version of Python for Arch Linux).

Best regards,
Alexander Rødseth

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.