Unable to Add Accounts

54 views
Skip to first unread message

Storey Redshaw

unread,
May 10, 2014, 3:56:01 PM5/10/14
to turpi...@googlegroups.com
Hello everyone, I recently found Turpial and I'd love to use it, however I'm getting problems with Oauth. I've laready gone through a fair amount of topics on here about it and I'm still at a loss. I'm running Archlinux, with all the the preqs met.

As for OAuth, I have these installed:
community/python-oauthlib 0.6.1-2
community/python2-oauth 1.0.1-3
community/python2-oauthlib 0.6.1-2
aur/python2-oauth2 1.5.211-2 

turpial -d output:
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
DEBUG::Using gst as sound system
/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
DEBUG:AppConfig:Started
DEBUG:AppConfig:CONFIG_FILE: /home/tetra/.config/turpial/config
DEBUG:AppConfig:FILTERS_FILE: /home/tetra/.config/turpial/filtered
DEBUG:AppConfig:FRIENDS_FILE: /home/tetra/.config/turpial/friends
DEBUG:Controller:Starting Turpial 3.5.9-dev
DEBUG:AppConfig:Started
DEBUG:AppConfig:CONFIG_FILE: /home/tetra/.config/turpial/config
DEBUG:AppConfig:FILTERS_FILE: /home/tetra/.config/turpial/filtered
DEBUG:AppConfig:FRIENDS_FILE: /home/tetra/.config/turpial/friends
DEBUG:change me:Started
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
DEBUG:requests.packages.urllib3.connectionpool:"GET /oauth/request_token HTTP/1.1" 401 62
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/accounts.py", line 149, in __register_twitter_account
    oauth_dialog = OAuthDialog(self, account.request_oauth_access())
  File "/usr/lib/python2.7/site-packages/libturpial/api/models/account.py", line 162, in request_oauth_access
    return self.protocol.request_token()
  File "/usr/lib/python2.7/site-packages/libturpial/lib/protocols/twitter/twitter.py", line 105, in request_token
    return self.http.request_token()
  File "/usr/lib/python2.7/site-packages/libturpial/lib/http.py", line 336, in request_token
    self.token = oauth.OAuthToken.from_string(req.text)
  File "/usr/lib/python2.7/site-packages/oauth/oauth.py", line 142, in from_string
    key = params['oauth_token'][0]
KeyError: 'oauth_token'
<type 'exceptions.KeyError'>: 'oauth_token'


So yeah, any help would be great.

Wil Alvarez

unread,
May 10, 2014, 7:45:04 PM5/10/14
to turpi...@googlegroups.com
Hello Storey,

That error is commonly associated to issues with the dependencies. I strongly recommend you that uninstall:

community/python-oauthlib 0.6.1-2
community/python2-oauthlib 0.6.1-2
aur/python2-oauth2 1.5.211-2 

And only leave:

community/python2-oauth 1.0.1-3

Besides, check that the other dependencies are installed in their required versions:

simplejson>=3.3.1
requests>=2.0.0

I use to install these packages from pip (not aur) but from community or aur should work too. Verify this information and let me know if the error continues.

Regards


--
Has recibido este mensaje porque estás suscrito al grupo "Turpial-Dev" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a turpial-dev...@googlegroups.com.
Para acceder a más opciones, visita https://groups.google.com/d/optout.



--
Wil A. Alvarez
Linux Counter #415026
Debian Counter #259

Storey Redshaw

unread,
May 12, 2014, 5:47:55 PM5/12/14
to turpi...@googlegroups.com
Thanks for the reply Wil! I've removed the other packages and I only have:

community/python2-oauth 1.0.1-3
and
community/python-simplejson 3.4.0-1  
community/python-requests-2.2.1-2

and it worked perfectly! :D Thank you very much for your help! Can't wait to dive in!

Wil Alvarez

unread,
May 12, 2014, 6:08:42 PM5/12/14
to turpi...@googlegroups.com
You're welcome, I'm glad it worked. Comments and suggestions about the application are welcome.

Regards


--
Has recibido este mensaje porque estás suscrito al grupo "Turpial-Dev" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a turpial-dev...@googlegroups.com.
Para acceder a más opciones, visita https://groups.google.com/d/optout.

Storey Redshaw

unread,
May 12, 2014, 7:54:39 PM5/12/14
to turpi...@googlegroups.com
Once I get a bit more used to it, I'd love to! I'll let you know any quirks or general comments in here in this thread in a day or so! :)

I've been running it with -d just to see if anything is being weird too. If so, I'll upload a log. 

Wil Alvarez

unread,
May 12, 2014, 9:23:13 PM5/12/14
to turpi...@googlegroups.com

Great! Thanks for your support

Reply all
Reply to author
Forward
0 new messages