You are not logged in.

#51 2011-11-15 11:21:00

Nic0
Member
From: France
Registered: 2009-05-10
Posts: 29
Website

Re: Tyrs - NCurses Twitter and Identica client

Hi geekmiki,

I knew about this really weird behavior, someone once report it to me, but unfortunately, I wasn't able to figure it out, I don't know where it may come from, as I haven't write in tho code to put some "q"s just to annoyed some people tongue

There is a quick way to avoid this by removing those borders as follow :

[params]
tweet_border  = 0

No more border that it would mean no more "q"s, I know it isn't satisfying, and wish I could fix this one!

Hope it does the trick, thanks for noticing it.

Offline

#52 2011-11-17 20:57:48

kyla
Member
From: Arlington, VA
Registered: 2011-03-12
Posts: 112
Website

Re: Tyrs - NCurses Twitter and Identica client

Is there something in the config to stop it from cutting off some urls? Like it does in this image:

tYmJydg

Offline

#53 2011-11-18 00:30:46

Nic0
Member
From: France
Registered: 2009-05-10
Posts: 29
Website

Re: Tyrs - NCurses Twitter and Identica client

Hi,

The issue probably come from the version of python-twitter, I think you're using the 0.8.1 (yaourt -Qi python-twitter), and this behavior was corrected with the last release (0.8.2) of python-twitter (the API I'm using). I had this behavior a couple of time reported before, that why I'll go for it.

Could you try to update the API and let me know, I flagged the package out-of-date few months ago, but I should indeed either reach the maintainer to get it right or try to get this package orphan.

Thank to noticing it, and please keep me update smile

EDIT: Ce paquet a été étiqueté comme périmé. (Tue, 31 May 2011 19:46:53 +0000)
Ok.. it was maybe more that a couple of months tongue
(sorry about my French)

Last edited by Nic0 (2011-11-18 00:33:37)

Offline

#54 2011-11-18 00:45:27

kyla
Member
From: Arlington, VA
Registered: 2011-03-12
Posts: 112
Website

Re: Tyrs - NCurses Twitter and Identica client

Thanks Nic0, I upgraded python-twitter to 0.8.2 and that no longer seems to be a problem. I scrolled through everything until I got to the tweet I posted the pic of, neither it nor any other urls I saw were cut off.

Offline

#55 2011-11-20 04:56:35

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: Tyrs - NCurses Twitter and Identica client

Latest tyrs package from the AUR; I get the same thing whether I used the git or stable:

Which service do you want to use?

1. Twitter
2. Identi.ca

Your choice? > 1
base_url:https://api.twitter.com
Requesting temp token from Twitter
Invalid respond from Twitter requesting temp token: 401
Traceback (most recent call last):
  File "/usr/bin/tyrs", line 18, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/src/tyrs.py", line 63, in main
    init_conf()
  File "/usr/lib/python2.7/site-packages/src/tyrs.py", line 73, in init_conf
    conf = config.Config(arguments())
  File "/usr/lib/python2.7/site-packages/src/config.py", line 48, in __init__
    self.new_account()
  File "/usr/lib/python2.7/site-packages/src/config.py", line 140, in new_account
    self.createTokenFile()
  File "/usr/lib/python2.7/site-packages/src/config.py", line 441, in createTokenFile
    conf.set('token', 'oauth_token', self.oauth_token)
AttributeError: 'Config' object has no attribute 'oauth_token'

#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#56 2011-11-20 16:19:38

Nic0
Member
From: France
Registered: 2009-05-10
Posts: 29
Website

Re: Tyrs - NCurses Twitter and Identica client

Hi,

I've tried few instants ago, and it works for me.

lifeafter2am wrote:

Invalid respond from Twitter requesting temp token: 401

The problem come from the Twitter answer, as it shown an 401 error. (
Either it come from them, it might happen some time that they're have troubles with them service, but if you tried several time, at several moments, then it come from something else.
It could come from a missing dependency, even if I'm surprise that their is no ImportError shown. You might make sure python2-oauth is installed.

Last edited by Nic0 (2011-11-20 16:20:30)

Offline

#57 2011-11-20 16:32:36

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: Tyrs - NCurses Twitter and Identica client

Nic0 wrote:

Hi,

I've tried few instants ago, and it works for me.

lifeafter2am wrote:

Invalid respond from Twitter requesting temp token: 401

The problem come from the Twitter answer, as it shown an 401 error. (
Either it come from them, it might happen some time that they're have troubles with them service, but if you tried several time, at several moments, then it come from something else.
It could come from a missing dependency, even if I'm surprise that their is no ImportError shown. You might make sure python2-oauth is installed.

I think your right, seems like it was just a twitter error as it is working now.  Thanks!  smile


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#58 2011-12-27 23:29:30

arbulus
Member
Registered: 2007-12-25
Posts: 45

Re: Tyrs - NCurses Twitter and Identica client

When trying to run tyrs, I get this error:

$ tyrs
Traceback (most recent call last):
  File "/usr/bin/tyrs", line 11, in <module>
    from tyrs.tyrs import main
  File "/usr/lib/python2.7/site-packages/tyrs/tyrs.py", line 33, in <module>
    import tweets
  File "/usr/lib/python2.7/site-packages/tyrs/tweets.py", line 19, in <module>
    import urwid
ImportError: No module named urwid

It happens if I use tyrs or tyrs-git. Urwid is installed, as are all of the other dependencies for tyrs.

Offline

#59 2011-12-28 16:26:00

Nic0
Member
From: France
Registered: 2009-05-10
Posts: 29
Website

Re: Tyrs - NCurses Twitter and Identica client

Hi, what happen is urwid is now package for python2 and 3 since few days ago. As it follow now the python naming convention, it's not anymore python-urwid, but python2-urwid. I updated the package build for Tyrs, and I'll try to notify it for the maintainer of tyrs-git.

Thanks for the feedback.

Offline

#60 2011-12-30 05:31:05

arbulus
Member
Registered: 2007-12-25
Posts: 45

Re: Tyrs - NCurses Twitter and Identica client

Nic0 wrote:

Hi, what happen is urwid is now package for python2 and 3 since few days ago. As it follow now the python naming convention, it's not anymore python-urwid, but python2-urwid. I updated the package build for Tyrs, and I'll try to notify it for the maintainer of tyrs-git.

Thanks for the feedback.

When I installed python2-urwid everything worked as it should. Thank you!

Offline

#61 2011-12-30 09:28:02

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: Tyrs - NCurses Twitter and Identica client

Getting this errors with both tyrs-git and tyrs:

Traceback (most recent call last):
  File "/usr/bin/tyrs", line 16, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/tyrs/tyrs.py", line 66, in main
    init_tyrs()
  File "/usr/lib/python2.7/site-packages/tyrs/tyrs.py", line 71, in init_tyrs
    init_interface()
  File "/usr/lib/python2.7/site-packages/tyrs/tyrs.py", line 88, in init_interface
    user_interface = Interface()
  File "/usr/lib/python2.7/site-packages/tyrs/interface.py", line 49, in __init__
    self.main_loop()
  File "/usr/lib/python2.7/site-packages/tyrs/interface.py", line 59, in main_loop
    self.loop = urwid.MainLoop(self.main_frame, palette, unhandled_input=key_handle.keystroke)
  File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 82, in __init__
    screen.register_palette(palette)
  File "/usr/lib/python2.7/site-packages/urwid/display_common.py", line 743, in register_palette
    self.register_palette_entry(*item)
  File "/usr/lib/python2.7/site-packages/urwid/display_common.py", line 809, in register_palette_entry
    basic = AttrSpec(foreground, background, 16)
  File "/usr/lib/python2.7/site-packages/urwid/display_common.py", line 485, in __init__
    self.foreground = fg
  File "/usr/lib/python2.7/site-packages/urwid/display_common.py", line 574, in _set_foreground
    "in foreground (%s)") % (repr(part), repr(foreground)))
urwid.display_common.AttrSpecError: Unrecognised color specification '6'in foreground ('6')

python2-urwid is installed:

0 akai@Arch-Akai: ~ 10:26 ---> pacman -Q python2-urwid
python2-urwid 1.0.1-1

My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#62 2011-12-30 10:37:59

Nic0
Member
From: France
Registered: 2009-05-10
Posts: 29
Website

Re: Tyrs - NCurses Twitter and Identica client

@ethail, do you have any colors in your [colors] section, if so, maybe you still have numbers value, as now Tyrs take string values, due to urwid front end.
Just delete the colors section on your ~/.config/tyrs/tyrs.cfg file. If there is nothing in here, and still crashed, let me know.

Thanks ethail

Offline

#63 2011-12-30 11:02:59

ethail
Member
From: Spain
Registered: 2011-02-10
Posts: 225

Re: Tyrs - NCurses Twitter and Identica client

Working now. Thank you Nic0


My GitHub Page

Best Testing Repo Warning: [testing] means it can eat you hamster, catch fire and you should keep it away from children. And I'm serious here, it's not an April 1st joke.

Offline

#64 2012-03-07 21:22:44

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: Tyrs - NCurses Twitter and Identica client

Nic0, I'm having a problem with Tyrs (v 0.6.2 from the AUR). Whenever I try to see a conversation thread, it splits out the following error:

Traceback (most recent call last):
  File "/usr/bin/tyrs", line 16, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/tyrs/tyrs.py", line 66, in main
    init_tyrs()
  File "/usr/lib/python2.7/site-packages/tyrs/tyrs.py", line 71, in init_tyrs
    init_interface()
  File "/usr/lib/python2.7/site-packages/tyrs/tyrs.py", line 88, in init_interface
    user_interface = Interface()
  File "/usr/lib/python2.7/site-packages/tyrs/interface.py", line 49, in __init__
    self.main_loop()
  File "/usr/lib/python2.7/site-packages/tyrs/interface.py", line 62, in main_loop
    self.loop.run()
  File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 274, in run
    self.screen.run_wrapper(self._run)
  File "/usr/lib/python2.7/site-packages/urwid/raw_display.py", line 237, in run_wrapper
    return fn()
  File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 307, in _run
    self.event_loop.run()
  File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 682, in run
    self._loop()
  File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 720, in _loop
    self._watch_files[fd]()
  File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 358, in _update
    self.process_input(keys)
  File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 453, in process_input
    something_handled |= bool(self.unhandled_input(k))
  File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 488, in unhandled_input
    return self._unhandled_input(input)
  File "/usr/lib/python2.7/site-packages/tyrs/keys.py", line 123, in keystroke
    self.api.get_thread()
  File "/usr/lib/python2.7/site-packages/tyrs/tweets.py", line 282, in get_thread
    self.timelines['thread'].empty()
  File "/usr/lib/python2.7/site-packages/tyrs/timeline.py", line 140, in empty
    self.__init__()
TypeError: __init__() takes exactly 2 arguments (1 given)

Any ideas on how to solve this?

Offline

#65 2012-04-30 13:10:21

Nic0
Member
From: France
Registered: 2009-05-10
Posts: 29
Website

Re: Tyrs - NCurses Twitter and Identica client

It's been awhile since I haven't done any works on Tyrs.

But, the good news is that Tyrs has been forked, since a couple of months. It comes with improvements and new features. So if you liked Tyrs, I highly recommend to check out Turses!

https://github.com/alejandrogomez/turses

Offline

Board footer

Powered by FluxBB