Skip Menu |

This queue is for tickets about the GD-Barcode CPAN distribution.

Report information
The Basics
Id: 62051
Status: new
Priority: 0/
Queue: GD-Barcode

People
Owner: Nobody in particular
Requestors: vendion [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.15
Fixed in: (no value)



Subject: GD::Font does not get loaded in GD::Barcode::Code39
When trying to use GD::Barcode::Code39 it prints out the following error about GD::Font not being loaded: Can't locate object method "Small" via package "GD::Font" (perhaps you forgot to load "GD::Font"?) at /usr/local/share/perl5/GD/Barcode/Code39.pm line 111, <> line 19. Code that generates this error: #!/usr/bin/perl use warnings; use strict; use GD::Barcode::Code39 my $oGdBar = GD::Barcode::Code39->new("$customer{id}"); if ( !$oGdBar ) { display_menu_error("ERROR: $GD::Barcode::Code39::errStr \n"); } print "PTN:", $oGdBar->{text}, ":", $oGdBar->barcode(), "\n"; my $output = '/tmp/Code39.png'; open my $OUTFILE, '>', $output; binmode $OUTFILE; print {$OUTFILE} $oGdBar->plot->png; close {$OUTFILE}; undef $oGdBar; undef $OUTFILE; undef $output; system "lpr -r $output"; Perl version 5.12.1 on Fedora 13
Subject: Re: [rt.cpan.org #62051] AutoReply: GD::Font does not get loaded in GD::Barcode::Code39
Date: Mon, 11 Oct 2010 12:23:59 -0400
To: bug-GD-Barcode [...] rt.cpan.org
From: Adam Jimerson <vendion [...] gmail.com>
Bugs in GD-Barcode via RT wrote: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "GD::Font does not get loaded in GD::Barcode::Code39", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #62051]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=62051 > > Please include the string: > > [rt.cpan.org #62051] > > in the subject line of all future correspondence about this issue. To do so, > you may reply to this message. > > Thank you, > bug-GD-Barcode@rt.cpan.org > > ------------------------------------------------------------------------- > When trying to use GD::Barcode::Code39 it prints out the following error > about GD::Font not being loaded: > > Can't locate object method "Small" via package "GD::Font" (perhaps you > forgot to load "GD::Font"?) at > /usr/local/share/perl5/GD/Barcode/Code39.pm line 111, <> line 19. > > Code that generates this error: > > #!/usr/bin/perl > use warnings; > use strict; > use GD::Barcode::Code39 > > my $oGdBar = GD::Barcode::Code39->new("$customer{id}"); > if ( !$oGdBar ) { > display_menu_error("ERROR: $GD::Barcode::Code39::errStr \n"); > } > print "PTN:", $oGdBar->{text}, ":", $oGdBar->barcode(), "\n"; > my $output = '/tmp/Code39.png'; > open my $OUTFILE, '>', $output; > binmode $OUTFILE; > print {$OUTFILE} $oGdBar->plot->png; > close {$OUTFILE}; > undef $oGdBar; > undef $OUTFILE; > undef $output; > system "lpr -r $output"; > > Perl version 5.12.1 on Fedora 13
I guess it will help if I include all of the output generated by the code as well: PTN:000-000000:1010001110111010101000111011101010100011101110101000101 +011101110101000111011101010100011101110101010001110111010101000111011 +101010100011101110101010001110111010 Can't locate object method "Small" via package "GD::Font" (perhaps you + forgot to load "GD::Font"?) at /usr/local/share/perl5/GD/Barcode/Cod +e39.pm line 111, <> line 19.
Download signature.asc
application/pgp-signature 267b

Message body not shown because it is not plain text.