maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] GRead : yet another Google Reader application... (PyQt) (https://talk.maemo.org/showthread.php?t=60564)

fpp 2010-11-08 20:50

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 854525)
Version 1.0.2 is in extras-devel.
What's new:
  • manage bad authentication (already handled in the core but not the UI)
  • try to display as many as feeds as we can for the opened category (in the feeds list)

I think the "skipping" started around this version... or maybe Google Reader itself started acting up at that time ?...

Twidi 2010-11-08 21:12

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
I can't see any related between these changes and this bug. Maybe PR1.3/Qt 4.7 bug ?
No idea just now. I didn't see anything in the source code that may cause this. And it's not happening on the desktop version so hard to debug.

grog 2010-11-08 21:15

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by taike_hk (Post 864062)
Offline feature is so great.

Offline feature? :eek: :confused: :cool: How long have we had that & how did I miss the announcment & how do I use it? :o Is that what the "save each" opton is under Item List, Show?

Twidi 2010-11-08 21:23

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Architrion : a new version is available in extra-devels, you can update your apps and then try it this way :
  • open terminal
  • type /opt/GRead/gread.py --debug
  • press enter

GRead will start.

And then when the bug occur copy/paste the terminal content here (or in PM).

Hope i'll see something interesting !

Twidi 2010-11-08 21:27

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
grog : no it's not the "save each". This one is for saving the "all" or "unread only" mode for each feed (but it's not saved when GRead is closed)

The offline feature ("almost" offline) is that you can launch GRead, synchronize all your feeds and you can read it offline. All read/starred/shared operations will be done when online (don't close GRead before...). But you can read (you will not have images in articles)

It's "almost" offline. But more offline than other Google Reader applications for Maemo, and it's why i did this application (often offline in subway...)

Twidi 2010-11-08 21:40

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
fpp : which connection are you using when you have the bug ? I cannot reproduce with wifi

Twidi 2010-11-08 22:00

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
fpp : Hum ok forget what i said.... just happened...

I see in which method the problem come from... i just have to find it now :) [EDIT: argh no it's not in the only one place i found where this could happen :( )]

fpp 2010-11-08 22:11

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 867420)
fpp : which connection are you using when you have the bug ? I cannot reproduce with wifi

Well of course, now that you've said it, I can't either :-)
But I'm pretty sure I've seen it on Wifi. It just happens *a lot more* on 3G, which is why I though of something related to article load times...

EDIT: too late :-)
But good to know you may have an idea what's wrong !

travik 2010-11-08 22:15

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 867413)
grog : no it's not the "save each". This one is for saving the "all" or "unread only" mode for each feed (but it's not saved when GRead is closed)

The offline feature ("almost" offline) is that you can launch GRead, synchronize all your feeds and you can read it offline. All read/starred/shared operations will be done when online (don't close GRead before...). But you can read (you will not have images in articles)

It's "almost" offline. But more offline than other Google Reader applications for Maemo, and it's why i did this application (often offline in subway...)

And if you run all your feeds through Wizard RSS or a similar service that grabs the entire articles, its even more almost offline. One synchronise can give me several hours of reading material.

Twidi 2010-11-08 22:26

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
travik : for some feeds i use the same tips :)

Twidi 2010-11-08 23:37

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
fpp : found it after a lot, lot, lot of debug (the new --debug parameter on command line is great with the "log" method)!

but... ?!!??!!??!

Under certain mysterious circumstances, when a key stay pressed (J or whatever), it's a "Backspace" for the window... !!!

Now that the bug is found, i'm going to resolve it :)

Twidi 2010-11-09 00:48

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
It's a really annoying bug, which occurs only in QtWebkit.

When i press a key (letters only) on the keybard, it does :

Press the good Key
Press "Left key"
Release "Left key"
Press "Backspace"
Release "Backspace"
Press "Right Key"
Release "Right Key"
Release the good Key

Very very strange. I'm working on a bad and ugly workaround (consider backspace key is pressed only if no other key was pressed before and not released)

Twidi 2010-11-09 01:28

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
GRead 1.0.4 will come in extra-devels tonight with my workaround to this bug, after hours of debugging... (and only a few minutes to patch :()

Issam Khan 2010-11-09 01:50

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
hey i was wondering if there was an E book reader that could read Vital Book format any help

ForeverYoung 2010-11-09 11:22

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
1289301248.54 - [op-error] Operation #0 [get_account_feeds for ........@gmail.com] (status=running, tries=1/3): u'\u0418'

I have tags in Russian. On another account with ascii-only tags program works ok.

fpp 2010-11-09 12:03

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 867583)
It's a really annoying bug, which occurs only in QtWebkit. When i press a key (letters only) on the keyboard, it does :
Press the good Key
Press "Left key"
Release "Left key"
Press "Backspace"
Release "Backspace"
Press "Right Key"
Release "Right Key"
Release the good Key

Very strange indeed !... Raises a lot of questions:
- so this started when you switched to QtWebkit for item view, when was that ?

- how come it doesn't happen *every* time ?...

- is the bug in Qt or in PyQt ?

etc. Maybe you should ask Attila about this in the Development forum...

Twidi 2010-11-09 13:38

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
ForeverYoung : can you give me the url of a feed with russian characters ?

fpp : it's QtWebkit from the beginning. Maybe the problem appeared with PR 1.3 and QT 4.7. The bug is in the QWebview so i don't know if it's Qt or PyQt (but qt i think because PyQt is just a layer on top of Qt)

And why not every time... it's because the event is "Key press" and then the action is done and the key release is after. And some time, when the page is heavy, the action can take a long time (not all the rendering in Webkit, but it can be long to load an big article), so for Qt, the time between key press and key release is too long, so it's "long press" and then all the weird stuff.
I tried in a blank qtwebkit and it's the same thing if you make a long press on any key.

fpp 2010-11-09 14:23

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Thanks for the explanation. So my hunch that the symptom was related to page loading times was correct after all.

I just tried the update, it seems to work OK but I only had a short list of items to test. I'll stress it more in the coming days.

A side question : does GRead take notice if a proxy is configured in the currently active connection ? I have one on a Wifi link at work, web sites & such are OK but GRead just sits there spinning...

Architrion 2010-11-09 16:49

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 867409)
Architrion : a new version is available in extra-devels, you can update your apps and then try it this way :
  • open terminal
  • type /opt/GRead/gread.py --debug
  • press enter

GRead will start.

And then when the bug occur copy/paste the terminal content here (or in PM).

Hope i'll see something interesting !

Ok mate, here you have:::

QMainWindow::addToolBar: invalid 'area' argument
QMainWindow::addToolBar: invalid 'area' argument
/usr/lib/python2.5/urlib.py::1205: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
res = map(safe_map._getitem_,s)

On the middle I closed GRead because it keeps trying endless to enter the google account

Thanks, mate

Architrion 2010-11-09 16:56

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
some info about unicode warning on python 2.5

http://docs.python.org/whatsnew/2.5.html

hope it helps (I'm no coder :()

fpp 2010-11-10 13:26

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by fpp (Post 868112)
I just tried the update, it seems to work OK but I only had a short list of items to test. I'll stress it more in the coming days.

Hmm... If this is not a temporary quirk, it looks like the problem is not quite solved... or has come back in disguise :-)

I just ran through a 50+ "All" list, then another 15 after a re-sync, using 3G (can't use Wifi at work because of the proxy issue :-).

I only had a couple of "skip one and go back to list" occurrences, which is not bad.

What's bad (and new) is that I've had quite a lot of "skip one and don't go back to list, just display item N+2"... which is worse in a way because if you're not paying close attention you'll miss the posts altogether !

This didn't happen before AFAIK, but the same old "rules" seem to apply :

* it happens rarely/almost never on most "simple" feeds (plain text like Delicious)

* it happens very often/almost always on content-heavy (and/or potentially malformed) feeds (like Engadget & Gizmodo).

Most of the time if you notice the "skip" you can just press "k" to go back and display the missing article. Gizmodo items are special in this regard, and the worst of the bunch, because they *also* get skipped going back ! Sometimes the only way to get at them is to go back to the list and select them directly...

It would really be easier if QWebkit got fixed :-)

PS: Hardware.fr feeds are also problematic although they're very plain ; I believe they're really malformed because even Feedly has issues with those...


EDIT: and as usual the effect is much less noticeable on Wifi. I just went through a 20+ "All" list at home : no "back-to-list" and only one "jump-to-N+2" (on Gizmodo, of course :-).

grog 2010-11-11 01:22

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 867413)
The offline feature ("almost" offline) is that you can launch GRead, synchronize all your feeds and you can read it offline. All read/starred/shared operations will be done when online (don't close GRead before...). But you can read (you will not have images in articles)

Kewl :). As long as I remember to open GRead before I leave an access point & don't close it until after I get back online it does work quite well. Unfortunately I rarely think of it until I have a few moments while sitting offline somewhere :(

Ideally I would love to have an Alarmed event periodically synchronize to a local database which would then be read by GRead instead of attempting going online. Hey, I can dream, can't I? :)

qwenjis 2010-11-12 10:15

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Can't reinstall this awesome app after reflashing.

Fapman shows "python2.5-qt4-webkit" is missing. When I try apt-get via terminal I get the following
Code:

Nokia-N900:~# apt-get install python2.5-qt4-webkit
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  python2.5-qt4-webkit: Depends: python2.5-qt4-core (= 4.7.4-maemo0) but 4.7.5-maemo1 is to be installed
                        Depends: python2.5-qt4-network (= 4.7.4-maemo0) but it is not going to be installed
                        Depends: python2.5-qt4-dbus (= 4.7.4-maemo0) but 4.7.5-maemo1 is to be installed
E: Broken packages
Nokia-N900:~#

Any suggestions?

lunken 2010-11-12 10:32

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Hi all

I have also this login-issue. Would really like to have this app up and running as it seems very promising. :)

cheers
/Lunken

ops... forgot. I'm running 1.3 and power kernel on N900

Quote:

On the middle I closed GRead because it keeps trying endless to enter the google account

Thanks, mate

Twidi 2010-11-13 16:56

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
fpp : as a workaround i will catch the "release" event and not the "press" event for the navigation keys

-------------------------------

qwenjis : it seems some package are not correctly packaged :(

For me all the packages are available in version "4.7.5-maemo1"

Perhaps you could try to force the version :

Code:

apt-get install python2.5-qt4-webkit=4.7.5-maemo1
-------------------------------

Architrion : could you give me the url of a feed with unicode characters you use ?

-------------------------------

Lunken : could you try launching this way :
  • open terminal
  • type /opt/GRead/gread.py --debug
  • press enter

GRead will start.

And then when the bug occur copy/paste the terminal content here (or in PM).

-------------------------------

grog : the full offline version is planned... "when i'll have time", but yes, i definitely want it :)

Twidi 2010-11-13 18:22

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
For people who have the "feeds fetching could not be done" message, please go to the following url in your browser (you must be logged into your Google Reader account) and copy/paste the content in a private message, so i could try to check what the problem is :

https://www.google.com/reader/api/0/...st?output=json

(i can't have your credentials with that, just the feeds you read, but i promise i use them just for testing)

Twidi 2010-11-13 18:33

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
fpp : could you provide to me the url of feed with really heavy content ? because engadget/gizmodi/hardware.fr are truncated ones

Architrion 2010-11-13 18:50

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 872529)
For people who have the "feeds fetching could not be done" message, please go to the following url in your browser (you must be logged into your Google Reader account) and copy/paste the content in a private message, so i could try to check what the problem is :

https://www.google.com/reader/api/0/...nt?output=json

Do you mean from my laptop browser or from n900's browser?

Twidi 2010-11-13 19:40

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
As you want, but i think it's easier from your laptop. Remember you must be logged to your Google Reader account before (open one tab with google reader and then open the url i gave you in an other one)

fpp 2010-11-13 19:49

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 872543)
fpp : could you provide to me the url of feed with really heavy content ? because engadget/gizmodi/hardware.fr are truncated ones

Note sure what you mean by "truncated", but I don't really have any heavier ones (except maybe Akihabara News, but it's low-traffic). These are the ones I have problems with...

Twidi 2010-11-13 19:55

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
for these three feeds i only have few lines and a "read more" (or other text)

It's the difference between full and truncated feeds. For full ones, all the article's content is provided in the feed, and for truncated ones, we just have an excerpt.

In these feeds, for you, are the article full or only with an excerpt ?

fpp 2010-11-13 21:56

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Here's what I use:

http://www.engadget.com/rss.xml
http://feeds.gawker.com/gizmodo/full
http://www.hardware.fr/backend/news.xml
http://www.hardware.fr/backend/articles.xml

Hardware.fr items are often empty, with just the title. I think they're broken.

Engadget items are mostly complete I think, they just tend to be short on text, with large pictures.

Gizmodo items, despite the RSS link, are indeed truncated, with reduced picture, text, and some navigation menu Gifs. Somehow loading all that in GRead is the most problematic.

The silliest RSS feed I know of is this one. They just sort of dump their web site in it :-)
http://www.akihabaranews.com/fr/rss.html

qwenjis 2010-11-13 21:57

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 872469)
qwenjis : it seems some package are not correctly packaged :(

For me all the packages are available in version "4.7.5-maemo1"

Perhaps you could try to force the version :

Code:

apt-get install python2.5-qt4-webkit=4.7.5-maemo1

That's what I get
Code:

E: Couldn't find package pyhton2.5-qt4-webkit

lunken 2010-11-13 23:17

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
here's my debug report... my credentials are proper
cheers


QMainWindow::addToolBar: invalid 'area' argument
QMainWindow::addToolBar: invalid 'area' argument
1289689282.24 - [op-error] Operation #0 [get_account_feeds for #####@gmail.com] (status=running, tries=1/3): Account is not authenticated
1289689282.52 - [op-start] Operation #0 [get_account_feeds for #####@gmail.com] (status=waiting, tries=1/3)
1289689282.66 - AUTH: load saved auth
1289689282.73 - [op-start] Operation #1 [authenticate for #####@gmail.com] (status=running, tries=1/1)
1289689288.45 - [op-end] Operation #1 [authenticate for #####@gmail.com] (status=done, tries=1/1)
/usr/lib/python2.5/urllib.py:1205: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
res = map(safe_map.__getitem__, s)

Twidi 2010-11-14 15:42

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
qwenjis : seriously i have really no idea, i did not reflash my n900 but i have all repository up to date and all packages are here.

Are you sure your repositories are up to date ? (apt-get update)

lunken : thanks, i saw your mail :) (btw you have an answer for more informations :) )

qwenjis 2010-11-14 17:10

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

qwenjis : seriously i have really no idea, i did not reflash my n900 but i have all repository up to date and all packages are here.

Are you sure your repositories are up to date ? (apt-get update)
Yes, I update my repos very frequent.

Just did apt-get update and tryed installing again. Still the same.

lunken 2010-11-14 17:58

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Yey... the latest version fixed the login-issue. Great work... :-)

Twidi 2010-11-14 18:16

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
A new version is available in extras-devel which should fix the "Feed fetching could not be done" bug. Thanks for all who sent me some data !

fpp : in this version i also catch the "release" event instead of the "press" one for j/n & k/p keys in the item view. With this i have no problem in the gizmodo feed.

qwenjis : could you give me the output of the following command please

Code:

dpkg -l | grep python | grep qt

fpp 2010-11-14 19:05

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Great, trying right away ! :-)

qwenjis 2010-11-14 19:07

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 873246)
qwenjis : could you give me the output of the following command please

Code:

dpkg -l | grep python | grep qt

Code:

~ $ dpkg -l | grep python | grep qt
ii  python2.5-qt4-common                                4.7.5-maemo1                    Shared files for PyQt4
ii  python2.5-qt4-core                                  4.7.5-maemo1                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-dbus                                  4.7.5-maemo1                    Python bindings for Qt dbus mainloop.
ii  python2.5-qt4-gui                                  4.7.5-maemo1                    Python bindings for Qt4 Core components.
ii  python2.5-qt4-maemo5                                4.7.5-maemo1                    Python bindings for Qt4 Core components.



All times are GMT. The time now is 12:07.

vBulletin® Version 3.8.8