From lrz at gnome.org Thu May 5 12:49:46 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Thu May 5 12:41:55 2005 Subject: [Alexandria-list] OSX port Message-ID: <33427.82.239.64.142.1115311786.squirrel@82.239.64.142> Hi all, I am less busy right now, therefore I can resume working a bit on Alexandria. Because I have networking problems with my Laptop under Linux and still have to be on OSX for work, I decided to start a MacOS X port of Alexandria. Some points: - it is using Ruby/Cocoa ; - this will be licensied under the GPL, exactly like the GNOME version ; - it is still under development, I will commit everything when it will be in working shape ; - about the CVS tree, all the OSX-related files will be in the lib/alexandria/ui/macui directory (except the .xcode file that will be in the root directory). -- Laurent From marize at pommot.net Thu May 5 17:46:27 2005 From: marize at pommot.net (Marize Pommot-Maia) Date: Thu May 5 18:28:42 2005 Subject: [Alexandria-list] Alexandria crash Message-ID: <427A9433.80203@pommot.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have just installed Alexandria on my Gentoo box. Typed 'alexandria' at the prompt. The GUI flashes briefly and I get this message: - ----------------------- Alexandria just crashed - ----------------------- Timestamp: Thu May 05 17:41:03 EDT 2005 Message: wrong number of arguments (1 for 2) Backtrace: /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `move' /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:528:in `restore_preferences' /usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:81:in `initialize' /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `new' /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `main' /usr/lib/ruby/site_ruby/1.8/alexandria.rb:60:in `main' /usr/bin/alexandria:10 Release: 0.5.1 Uname -a: Linux kaon.home.net 2.6.11-gentoo-r6 #1 Thu Apr 28 18:30:44 EDT 2005 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux - -- Please report this dump to 'alexandria-list@rubyforge.org' with some additional information, such as the description of the crash and the steps to reproduce it (if it's possible). To reproduce it, I type 'alexandria' at the prompt. Thanks. - -- - ------------------------------------------------------------------------ Marize Pommot-Maia marize@pommot.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCepQz4y2uvMn0AkcRAgQjAJ4m8aEttNZoNQtdflmxLp8/87TSmgCfVsUx 75W/TT2nTnVPhSsG5Bw8upE= =6VVi -----END PGP SIGNATURE----- From rpmohn at panix.com Fri May 6 14:40:22 2005 From: rpmohn at panix.com (Ross Mohn) Date: Fri May 6 14:34:09 2005 Subject: [Alexandria-list] Alexandria crash In-Reply-To: <427A9433.80203@pommot.net> References: <427A9433.80203@pommot.net> Message-ID: <1115404822.31720.3.camel@porcupine.adelphia.net> On Thu, 2005-05-05 at 17:46 -0400, Marize Pommot-Maia wrote: > I have just installed Alexandria on my Gentoo box. Typed 'alexandria' > at the prompt. The GUI flashes briefly and I get this message: I run Alexandria v0.5.1 on Gentoo (x86) without problems. If you want to try that version, here's what you need to put in your /etc/portage/package.keywords file: =app-misc/alexandria-0.5.1 ~x86 =dev-ruby/ruby-gnome2-0.12.0 ~x86 =dev-ruby/ruby-gnomecanvas2-0.12.0 ~x86 =dev-ruby/ruby-gtk2-0.12.0 ~x86 =dev-ruby/ruby-glib2-0.12.0 ~x86 =dev-ruby/ruby-atk-0.12.0 ~x86 =dev-ruby/ruby-pango-0.12.0 ~x86 =dev-ruby/ruby-gdkpixbuf2-0.12.0 ~x86 =dev-ruby/ruby-libart2-0.12.0 ~x86 =dev-ruby/ruby-libglade2-0.12.0 ~x86 =dev-ruby/ruby-gconf2-0.12.0 ~x86 -RPM -- Ross Mohn rpmohn@panix.com From marize at pommot.net Fri May 6 16:07:23 2005 From: marize at pommot.net (Marize Pommot-Maia) Date: Fri May 6 16:02:59 2005 Subject: [Alexandria-list] Re: Alexandria crash Message-ID: <427BCE7B.5080204@pommot.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 My Gentoo box is ~86. All the packages mentioned by Ross Mohn are already installed. Thanks for trying anyway. - -- - ------------------------------------------------------------------------ Marize Pommot-Maia marize@pommot.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCe8574y2uvMn0AkcRAmMvAKDihrx9vvin5EzTtLdFvVWkMZxhcgCgwHti l/1zGgxdRjszE+ANkhyau5w= =4v0C -----END PGP SIGNATURE----- From lrz at gnome.org Fri May 6 16:16:03 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Fri May 6 16:08:33 2005 Subject: [Alexandria-list] Re: Alexandria crash In-Reply-To: <427BCE7B.5080204@pommot.net> References: <427BCE7B.5080204@pommot.net> Message-ID: <41165.82.239.64.142.1115410563.squirrel@82.239.64.142> Hi, It looks like a GConf problem. Can you restart the GConf daemon and try again? gconftool-2 --shutdown Cheers Laurent > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > My Gentoo box is ~86. All the packages mentioned by Ross Mohn are > already installed. Thanks for trying anyway. > - -- > - ------------------------------------------------------------------------ > Marize Pommot-Maia > marize@pommot.net > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFCe8574y2uvMn0AkcRAmMvAKDihrx9vvin5EzTtLdFvVWkMZxhcgCgwHti > l/1zGgxdRjszE+ANkhyau5w= > =4v0C > -----END PGP SIGNATURE----- > _______________________________________________ > Alexandria-list mailing list > Alexandria-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/alexandria-list > -- Laurent From marize at pommot.net Fri May 6 16:17:13 2005 From: marize at pommot.net (Marize Pommot-Maia) Date: Fri May 6 16:12:46 2005 Subject: [Alexandria-list] Re: Alexandria crash In-Reply-To: <41165.82.239.64.142.1115410563.squirrel@82.239.64.142> References: <427BCE7B.5080204@pommot.net> <41165.82.239.64.142.1115410563.squirrel@82.239.64.142> Message-ID: <427BD0C9.6060701@pommot.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Laurent Sansonetti wrote: > Hi, > > It looks like a GConf problem. Can you restart the GConf daemon and try > again? > > gconftool-2 --shutdown > > Cheers > > Laurent > > Yep, that was it! Thanks you very much for your prompt answer. - -- - ------------------------------------------------------------------------ Marize Pommot-Maia marize@pommot.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCe9DI4y2uvMn0AkcRAnc1AJ4snFOKxEVl/JyHaTpdy9aUxdVqvACgyHDv xfntcpowPLmdB1NphyggrvM= =P5EE -----END PGP SIGNATURE----- From o.evans at gmail.com Sun May 8 14:11:09 2005 From: o.evans at gmail.com (Owain Evans) Date: Sun May 8 14:04:51 2005 Subject: [Alexandria-list] Reading upc barcodes patch In-Reply-To: <427A9433.80203@pommot.net> References: <427A9433.80203@pommot.net> Message-ID: <427E563D.1020403@gmail.com> Hello there! This is my first attempt at modifying alexandria to cope with upc-a (american) barcodes. What I ended up with was a very long case statement. (Sorry, I'm not a great coder!) If anybody has got some upc-a barcode books, generally paperbacks from america that have a barcode that doesn't begin with 978, please try it out. If anybody has some advice on how to make the code more efficient/cleaner please let me know! (I want to learn!) Thanks, Owain -------------- next part -------------- # Copyright (C) 2004-2005 Laurent Sansonetti # # Alexandria is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later version. # # Alexandria is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public # License along with Alexandria; see the file COPYING. If not, # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. require 'yaml' require 'fileutils' require 'rexml/document' require 'tempfile' require 'etc' require 'gdk_pixbuf2' require 'open-uri' class Array def sum self.inject(0) { |a,b| a + b } end end module Alexandria class Library < Array attr_reader :name DIR = File.join(ENV['HOME'], '.alexandria') EXT = { :book => '.yaml', :cover => '.cover' } include GetText extend GetText bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8") def path File.join(DIR, @name) end def self.load(name) library = Library.new(name) FileUtils.mkdir_p(library.path) unless File.exists?(library.path) Dir.chdir(library.path) do Dir["*" + EXT[:book]].each do |filename| File.open(filename) do |io| book = YAML.load(io) raise "Not a book" unless book.is_a?(Book) library << book end end # Since 0.4.0 the cover files '_small.jpg' and # '_medium.jpg' have been deprecated for a single medium # cover file named '.cover'. Dir["*" + '_medium.jpg'].each do |medium_cover| FileUtils.mv(medium_cover, medium_cover.sub(/_medium\.jpg$/, EXT[:cover])) end FileUtils.rm_f(Dir['*_small.jpg']) end library end def self.loadall a = [] begin Dir.entries(DIR).each do |file| # skip hidden files next if /^\./.match(file) # skip non-directory files next unless File.stat(File.join(DIR, file)).directory? a << self.load(file) end rescue Errno::ENOENT FileUtils.mkdir_p(DIR) end # create the default library if there is no library yet if a.empty? a << self.load(_("My Library")) end a end def self.move(source_library, dest_library, *books) dest = dest_library.path books.each do |book| FileUtils.mv(source_library.yaml(book), dest) if File.exists?(source_library.cover(book)) FileUtils.mv(source_library.cover(book), dest) end source_library.old_delete(book) dest_library.delete_if { |book2| book2.ident == book.ident } dest_library << book end end class InvalidISBNError < StandardError attr_reader :isbn def initialize(isbn=nil) super() @isbn = isbn end end def self.extract_numbers(isbn) raise "Nil ISBN" if isbn == nil isbn.strip.delete('-').split('').map { |x| raise InvalidISBNError.new(isbn) unless x =~ /[\dX]/ x == 'X' ? 10 : x.to_i } end def self.isbn_checksum(numbers) sum = (0 ... numbers.length).inject(0) { |accumulator,i| accumulator + numbers[i] * (i + 1) } % 11 sum == 10 ? 'X' : sum end def self.valid_isbn?(isbn) begin[0 .. 11] numbers = self.extract_numbers(isbn) numbers.length == 10 and self.isbn_checksum(numbers) == 0 rescue InvalidISBNError false end end def self.ean_checksum(numbers) (10 - ([1, 3, 5, 7, 9, 11].map { |x| numbers[x] }.sum * 3 + [0, 2, 4, 6, 8, 10].map { |x| numbers[x] }.sum)) % 10 end def self.valid_ean?(ean) begin numbers = self.extract_numbers(ean) (numbers.length == 13 and self.ean_checksum(numbers[0 .. 11]) == numbers[12]) or (numbers.length == 18 and self.ean_checksum(numbers[0 .. 11]) == numbers[12]) rescue InvalidISBNError false end end def self.upc_checksum(numbers) (10 - ([0, 2, 4, 6, 8, 10].map { |x| numbers[x] }.sum * 3 + [1, 3, 5, 7, 9].map { |x| numbers[x] }.sum)) % 10 end def self.valid_upc?(upc) begin numbers = self.extract_numbers(upc) (numbers.length == 17 and self.upc_checksum(numbers[0 .. 10]) == numbers[11]) rescue InvalidISBNError false end end def self.upc_convert(upc) test_upc = upc.map { |x| x.to_s }.join() case test_upc when "014794" self.extract_numbers("08041") when "018926" self.extract_numbers("0445") when "027778" self.extract_numbers("0449") when "037145" self.extract_numbers("0812") when "042799" self.extract_numbers("0785") when "043144" self.extract_numbers("0688") when "044903" self.extract_numbers("0312") when "045863" self.extract_numbers("0517") when "046594" self.extract_numbers("0064") when "047132" self.extract_numbers("0152") when "051487" self.extract_numbers("08167") when "051488" self.extract_numbers("0140") when "060771" self.extract_numbers("0002") when "065373" self.extract_numbers("0373") when "070992" self.extract_numbers("0523") when "070993" self.extract_numbers("0446") when "070999" self.extract_numbers("0345") when "071001" self.extract_numbers("0380") when "071009" self.extract_numbers("0440") when "071125" self.extract_numbers("088677") when "071136" self.extract_numbers("0451") when "071149" self.extract_numbers("0451") when "071152" self.extract_numbers("0515") when "071162" self.extract_numbers("0451") when "071268" self.extract_numbers("08217") when "071831" self.extract_numbers("0425") when "071842" self.extract_numbers("08439") when "072742" self.extract_numbers("0441") when "076714" self.extract_numbers("0671") when "076783" self.extract_numbers("0553") when "076814" self.extract_numbers("0449") when "078021" self.extract_numbers("0872") when "079808" self.extract_numbers("0394") when "090129" self.extract_numbers("0679") when "099455" self.extract_numbers("0061") when "099769" self.extract_numbers("0451") end end def self.canonicalise_isbn(isbn) numbers = self.extract_numbers(isbn) canonical = if self.valid_ean?(isbn) # Looks like an EAN number -- extract the intersting part and # calculate a checksum. It would be nice if we could validate # the EAN number somehow. numbers[3 .. 11] + [self.isbn_checksum(numbers[3 .. 11])] elsif self.valid_upc?(isbn) # Seems to be a valid UPC number prefix = self.upc_convert(numbers[0 .. 5]) isbn_sans_chcksm = prefix + numbers[(8 + prefix.length) .. 17] isbn_sans_chcksm + [self.isbn_checksum(isbn_sans_chcksm)] elsif self.valid_isbn?(isbn) # Seems to be a valid ISBN number. numbers[0 .. -2] + [self.isbn_checksum(numbers[0 .. -2])] else raise InvalidISBNError.new(isbn) end canonical.map { |x| x.to_s }.join() end def save(book) book.saved_ident ||= book.ident if book.ident != book.saved_ident FileUtils.rm(yaml(book.saved_ident)) if File.exists?(cover(book.saved_ident)) FileUtils.mv(cover(book.saved_ident), cover(book.ident)) end book.saved_ident = book.ident end File.open(yaml(book), "w") { |io| io.puts book.to_yaml } end def save_cover(book, cover_uri) Dir.chdir(self.path) do # Fetch the cover picture. cover_file = cover(book) File.open(cover_file, "w") do |io| uri = URI.parse(cover_uri) if uri.scheme.nil? # Regular filename. File.open(cover_uri) { |io2| io.puts io2.read } else # Try open-uri. io.puts uri.read end end # Remove the file if it's blank. pixbuf = Gdk::Pixbuf.new(cover_file) if pixbuf.width == 1 and pixbuf.height == 1 File.delete(cover_file) end end end alias_method :old_delete, :delete def delete(book=nil) if book.nil? # delete the whole library FileUtils.rm_rf(self.path) else FileUtils.rm_f([yaml(book), cover(book)]) old_delete(book) end end def cover(something) ident = case something when Book something.ident when String something else raise end File.join(self.path, ident + EXT[:cover]) end def yaml(something) ident = case something when Book something.ident when String something else raise end File.join(self.path, ident + EXT[:book]) end def name=(name) File.rename(path, File.join(DIR, name)) @name = name end def n_rated select { |x| !x.rating.nil? and x.rating > 0 }.length end def n_unrated length - n_rated end ####### private ####### def initialize(name) @name = name end def copy_covers(somewhere) FileUtils.rm_rf(somewhere) if File.exists?(somewhere) FileUtils.mkdir(somewhere) each do |book| next unless File.exists?(cover(book)) FileUtils.cp(File.join(self.path, book.ident + EXT[:cover]), File.join(somewhere, final_cover(book))) end end def jpeg?(file) 'JFIF' == IO.read(file, 10)[6..9] end def final_cover(book) book.ident + (jpeg?(cover(book)) ? '.jpg' : '.gif') end end end -------------- next part -------------- A non-text attachment was scrubbed... Name: library.rb.diff Type: text/x-patch Size: 4301 bytes Desc: not available Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050508/0cb1a9fc/library.rb-0001.bin From kapheine at hypa.net Sun May 8 14:33:45 2005 From: kapheine at hypa.net (Zachary P. Landau) Date: Sun May 8 14:27:20 2005 Subject: [Alexandria-list] Reading upc barcodes patch In-Reply-To: <427E563D.1020403@gmail.com> References: <427A9433.80203@pommot.net> <427E563D.1020403@gmail.com> Message-ID: <20050508183345.GA12206@localhost> On Sun, May 08, 2005 at 07:11:09PM +0100, Owain Evans wrote: > Hello there! > > This is my first attempt at modifying alexandria to cope with upc-a > (american) barcodes. What I ended up with was a very long case > statement. (Sorry, I'm not a great coder!) > > If anybody has got some upc-a barcode books, generally paperbacks from > america that have a barcode that doesn't begin with 978, please try it out. > > If anybody has some advice on how to make the code more > efficient/cleaner please let me know! (I want to learn!) Owain, In this case, you'd probably be better off with a lookup table. Here's an example: AMERICAN_UPC_LOOKUP = { "014794" => "08041", "018926" => "0445", "02778" => "0449" ... } def self.upc_convert(upc) test_upc = upc.map { |x| x.to_s }.join() self.extract_numbers(AMERICAN_UPC_LOOKUP[test_upc]) end -- Zachary P. Landau GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/alexandria-list/attachments/20050508/32525e2a/attachment.bin From dsawyer at blenderwars.com Mon May 9 03:47:22 2005 From: dsawyer at blenderwars.com (Dan Sawyer) Date: Mon May 9 03:42:19 2005 Subject: [Alexandria-list] trouble getting Alexandria to run Message-ID: <200505090047.22822.dsawyer@blenderwars.com> Heya everyone - After being quite enticed by the Alexandria web page, I've gone through installing all the dependencies and Alexandria itself. However, I get a failure when attempting to start Alexandria that goes as follows: thedude@floyd:~/> alexandria /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23:in `require': No such file to load -- gdk_pixbuf2 (LoadError) from /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23 from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67:in `require' from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67 from /usr/bin/alexandria:7:in `require' from /usr/bin/alexandria: ------------- As far as I can tell, all the gdk files are installed, as well as the gnome2-ruby bindings. I haven't been able to find anything useful on this - the only citation I've found of this problem is on an old ruby mailing list archive dealing with problems in ver. 0.14. Any ideas would be greatly appreciated. Has anyone seen this before? -Dan Sawyer From dsawyer at blenderwars.com Mon May 9 04:52:59 2005 From: dsawyer at blenderwars.com (Dan Sawyer) Date: Mon May 9 04:50:47 2005 Subject: [Alexandria-list] trouble getting Alexandria to run In-Reply-To: <200505090047.22822.dsawyer@blenderwars.com> References: <200505090047.22822.dsawyer@blenderwars.com> Message-ID: <200505090153.00389.dsawyer@blenderwars.com> Okay, what was happening was that the pango and gdkpixbuf modules failed to build when installing ruby-gnome2 (no binary package is available for my platform - SuSE 9.2 Pro). Now, I got gdkpixbuf to build by stripping the config made by the global config script and redoing it in the gdkpixbuf subdirectory. However, the same procedure is not working in the pango subdirectory. Instead I'm getting this error which I can't get past. Any tips? Here's the output: make[1]: Entering directory `/home/thedude/downloads/ruby-gnome2-all-0.12.0/pango/src' gcc -fPIC -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall -fno-strict-aliasing -fPIC -Wall -I/opt/gnome/include/pango-1.0 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/home/thedude/downloads/ruby-gnome2-all-0.12.0/glib/src -I. -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux -I/home/thedude/downloads/ruby-gnome2-all-0.12.0/pango/src -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DRUBY_PANGO_COMPILATION -I/usr/lib/ruby/site_ruby/1.8/i686-linux -c rbpangolayoutiter.c rbpangolayoutiter.c: In function `layout_iter_copy': rbpangolayoutiter.c:27: error: invalid application of `sizeof' to an incomplete type rbpangolayoutiter.c:28: error: dereferencing pointer to incomplete type rbpangolayoutiter.c:28: error: dereferencing pointer to incomplete type make[1]: *** [rbpangolayoutiter.o] Error 1 make[1]: Leaving directory `/home/thedude/downloads/ruby-gnome2-all-0.12.0/pango/src' make: *** [all] Error 2 -Dan Sawyer On Monday 09 May 2005 00:47, Dan Sawyer wrote: > Heya everyone - > > After being quite enticed by the Alexandria web page, I've gone through > installing all the dependencies and Alexandria itself. However, I get a > failure when attempting to start Alexandria that goes as follows: > > thedude@floyd:~/> alexandria > /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23:in `require': No such > file to load -- gdk_pixbuf2 (LoadError) > from /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23 > from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67:in `require' > from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67 > from /usr/bin/alexandria:7:in `require' > from /usr/bin/alexandria: > > ------------- > As far as I can tell, all the gdk files are installed, as well as the > gnome2-ruby bindings. I haven't been able to find anything useful on this > - the only citation I've found of this problem is on an old ruby mailing > list archive dealing with problems in ver. 0.14. > > Any ideas would be greatly appreciated. Has anyone seen this before? > -Dan Sawyer > _______________________________________________ > Alexandria-list mailing list > Alexandria-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/alexandria-list From lrz at gnome.org Mon May 9 07:56:59 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Mon May 9 07:48:59 2005 Subject: Ruby/Pango compilation error (Was: [Alexandria-list] trouble getting Alexandria to run) In-Reply-To: <200505090153.00389.dsawyer@blenderwars.com> References: <200505090047.22822.dsawyer@blenderwars.com> <200505090153.00389.dsawyer@blenderwars.com> Message-ID: <30975.81.255.72.1.1115639819.squirrel@81.255.72.1> Hi Dan, I forward your e-mail to the Ruby-GNOME2 mailing list. Could you give us the output of the pango/mkmf.log file that has been created by extconf.rb? Also, some info about your system, such as your version of Ruby, GNOME libs (GTK, Pango, ...). Thanks Laurent > Okay, what was happening was that the pango and gdkpixbuf modules failed > to > build when installing ruby-gnome2 (no binary package is available for my > platform - SuSE 9.2 Pro). > > Now, I got gdkpixbuf to build by stripping the config made by the global > config script and redoing it in the gdkpixbuf subdirectory. However, the > same procedure is not working in the pango subdirectory. Instead I'm > getting > this error which I can't get past. Any tips? > > Here's the output: > make[1]: Entering directory > `/home/thedude/downloads/ruby-gnome2-all-0.12.0/pango/src' > gcc -fPIC -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall > -fno-strict-aliasing -fPIC -Wall -I/opt/gnome/include/pango-1.0 > -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include > -I/home/thedude/downloads/ruby-gnome2-all-0.12.0/glib/src -I. > -I/usr/lib/ruby/1.8/i686-linux -I/usr/lib/ruby/1.8/i686-linux > -I/home/thedude/downloads/ruby-gnome2-all-0.12.0/pango/src > -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE > -DHAVE_NODE_ATTRASGN -DRUBY_PANGO_COMPILATION > -I/usr/lib/ruby/site_ruby/1.8/i686-linux -c rbpangolayoutiter.c > rbpangolayoutiter.c: In function `layout_iter_copy': > rbpangolayoutiter.c:27: error: invalid application of `sizeof' to an > incomplete type > rbpangolayoutiter.c:28: error: dereferencing pointer to incomplete type > rbpangolayoutiter.c:28: error: dereferencing pointer to incomplete type > make[1]: *** [rbpangolayoutiter.o] Error 1 > make[1]: Leaving directory > `/home/thedude/downloads/ruby-gnome2-all-0.12.0/pango/src' > make: *** [all] Error 2 > > -Dan Sawyer > > > > On Monday 09 May 2005 00:47, Dan Sawyer wrote: >> Heya everyone - >> >> After being quite enticed by the Alexandria web page, I've gone through >> installing all the dependencies and Alexandria itself. However, I get a >> failure when attempting to start Alexandria that goes as follows: >> >> thedude@floyd:~/> alexandria >> /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23:in `require': No >> such >> file to load -- gdk_pixbuf2 (LoadError) >> from /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23 >> from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67:in `require' >> from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67 >> from /usr/bin/alexandria:7:in `require' >> from /usr/bin/alexandria: >> >> ------------- >> As far as I can tell, all the gdk files are installed, as well as the >> gnome2-ruby bindings. I haven't been able to find anything useful on >> this >> - the only citation I've found of this problem is on an old ruby mailing >> list archive dealing with problems in ver. 0.14. >> >> Any ideas would be greatly appreciated. Has anyone seen this before? >> -Dan Sawyer >> _______________________________________________ >> Alexandria-list mailing list >> Alexandria-list@rubyforge.org >> http://rubyforge.org/mailman/listinfo/alexandria-list > _______________________________________________ > Alexandria-list mailing list > Alexandria-list@rubyforge.org > http://rubyforge.org/mailman/listinfo/alexandria-list > -- Laurent From lrz at gnome.org Tue May 10 11:34:50 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Tue May 10 11:26:40 2005 Subject: [Alexandria-list] Reading upc barcodes patch In-Reply-To: <427E563D.1020403@gmail.com> References: <427A9433.80203@pommot.net> <427E563D.1020403@gmail.com> Message-ID: <21454.81.255.72.1.1115739290.squirrel@81.255.72.1> Hi, Sorry for the late response. > Hello there! > > This is my first attempt at modifying alexandria to cope with upc-a > (american) barcodes. What I ended up with was a very long case > statement. (Sorry, I'm not a great coder!) > > If anybody has got some upc-a barcode books, generally paperbacks from > america that have a barcode that doesn't begin with 978, please try it > out. > > If anybody has some advice on how to make the code more > efficient/cleaner please let me know! (I want to learn!) > The patch seems good, though I did not test it yet. I would suggest you to follow Zachary's advice, using a lookup table instead of a long switch statement. This is definitely cleaner, it makes to code easier to maintain. I will then merge your patch :) Thanks -- Laurent From jcs at snowandsnow.us Sat May 14 13:08:20 2005 From: jcs at snowandsnow.us (jcs) Date: Sat May 14 13:01:56 2005 Subject: [Alexandria-list] alexandria fails to start Message-ID: <1116090500.5669.10.camel@localhost.localdomain> I've been trying to install alexandria-0.5.1 on Fedora Core 3. Because there are no binary packages built for FC3 I've use Mandrake packages for alexandria and all of the missing dependancies such as ruby-gettext, ruby-gconf2, etc. Running alexandria with the debug option in ruby gives the following messages: alexandria bind the domain 'alexandria' to '/usr/lib/ruby/site_ruby/1.8/alexandria.rb'. charset is UTF-8 GetText::TextDomain#set_charset: charset = UTF-8 locale:en_US.UTF-8 Search path:["/usr/share/locale", "/usr/local/share/locale"] MO file is not found in /usr/share/locale/en_US.UTF/LC_MESSAGES/alexandria.mo /usr/share/locale/en_US/LC_MESSAGES/alexandria.mo /usr/share/locale/en/LC_MESSAGES/alexandria.mo /usr/local/share/locale/en_US.UTF/LC_MESSAGES/alexandria.mo /usr/local/share/locale/en_US/LC_MESSAGES/alexandria.mo /usr/local/share/locale/en/LC_MESSAGES/alexandria.mo Exception `LoadError' at /usr/lib/ruby/1.8/tmpdir.rb:12 - No such file to load -- Win32API Exception `ArgumentError' at /usr/lib/ruby/site_ruby/1.8/glib2.rb:151 - tried to create Proc object without a block /usr/lib/ruby/site_ruby/1.8/glib2.rb:151:in `set_handler': tried to create Proc object without a block (ArgumentError) from /usr/lib/ruby/site_ruby/1.8/glib2.rb:151:in `set_log_domain' from /usr/lib/ruby/site_ruby/1.8/glib2.rb:170 from /usr/lib/ruby/site_ruby/1.8/gdk_pixbuf2.rb:1:in `require' from /usr/lib/ruby/site_ruby/1.8/gdk_pixbuf2.rb:1 from /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23:in `require' from /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23 from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67:in `require' from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67 from /usr/bin/alexandria:7:in `require' from /usr/bin/alexandria:7 Any suggestions on how to get alexandria to run? Thanks, Clifford -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/alexandria-list/attachments/20050514/7fba2203/attachment.htm From laurent.sansonetti at gmail.com Thu May 19 19:54:49 2005 From: laurent.sansonetti at gmail.com (Laurent Sansonetti) Date: Thu May 19 19:48:11 2005 Subject: glib2.rb: tried to create Proc object without a block (Was: [Alexandria-list] alexandria fails to start) In-Reply-To: <1116090500.5669.10.camel@localhost.localdomain> References: <1116090500.5669.10.camel@localhost.localdomain> Message-ID: <1be7247c050519165449fdd664@mail.gmail.com> Hi, (Sorry for the late response.) On 5/14/05, jcs wrote: > I've been trying to install alexandria-0.5.1 on Fedora Core 3. Because > there are no binary packages built for FC3 I've use Mandrake packages for > alexandria and all of the missing dependancies such as ruby-gettext, > ruby-gconf2, etc. > > Running alexandria with the debug option in ruby gives the following > messages: > alexandria > bind the domain 'alexandria' to > '/usr/lib/ruby/site_ruby/1.8/alexandria.rb'. charset is > UTF-8 > GetText::TextDomain#set_charset: charset = UTF-8 > locale:en_US.UTF-8 > Search path:["/usr/share/locale", "/usr/local/share/locale"] > > MO file is not found in > > /usr/share/locale/en_US.UTF/LC_MESSAGES/alexandria.mo > /usr/share/locale/en_US/LC_MESSAGES/alexandria.mo > /usr/share/locale/en/LC_MESSAGES/alexandria.mo > > /usr/local/share/locale/en_US.UTF/LC_MESSAGES/alexandria.mo > > /usr/local/share/locale/en_US/LC_MESSAGES/alexandria.mo > > /usr/local/share/locale/en/LC_MESSAGES/alexandria.mo > Exception `LoadError' at /usr/lib/ruby/1.8/tmpdir.rb:12 - No such file to > load -- Win32API > Exception `ArgumentError' at > /usr/lib/ruby/site_ruby/1.8/glib2.rb:151 - tried to create > Proc object without a block > /usr/lib/ruby/site_ruby/1.8/glib2.rb:151:in `set_handler': > tried to create Proc object without a block (ArgumentError) > from /usr/lib/ruby/site_ruby/1.8/glib2.rb:151:in > `set_log_domain' > from /usr/lib/ruby/site_ruby/1.8/glib2.rb:170 > from > /usr/lib/ruby/site_ruby/1.8/gdk_pixbuf2.rb:1:in `require' > from /usr/lib/ruby/site_ruby/1.8/gdk_pixbuf2.rb:1 > from > /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23:in > `require' > from > /usr/lib/ruby/site_ruby/1.8/alexandria/library.rb:23 > from > /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67:in `require' > from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:67 > from /usr/bin/alexandria:7:in `require' > from /usr/bin/alexandria:7 > Mmh, looks like a problem in Ruby/GLib. I wonder if it is a good idea to mix packages from Mandrake into Fedora :) CC'ing the Ruby-GNOME2 mailing list, maybe someone can help you on this. I will try to manage booting on a GNOME box this week-end and check this out. It would really be nice to have Ruby-GNOME2 packages in Fedora BTW... someone here to take this task? :) Laurent From daf at muse.19inch.net Fri May 20 07:46:27 2005 From: daf at muse.19inch.net (Dafydd Harries) Date: Sun May 22 16:04:28 2005 Subject: [Alexandria-list] Alexandria 0.5.1 crashes in LANG=ja In-Reply-To: <425654DA.406@arika.org> References: <425654DA.406@arika.org> Message-ID: <20050520114627.GI32673@muse.19inch.net> Ar 08/04/2005 am 18:54, ysgrifennodd akira yamada / ??????: > Hello, > > When I used Alexandria 0.5.1 in LANG=ja, Alexandria crashes at > alexandria/ui/main_app.rb:125: > > $ LANG=ja LC_TIME=C alexandria > ----------------------- > Alexandria just crashed > ----------------------- > Timestamp: Fri Apr 08 17:54:10 JST 2005 > Message: too few arguments > Backtrace: > /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:122:in `%' > /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:122:in > `on_books_selection_changed' > /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:80:in `initialize' > /usr/lib/ruby/1.8/alexandria/ui.rb:40:in `new' > /usr/lib/ruby/1.8/alexandria/ui.rb:40:in `main' > /usr/lib/ruby/1.8/alexandria.rb:60:in `main' > /usr/bin/alexandria:10 > Release: 0.5.1 > [...] > > I think that the ja.po entry for "Library '%s' selected, %d book" has > too many "%d". > > I made a pache (alexandria-ja.po.patch) to fix the problem. And I > made the another patche (alexandria-ja.po.patch2). It update some > entry in ja.po. Apologies, I didn't see this sooner. I've applied your second patch to CVS, as the changes in it look good to me. I'll upload a new pacakge to Debian shortly to fix this crash. Thank you, -- Dafydd From afb at paradise.net.nz Sun May 22 03:48:57 2005 From: afb at paradise.net.nz (Adam Bogacki) Date: Sun May 22 16:05:26 2005 Subject: [Alexandria-list] Backup Options ? Message-ID: <42903969.10007@paradise.net.nz> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I just lost data on 168 entries in Alexandria, my fault admittedly - - I pressed the delete button impulsively - but I'm wondering if Alexandria has stored the info anywhere by default. All I can see in /home/adam/.alexandria is the name of the undeleted libraries and contents within. In retrospect, I think I should have regularly exported to a duplicate file somewhere. Once bitten, twice shy. Anguished bibliophile, Adam Bogacki, afb@paradise.net.nz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCkDln18X1Fk5VORARAuG5AJ4pcEtzKe9ITCRLpKGewyoUT38CggCfYChj +Tp0nafwnD4dbW2woH0rVIk= =nDAn -----END PGP SIGNATURE----- From lrz at gnome.org Sun May 22 16:44:53 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Sun May 22 16:35:45 2005 Subject: [Fwd: Re: [Alexandria-list] Backup Options ?] Message-ID: <37025.82.239.64.142.1116794693.squirrel@82.239.64.142> (Forgot to reply on list.) ---------------------------- Original Message ---------------------------- Subject: Re: [Alexandria-list] Backup Options ? From: "Laurent Sansonetti" Date: Sun, May 22, 2005 10:22 pm To: "Adam Bogacki" -------------------------------------------------------------------------- Hi, > Hi, I just lost data on 168 entries in Alexandria, my fault admittedly - - I pressed the delete button impulsively - but I'm wondering if Alexandria has stored the info anywhere by default. All I can see in /home/adam/.alexandria is the name of the undeleted libraries > and contents within. In retrospect, I think I should have regularly exported to a duplicate file somewhere. > Once bitten, twice shy. > Unfortunately the deletion cannot be undone. But you might be interested that I am currently working on a Undo/Redo feature, that will be hopefully available in the next release. Alexandria stores everything in ~/.alexandria. If you backup this directory from time to time you should be able to restore your original library. Regards -- Laurent -- Laurent From registrations at liamjdavison.info Thu May 26 17:48:52 2005 From: registrations at liamjdavison.info (LJD) Date: Thu May 26 17:42:02 2005 Subject: [Alexandria-list] New bug... sorry Message-ID: <1117144132.7936.14.camel@localhost.localdomain> Hi all Just downloaded the latest CVS version of Alexandria. Nice new icons, horrible new bug... Every time I edit or even just view a book, when I click 'Close' I get the following message: "Couldn't modify the book The EAN/ISBN you provided is already used in this library." That error doesn't appear if I just close the window, but this doesn't try to update the library. ---------------------- Also, and this is probably my set up, the Credits window is very strange... For "Written By" I get : Bitstream Vera Sans Alexandria CVS Bitstream Vera Sans HE Bitstream Vera Sans http://alexandria.rubyforge.org  "Documented By" is blank. "Translated By" is working fine. And "Artwork by" gives: d  Some locale issue here? I am using en_GB.UTF8 here. And it crashed when I tried to close... by haven't been able to reproduce this error. Liam From lrz at gnome.org Thu May 26 18:29:02 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Thu May 26 18:19:39 2005 Subject: [Alexandria-list] New bug... sorry In-Reply-To: <1117144132.7936.14.camel@localhost.localdomain> References: <1117144132.7936.14.camel@localhost.localdomain> Message-ID: <39201.82.239.64.142.1117146542.squirrel@82.239.64.142> Hi Liam, > Hi all > > Just downloaded the latest CVS version of Alexandria. Nice new icons, > horrible new bug... > > Every time I edit or even just view a book, when I click 'Close' I get > the following message: > > "Couldn't modify the book > The EAN/ISBN you provided is already used in this library." > Mmh interesting, maybe this is because of the american UPC patch I recently merged. > That error doesn't appear if I just close the window, but this doesn't > try to update the library. > > ---------------------- > > Also, and this is probably my set up, the Credits window is very > strange... > > For "Written By" I get : > > Bitstream Vera Sans > > Alexandria CVS > > Bitstream Vera Sans > HE > Bitstream Vera Sans > http://alexandria.rubyforge.org > Very interesting. I am currently working on the Mac port, so I did not test the GNOME version for a while. I will check this out asap. The icons for instance, I do not know how they look on GNOME yet. -- Laurent From registrations at liamjdavison.info Tue May 31 16:17:54 2005 From: registrations at liamjdavison.info (LJD) Date: Tue May 31 16:10:54 2005 Subject: [Alexandria-list] New bug... sorry In-Reply-To: <39201.82.239.64.142.1117146542.squirrel@82.239.64.142> References: <1117144132.7936.14.camel@localhost.localdomain> <39201.82.239.64.142.1117146542.squirrel@82.239.64.142> Message-ID: <1117570674.7974.4.camel@localhost.localdomain> On Fri, 2005-05-27 at 00:29 +0200, Laurent Sansonetti wrote: > Hi Liam, > > > Hi all > > > > Just downloaded the latest CVS version of Alexandria. Nice new icons, > > horrible new bug... > > > > Every time I edit or even just view a book, when I click 'Close' I get > > the following message: > > > > "Couldn't modify the book > > The EAN/ISBN you provided is already used in this library." > > > > Mmh interesting, maybe this is because of the american UPC patch I > recently merged. > > > That error doesn't appear if I just close the window, but this doesn't > > try to update the library. > > > > ---------------------- Hi Laurent Have you (or any other user) managed to recplicate my "EAN/ISBN already provided" bug? I have played with the code here but I can't work out what is causing it. In book_properties_dailog.rb, the error is cleary in the on_close function. I have also tried a 'clean install' of Alexandria, with no existing library, but that doesn't work either. Very frustrating - it's the first time I haven't been able to use alexandria in months! Liam From michuk at poczta.onet.pl Tue May 31 16:09:41 2005 From: michuk at poczta.onet.pl (Borys Musielak) Date: Tue May 31 16:17:54 2005 Subject: [Alexandria-list] Alexandria - bug Message-ID: <429CC485.2060206@poczta.onet.pl> $ alexandria ----------------------- Alexandria just crashed ----------------------- Timestamp: wto maj 31 22:07:30 CEST 2005 Message: undefined method `map' for nil:NilClass Backtrace: /usr/lib/ruby/1.8/alexandria/book_providers.rb:146:in `update_priority' /usr/lib/ruby/1.8/alexandria/book_providers.rb:142:in `initialize' /usr/lib/ruby/1.8/alexandria/book_providers.rb:18:in `new' /usr/lib/ruby/1.8/alexandria/book_providers.rb:18:in `new' /usr/lib/ruby/1.8/singleton.rb:95:in `instance' /usr/lib/ruby/1.8/singleton.rb:84:in `instance' /usr/lib/ruby/1.8/alexandria/book_providers.rb:150:in `method_missing' /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:644:in `initialize_ui' /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:40:in `initialize' /usr/lib/ruby/1.8/alexandria/ui.rb:40:in `new' /usr/lib/ruby/1.8/alexandria/ui.rb:40:in `main' /usr/lib/ruby/1.8/alexandria.rb:47:in `main' /usr/bin/alexandria:10 Release: 0.4.0 Uname -a: Linux hplap 2.6.10-5-686 #1 Fri May 20 14:31:01 UTC 2005 i686 GNU/Linux -- Please report this dump to 'alexandria-list@rubyforge.org' with some additional information, such as the description of the crash and the steps to reproduce it (if it's possible). -- pozdrawiam Borys Musielak -- jaki system wybra?? -- -- quiz.jakilinux.org -- From registrations at liamjdavison.info Tue May 31 16:27:43 2005 From: registrations at liamjdavison.info (LJD) Date: Tue May 31 16:20:42 2005 Subject: [Alexandria-list] New bug... sorry In-Reply-To: <1117570674.7974.4.camel@localhost.localdomain> References: <1117144132.7936.14.camel@localhost.localdomain> <39201.82.239.64.142.1117146542.squirrel@82.239.64.142> <1117570674.7974.4.camel@localhost.localdomain> Message-ID: <1117571263.7974.10.camel@localhost.localdomain> Worked it out, although I don't understand quite what this means. I commented out your alias_method :old_select, :select def select filtered_library = Library.new(@name) self.each do |book| filtered_library << book if yield(book) end return filtered_library end method in alexandria/library.rb and everything went back to normal. I don't understand enough ruby - I guess alias_method a way of overriding the default select method of the Array class? If so, what's wrong with select returning an array? I'm curious! Gonna have to clean up my code before my version drifts too far from CVS. Liam From lrz at gnome.org Tue May 31 16:52:52 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Tue May 31 16:43:08 2005 Subject: [Alexandria-list] New bug... sorry In-Reply-To: <1117571263.7974.10.camel@localhost.localdomain> References: <1117144132.7936.14.camel@localhost.localdomain> <39201.82.239.64.142.1117146542.squirrel@82.239.64.142> <1117570674.7974.4.camel@localhost.localdomain> <1117571263.7974.10.camel@localhost.localdomain> Message-ID: <40979.82.239.64.142.1117572772.squirrel@82.239.64.142> Hi Liam, > Worked it out, although I don't understand quite what this means. > > I commented out your > > alias_method :old_select, :select > def select > filtered_library = Library.new(@name) > self.each do |book| > filtered_library << book if yield(book) > end > return filtered_library > end > > method in alexandria/library.rb and everything went back to normal. I > don't understand enough ruby - I guess alias_method a way of overriding > the default select method of the Array class? If so, what's wrong with > select returning an array? > Right, the bug could come from this method... Sorry I could not test the GNOME version this week end, unfortunately (too busy at the moment). Thanks for spotting the bug, I will fix this asap! About the method, select returns a new Array, but this version of the method returns a Library, which is nicer (Library inherits from Array). -- Laurent From lrz at gnome.org Tue May 31 16:55:02 2005 From: lrz at gnome.org (Laurent Sansonetti) Date: Tue May 31 16:45:22 2005 Subject: [Alexandria-list] Alexandria - bug In-Reply-To: <429CC485.2060206@poczta.onet.pl> References: <429CC485.2060206@poczta.onet.pl> Message-ID: <40991.82.239.64.142.1117572902.squirrel@82.239.64.142> Hi, > $ alexandria > ----------------------- > Alexandria just crashed > ----------------------- > Timestamp: wto maj 31 22:07:30 CEST 2005 > Message: undefined method `map' for nil:NilClass > Backtrace: > /usr/lib/ruby/1.8/alexandria/book_providers.rb:146:in `update_priority' > /usr/lib/ruby/1.8/alexandria/book_providers.rb:142:in `initialize' > /usr/lib/ruby/1.8/alexandria/book_providers.rb:18:in `new' > /usr/lib/ruby/1.8/alexandria/book_providers.rb:18:in `new' > /usr/lib/ruby/1.8/singleton.rb:95:in `instance' > /usr/lib/ruby/1.8/singleton.rb:84:in `instance' > /usr/lib/ruby/1.8/alexandria/book_providers.rb:150:in `method_missing' > /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:644:in `initialize_ui' > /usr/lib/ruby/1.8/alexandria/ui/main_app.rb:40:in `initialize' > /usr/lib/ruby/1.8/alexandria/ui.rb:40:in `new' > /usr/lib/ruby/1.8/alexandria/ui.rb:40:in `main' > /usr/lib/ruby/1.8/alexandria.rb:47:in `main' > /usr/bin/alexandria:10 > Release: 0.4.0 > Typical GConf-schemas problem. Restart the GConf daemon and try again :) gconftool-2 --shutdown BTW, 0.4.0 is a bit old, you should try the latest version. -- Laurent