turses, python-{tweepy,httplib2,oauth2,mock}

General talk about packaging procedures and packages.
Post Reply
User avatar
fredg
Posts: 232
Joined: 3. Oct 2009, 16:50
Location: Lyon, France
Contact:

turses, python-{tweepy,httplib2,oauth2,mock}

Post by fredg » 9. Sep 2012, 14:19

Hi,

Turses is a powerful Twitter client for the console.
https://github.com/alejandrogomez/turses

For now, I am having an issue with a SSL error :

Code: Select all

[fredg@nbook64:~] turses
base_url:https://api.twitter.com
Requesting temp token from Twitter
Traceback (most recent call last):
  File "/usr/bin/turses", line 9, in <module>
    load_entry_point('turses==0.2.7', 'console_scripts', 'turses')()
  File "/usr/lib64/python2.7/site-packages/turses/cli.py", line 127, in main
    configuration.load()
  File "/usr/lib64/python2.7/site-packages/turses/config.py", line 475, in load
    self._init_token()
  File "/usr/lib64/python2.7/site-packages/turses/config.py", line 572, in _init_token
    self.authorize_new_account()
  File "/usr/lib64/python2.7/site-packages/turses/config.py", line 757, in authorize_new_account
    access_token = authorization()
  File "/usr/lib64/python2.7/site-packages/turses/api/base.py", line 63, in authorization
    resp, content = oauth_client.request(REQUEST_TOKEN_URL, 'GET')
  File "/usr/lib64/python2.7/site-packages/oauth2/__init__.py", line 682, in request
    connection_type=connection_type)
  File "/usr/lib64/python2.7/site-packages/httplib2/__init__.py", line 1584, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib64/python2.7/site-packages/httplib2/__init__.py", line 1332, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib64/python2.7/site-packages/httplib2/__init__.py", line 1268, in _conn_request
    conn.connect()
  File "/usr/lib64/python2.7/site-packages/httplib2/__init__.py", line 1014, in connect
    self.disable_ssl_certificate_validation, self.ca_certs)
  File "/usr/lib64/python2.7/site-packages/httplib2/__init__.py", line 80, in _ssl_wrap_socket
    cert_reqs=cert_reqs, ca_certs=ca_certs)
  File "/usr/lib64/python2.7/ssl.py", line 381, in wrap_socket
    ciphers=ciphers)
  File "/usr/lib64/python2.7/ssl.py", line 141, in __init__
    ciphers)
ssl.SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib

Bug opened : https://github.com/alejandrogomez/turses/issues/113

If you have a clue, don't hesitate ;)

++

djemos
Salix Warrior
Posts: 1064
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: [WIP] turses, python-{tweepy,httplib2,oauth2,mock}

Post by djemos » 9. Sep 2012, 19:53

You can su to root to use SSL connection. Normal user have no access to ssl
I compile turses and deps
Then su to root
run turces
Got the the PIN from twitter and connected to twitter :)

User avatar
fredg
Posts: 232
Joined: 3. Oct 2009, 16:50
Location: Lyon, France
Contact:

Re: [WIP] turses, python-{tweepy,httplib2,oauth2,mock}

Post by fredg » 10. Sep 2012, 18:05

Thank you djemos :)

Done, and uploaded.

++

Post Reply