Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#13030 - [tango-generator] Can't find imagemagick
Attached to Project:
Community Packages
Opened by Julius Bullinger (kwurzel) - Thursday, 29 January 2009, 08:49 GMT
Last edited by Geoffroy Carrier (gcarrier) - Monday, 16 March 2009, 01:35 GMT
Opened by Julius Bullinger (kwurzel) - Thursday, 29 January 2009, 08:49 GMT
Last edited by Geoffroy Carrier (gcarrier) - Monday, 16 March 2009, 01:35 GMT
|
DetailsDescription:
tango-generator 3.2.3-1 can't find imagemagick, so you can't start the process of collecting icons. Additional info: * tango-generator 3.2.3-1 * imagemagick-6.4.8.2-1 Steps to reproduce: $ pacman -Sy imagemagick tango-generator |
This task depends upon
Closed by Geoffroy Carrier (gcarrier)
Monday, 16 March 2009, 01:35 GMT
Reason for closing: Upstream
Additional comments about closing: Reported upstream, http://mejogid.ohallwebservices.com/site /index.php?q=node/64
Monday, 16 March 2009, 01:35 GMT
Reason for closing: Upstream
Additional comments about closing: Reported upstream, http://mejogid.ohallwebservices.com/site /index.php?q=node/64
tango-generator.png
[blaster@astaroth ~]$ pacman -Qi tango-generator | grep Version
Versione : 3.2.3-1
[blaster@astaroth ~]$ pacman -Qi imagemagick | grep Version
Versione : 6.4.9.2-1
This is my first bug report ever !!! So I try to do it well. I promise I'll read later whatever faq there are for doing it. Ah, I'm not english speaker, by kind.
I tracked the error to the generator.py file (/usr/lib/python2.5/site-packages/TGenerator/generator.py), in the check_install function. The problem is that there uses os.system ("convert --help >/dev/null") to verify that the program is installed, waiting that if imagemagick is installed this code return 0
But convert return 1 with this args, convert only return 0 if actually do some work (I check it in a terminal) and with convert --help, returns 1
Well, I change the code a little (I'm not very good at python, sorry) something like that:
## here the hack
if magick_result <> 1:
self.gui.w_tree.get_widget("lbl_magick").set_text \
("Imagemagick is not installed. " + str(magick_result))
self.gui.w_tree.get_widget("img_magick").set_from_stock \
(gtk.STOCK_NO, gtk.ICON_SIZE_BUTTON)
else:
self.gui.w_tree.get_widget("lbl_magick").set_text \
("Imagemagick was found.")
self.gui.w_tree.get_widget("img_magick").set_from_stock \
(gtk.STOCK_YES, gtk.ICON_SIZE_BUTTON)
total_working += 1
## here end the hacks
And then, the program works!!! (almost it says it found imagemagick ... I don't know if this little hack breaks something else). Right now the programs is stuck in the generating custom theme item (I don't know if it's normal, I never used this program before).
Well, I hope this can help.
Simply, in generator.py, replace elif with else.
## The Code
if magick_result == 32512:
self.gui.w_tree.get_widget("lbl_magick").set_text \
("Imagemagick is not installed.")
self.gui.w_tree.get_widget("img_magick").set_from_stock \
(gtk.STOCK_NO, gtk.ICON_SIZE_BUTTON)
else:
self.gui.w_tree.get_widget("lbl_magick").set_text \
("Imagemagick was found.")
self.gui.w_tree.get_widget("img_magick").set_from_stock \
(gtk.STOCK_YES, gtk.ICON_SIZE_BUTTON)
total_working += 1
## End of Code