machalekj / rt Goto Github PK
View Code? Open in Web Editor NEWPython interface to Request Tracker API (GitHub mirror)
License: GNU General Public License v3.0
Python interface to Request Tracker API (GitHub mirror)
License: GNU General Public License v3.0
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
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
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
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.