striata-reader gui

DrBergie

Active Member
Joined
Nov 9, 2008
Messages
39

adrianx

Expert Member
Joined
Jun 30, 2008
Messages
3,761
DrBergie, thanks!

I have noticed that there is a file left over in /tmp - and in my case (Absa), it is *always* called Statement.pdf. I don't know if it works the same with statements from other banks, or if it is something that striata-reader does. (I suspect that it is the way striata-reader does it.) So, the last thing that I would do, would be to delete "Statement.pdf" from /tmp - for security reasons.

Anyway, it's much better than my rudimentary Python script that I use for the same purpose. Mine doesn't have a GUI.

Thanks again.
 
Last edited:

adrianx

Expert Member
Joined
Jun 30, 2008
Messages
3,761
Sorry for the double post.

My PyQt4 skills are not great and I'm new to Python... so, here goes:
I added a closeEvent method to Dialog.
Code:
def closeEvent(self, event):
    os.system("rm /tmp/Statement.pdf")
Maybe it is bad to do it this way.... I'm not sure.
 

DrBergie

Active Member
Joined
Nov 9, 2008
Messages
39
Hi.
Thanks for the feedback.
I have uploaded version 1.01. It dumps the file output statement in a temp folder (using the -outdir= switch), and deletes it on quit.
Enjoy
 

BigAl-sa

Executive Member
Joined
Dec 26, 2006
Messages
6,652
Nice one.

I had a problem that when I double clicked on the script from krusader, it would try and run it from wine. I got around that by writing a script containing:
python striata-reader-gui.py
and then plonked that on the desktop.

Any reason why you open the pdf in a browser rather than directly in a pdf reader?
 

linuxgal

Active Member
Joined
Oct 11, 2006
Messages
49
Hi Dr Bergie,
I came across your app today. Great stuff. But when I ran it, I got error message
Running /usr/bin/striata-reader-1.0-27-linux failed for some reason. Does the
file exists? Is it the correct path? Did you install striata-reader?
I am running the latest libc6 version of striata-reader on Opensuse 11.2 and have the impression that 1.0-27 is an older version. Any way of making it work with a newer version?
 

fskmh

Expert Member
Joined
Feb 23, 2007
Messages
1,184
DrBergie's striata-reader-gui is a Python wrapper, so it doesn't matter whether the program it is calling is libc5 or libc6.

The issue you're having is probably related to the path that is hardcoded into striata-reader-gui.py:
Code:
grep 'PATH_TO_STRIATA_READER =' striata-reader-gui 
PATH_TO_STRIATA_READER = "/usr/bin/striata-reader-1.0-27-linux"

You need to either edit the above to suit your needs or make a symbolic link that matches the file name in the script.
I would go with the former and just use sed to replace "striata-reader-1.0-27-linux" with "striata-reader" like this:

Code:
sed -i "s/striata-reader-1.0-27-linux/striata-reader/g" stratia-reader-gui.py

Make sure you're in the directory where you installed striata-reader-gui.py before doing that.
 

DrBergie

Active Member
Joined
Nov 9, 2008
Messages
39
Hi linuxgal can you please post the output of
Code:
which -a striata-reader
and
Code:
striata-reader -help
Cheers
 

linuxgal

Active Member
Joined
Oct 11, 2006
Messages
49
Hi Dr Bergie,

jane@Penguin:~> which -a striata-reader
/usr/bin/striata-reader
/usr/bin/X11/striata-reader

Striata-reader runs from either one. It is curious as when I ran 'locate striata-reader' it did not show the X11 path. I reedited the app to try /usr/bin/X11/striata-reader as the path but it also does not work.

jane@Penguin:~> striata-reader -help
ERROR: File \'-help\' does not exist or is not readable.

Regards
 
Last edited:

DrBergie

Active Member
Joined
Nov 9, 2008
Messages
39
jane@Penguin:~> striata-reader -help
ERROR: File \'-help\' does not exist or is not readable.
Regards

Clearly your version of striata-reader is not the same as mine. See if you can figure out what version you have there.

I'll try and download the latest one and see if I can get it working. Will be in touch.
 

DrBergie

Active Member
Joined
Nov 9, 2008
Messages
39
Ok, I think I found the problem. The new striata-reader installs a binary file (located at /usr/bin/striata-readerc) and a bash script file (located at /usr/bin/striata-reader). The striata-reader-gui script needs the binary version. (The command arguments for the script are different than the binary file.)

I also fixed some stoopid spelling mistakes, and released version 1.03. For more see http://code.google.com/p/striata-reader-gui/downloads/list
 

linuxgal

Active Member
Joined
Oct 11, 2006
Messages
49
Hi Dr Bergie,
I tried it out but got an error message:
jane@Penguin:~> python striata-reader-gui.py
Traceback (most recent call last):
File "striata-reader-gui.py", line 19, in <module>
import magic
ImportError: No module named magic

I commented out that line: #import magic and now it works 100%.
Regards
 

DrBergie

Active Member
Joined
Nov 9, 2008
Messages
39
:(
Made a bad assumption about the magic package being available. Uploaded version 1.04. Fixed
:)
 

linuxgal

Active Member
Joined
Oct 11, 2006
Messages
49
Thanks Dr Bergie, works 100%.
May I suggest that in the Summary and Labels field of the downloads page, you
can advise which version of your gui to download for which version of striata.
eg. version102: striata-reader-1.0-27-linux and version 1.04: striata-reader_libc6.
If the new one is not going to run on the older striata version.

I have written a little howto for installing striata-reader. Take note - it is aimed at serious newbies. This whole mission arose from someone who contacted me for help through another striata-related comment on my website. He was unfamiliar with many command line concepts.
And Dr Bergie there is a link to your download page :)
http://www.trembath.co.za/striata.html

Corrections and suggestions are welcome.
 
Top