comic applet not working

Bug #197812 reported by avdzm
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Awn
Invalid
Undecided
Unassigned
Awn Extras
Fix Released
High
Andrew Starr-Bochicchio

Bug Description

Hey All,

I love the comic applet,
however for the last 3 weeks, it hasn't been working.
All the release within the 3 weeks haven't fixed it.

i have the trunk version, 0.2.7~bzr199-gutsy-1-1.

any ideas, thanks.

Tags: comic
Revision history for this message
Mark Lee (malept) wrote :

Since this is an applet-specific bug, it needs to go in the awn-extras project.

With regards to the bug itself, Could you please run avant-window-navigator in a terminal, add the comic applet if you haven't done so already, and attach the output here?

Changed in awn:
importance: Undecided → High
status: New → Incomplete
Mark Lee (malept)
Changed in awn:
status: New → Invalid
Revision history for this message
avdzm (alecos85) wrote :

I found the problem,

Before when you load the comic applet, it would download the comic or gif file to your home directory.
Now i found the gif file in the /tmp directory,

when i move it to my home dir, the applet works.

I've attached a screen shot on how the applet looks like,
before i move the file to my home directory.

Hence, the applet doesn't know the correct dir to load from.

Changed in awn-extras:
assignee: nobody → pavpanchekha
status: Incomplete → Confirmed
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

From dup:

"So I changed line 34 of comicdialog.py from:
 icon_name = './dilbert.gif'
to:
 icon_name = '/tmp/dilbert.gif'
that is the location where the other scripts download the comics."

I tried doing that awhile back when I first saw this bug posted, but it doesn't work for me. Just creates a new error:

/usr/local/lib/awn/applets/comic/comicdialog.py:37: GtkWarning: gtk_widget_set_size_request: assertion `GTK_IS_WIDGET (widget)' failed
  self.set_size_request(dim[0], dim[1])

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Hmmm...

So I tried the above again. It will work for me if I select a comic from the context menu. I think I was wrongly assuming that it set one of the comics as a default. I'm going to go ahead and push this change.

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

 372. By Andrew Starr-Bochicchio 2 minutes ago

     * src/comic/comicdialog.py
      - Changed path to /tmp/ (LP: #197812)

Changed in awn-extras:
assignee: pavpanchekha → andrewsomething
status: Confirmed → Fix Committed
Revision history for this message
avdzm (alecos85) wrote :

thanks,
for the fix, will be waiting for the update.

Even with my release when awn loads it doesn't download automaticaly the first comic.

although i think the older ones did.

thanks again.

Revision history for this message
astyonax (astyonax) wrote : Re: [Bug 197812] Re: comic applet not working

if you indent self.build_dialog() at line 85 of comic.py so it's inside the
__init__(..)
the applet will download automatically, but it will not show the applet's
icon until it downloaded the comics,
I believe it should show the icon and then download.

Also I changed line 168: showover is NOT a member of App

The output of diff new_comic_file old_comic_file is:
84,85c84,85
<
< self.build_dialog()
---
>
> self.build_dialog()
168c168
< if showhover:
---
> if self.showhover:

'night
Guglielmo Saggiorato

2008/3/21, avdzm <email address hidden>:
>
> thanks,
> for the fix, will be waiting for the update.
>
> Even with my release when awn loads it doesn't download automaticaly the
> first comic.
>
> although i think the older ones did.
>
> thanks again.
>
>
> --
> comic applet not working
> https://bugs.launchpad.net/bugs/197812
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in Avant Window Navigator: Invalid
> Status in Awn Extras: Fix Committed
>
> Bug description:
> Hey All,
>
> I love the comic applet,
> however for the last 3 weeks, it hasn't been working.
> All the release within the 3 weeks haven't fixed it.
>
> i have the trunk version, 0.2.7~bzr199-gutsy-1-1.
>
> any ideas, thanks.
>

--
Vivi come se dovessi morire domani, pensa come se non dovessi morire mai.

May the Living be Dead?

Le persone troppo serie finiscono per farsi male, ed anche quelle che lo
sono troppo poco.

Revision history for this message
avdzm (alecos85) wrote :

hey all,

I don't know if any1 uses the comic applet and saw todays(2/3/08) xkcd's comic strip.
Here is the permanent link http://xkcd.com/405/ to it.

The comic is large and greater than my screen 1440x990 and
the comic just goes out of my screen as shown in the attachment.

I think it would be a great idea to resize the comic if it's greater than the screen or
maybe at least to add scroll bars, but i don't think it would look that great.

I know this comic strip is probably a 1 time thing.

But it's something to think about.

Revision history for this message
Mark Lee (malept) wrote :

Please put this feature request in a new bug, so it can be tracked easier.

Revision history for this message
avdzm (alecos85) wrote :

ok done.

Changed in awn-extras:
milestone: none → 0.2.8
Revision history for this message
Chelovik (chelovik) wrote :

Hi
I am having trouble with the Comic Applet ... it has been working great, up until 21 June08, when all I get when I click on the applet is the word "Comic".

Starting the applet in a terminal gives me the following:
$ avant-window-navigator
Screen is composited.
APPLET : /usr/lib/awn/applets/separator.desktop
LOADED : /home/paul/Desktop/firefox.desktop
LOADED : /home/paul/Desktop/ooo-calc.desktop
LOADED : /home/paul/Desktop/ooo-writer.desktop
LOADED : /home/paul/Desktop/evolution-mail.desktop
LOADED : /home/paul/Desktop/eclipse.desktop
LOADED : /usr/share/applications/gimp.desktop
APPLET : /usr/lib/awn/applets/taskman.desktop
APPLET : /usr/lib/awn/applets/calendar.desktop
APPLET : /usr/lib/awn/applets/PyClock.desktop
APPLET : /usr/lib/awn/applets/file-browser-launcher.desktop
APPLET : /usr/lib/awn/applets/weather.desktop
APPLET : /usr/lib/awn/applets/comic.desktop
APPLET : /usr/lib/awn/applets/separator.desktop
APPLET : /usr/lib/awn/applets/trasher.desktop
APPLET : /usr/lib/awn/applets/quit-applet.desktop
APPLET : /usr/lib/awn/applets/comics.desktop
APPLET : /usr/lib/awn/applets/stacks.desktop
['/usr/lib/awn/applets/calendar', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0', '/usr/lib/awn/applets/calendar/google']
Traceback (most recent call last):
  File "/usr/lib/awn/applets/comics/comics.py", line 37, in <module>
    import comics_add
  File "/usr/lib/awn/applets/comics/comics_add.py", line 33, in <module>
    from feed import Feed
  File "/usr/lib/awn/applets/comics/feed.py", line 21, in <module>
    import feedparser
ImportError: No module named feedparser
Weather Applet: Unable to remove old map file <built-in method map of App object at 0x8474874>
Weather Applet: Unable to remove old map file <built-in method map of App object at 0x8474874>
Traceback (most recent call last):
  File "/usr/lib/awn/applets/comic/comicdialog.py", line 35, in expose
    icon = gdk.pixbuf_new_from_file(icon_name)
gobject.GError: Failed to open file '/tmp/dilbert.gif': No such file or directory

... does anyone know what is happening here? I have also installed this on another PC, and having the identical problem.
thanks in advance

Revision history for this message
Mark Lee (malept) wrote :

> ImportError: No module named feedparser

This error means that you do not have the feedparser package installed, which is a dependency of comics (note the "s"). This is covered in the dependency matrix on the wiki (although if you have installed from a package, the package manager should have already installed this for you):

http://wiki.awn-project.org/Awn_Extras:Dependency_Matrix

> Traceback (most recent call last):
> File "/usr/lib/awn/applets/comic/comicdialog.py", line 35, in expose
> icon = gdk.pixbuf_new_from_file(icon_name)
> gobject.GError: Failed to open file '/tmp/dilbert.gif': No such file or directory

I recommend that you only use one of the comic-related applets. The "comics" applet is much more well-written and better maintained, and once you fix your dependency problems, it should provide all of the same functionality (and more) as the "comic" applet. Although, this problem should probably be looked at.

Changed in awn-extras:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.