Guru

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

Guru displays random 'fortune cookies' at configurable intervals.
Depends: Fortune
Recommends: PyQt4 (for the config dialog. See the README.txt)
Last changelog:

13 years ago

v0.40 Initial release

v0.41: Bugfix. Fixed that timer didn't reset on doubleclick.

v1.0 Added optional configuration dialog.

v1.0.1 Bugfix: Manually entered font color in the config dialog was not saved.
Theme now automatically reloads when using the config dialog.

pyrforos

13 years ago

the same for me...I can see the box , the image but not text...
One thing that i found is that there are no "fortune text" in any file of the theme!souldnt be there something?

Report

lordtoran

13 years ago

Guru uses the "fortune" command to obtain the text. It doesn't contain text itself.

Report

C

Petunia

12 years ago

Yes, the theme does not contain the actual fortunes. It just invokes the 'Fortune' program.

I'm unable to duplicate the problem but it seem to be related to the configparser module. It would be interesting to know what distribution and what python version the problem appear on.

Tina

Report

lordtoran

12 years ago

Python 2.51 on Kubuntu 7.10.

I went through the code too and narrowed it down to the same thing you described. Maybe some recent Python version introduced some breakage into that external class.

Report

C

Petunia

12 years ago

Great. Thanks. I'll throw Kubuntu on a spare machine and see if I get the same problem.

Tina

Report

TeeAhr1

13 years ago

I get the gnu and the bubble, but no text. Here's my output; I don't know what it means, but hope it helps.

sys.path.insert(0, '/home/teeahr1/sourcefiles-etc/superk/Guru/')
Traceback (most recent call last):
File "/home/teeahr1/sourcefiles-etc/superk/Guru/guru.py", line 34, in <module>
hide = config.get('appearance', 'guruhide')
File "/usr/lib/python2.5/ConfigParser.py", line 511, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'appearance'
Error in sys.excepthook:
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
File "/home/teeahr1/sourcefiles-etc/superk/Guru/guru.py", line 34, in <module>
hide = config.get('appearance', 'guruhide')
File "/usr/lib/python2.5/ConfigParser.py", line 511, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'appearance'
------------------------------------------------------
What does ImportError mean?

It means that I couldn't load a python add-on guru.py
If this is a regular theme and doesn't use python
extensions, then nothing is wrong.
------------------------------------------------------

Report

C

Petunia

13 years ago

Looks like your 'guru.conf' is messed up somehow so that the 'appearance' section is missing. Extracting the theme tarball again should restore it.

Drop me a PM, preferably with the content of your 'guru.conf', if that does not resolve the problem.

Thanks!
Tina

Report

lordtoran

13 years ago

I have the same problem and same console output and my guru.conf is ok. It started when I upgraded the Guru to 1.0.1.

Report

morfeusz

12 years ago

I've got the same problem. Could you fix it??

Report

sakasa

13 years ago

Very Nice work.

Sincerely, Sakasa

Report

bigceca

13 years ago

wasn't so easier if the code was simply
"karamba x=30 y=30 w=540 h=220 color=0,255,255 locked=false
IMAGE X=0 Y=0 PATH="pics/gnutheme.png"
defaultfont font="times" fontsize=12 color=0,0,0
text x=5 y=5 w=350 h=90 sensor=program program="fortune -n 150 -s" interval=60000"
with this solution you have the same theme with more stability....and if you want to do customizable the theme add comment to source...eg
#if you don't want the gnu change "gnutheme.png" with "nognu.png"....
but very great theme...great idea...

Report

C

Petunia

13 years ago

Yes, but I like the flexibility that Python provides. Like being able to have the theme give a nice and friendly error message etc. And as most other things it's a work in progress.

Glad you liked it though :)

Report

loggeman

13 years ago

Maybe you should convert this to a more powerful plasmoid?! Really like this one...

However, if clicking or scrolling on the theme, the theme will pick a new fortune. If waiting a while the theme automaticly picks a new fortune. But clicking/scrolling does not reset the timer for the automagic change of a fortune.

Otherwise... good one... ;-)

//Oskar

Report

C

Petunia

13 years ago

Thanks for pointing out the timer problem. It should be fixed now.
I haven't got around to really look into Plasma yet but the plasmoids looks exciting. :)

Report

13 years ago

v0.40 Initial release

v0.41: Bugfix. Fixed that timer didn't reset on doubleclick.

v1.0 Added optional configuration dialog.

v1.0.1 Bugfix: Manually entered font color in the config dialog was not saved.
Theme now automatically reloads when using the config dialog.

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.0.1
updated Oct 09 2007
added Sep 15 2007
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1