Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the TMDB CPAN distribution.

Report information
The Basics
Id: 70772
Status: resolved
Priority: 0/
Queue: TMDB

People
Owner: MITHUN [...] cpan.org
Requestors: nephilim1973 [...] hotmail.de
Cc:
AdminCc:

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



Subject: Bug in TMDB or YAML ???
Date: Wed, 7 Sep 2011 00:52:08 +0200
To: bug-tmdb [...] rt.cpan.org
From: "nephilim1973 [...] hotmail.de" <nephilim1973 [...] hotmail.de>
Hi Mithun... Please take a look at my information, using your TMDB module: With this litte code ======================== #!/usr/bin/perl use strict; use warnings; use TMDB; # Install with "sudo cpan" and "install TMDB" my $tmdb = TMDB->new( { api_key => 'MyPrivateAPIKey' } ); print $tmdb; my @results = $tmdb->search->movie('Memento'); ======================== I got an error message like this one: -------------------------- YAML Error: Invalid element in map Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT Line: 20 Document: 1 at /usr/local/share/perl/5.10.1/YAML.pm line 36 TMDB=HASH(0x875ede0) -------------------------- The hash was printed out AFTER the error message, but I think, that the error comes from the line my @results = $tmdb->search->movie('Memento'); Would you be so kind to check your module for me ?? Best regards Bjoern
The error you were seeing was probably a bad YAML response from TMDB. The search you were trying seems to work for me now. =============== #!/usr/bin/perl use strict; use warnings; use TMDB; use Data::Dumper; my $tmdb = TMDB->new({api_key => 'secret'}); # print Dumper $tmdb; my @r = $tmdb->search->movie('Memento'); print Dumper \@r; ============ $VAR1 = [ { 'url' => 'http://www.themoviedb.org/movie/77', 'name' => 'Memento', 'id' => '77', 'thumb' => 'http://cf1.imgobject.com/posters/111/4e03ef595e73d64dd3006111/memento-thumb.jpg', 'year' => '2000' } ]; Thanks, Mithun
Subject: Re: [rt.cpan.org #70772] Bug in TMDB or YAML ???
Date: Thu, 8 Sep 2011 14:14:45 +0200
To: bug-TMDB [...] rt.cpan.org
From: "nephilim1973 [...] hotmail.de" <nephilim1973 [...] hotmail.de>
Hi Mithun... Sorry, with your code snippet, I get the same error message from YAML, again. I am using YAML version 0.73 from the CPAN repositories. Would you be so kind to review the version number from your side ?? Many thanks. Bjoern Am Dienstag, den 06.09.2011, 21:48 -0400 schrieb Mithun Ayachit via RT: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=70772 > > > The error you were seeing was probably a bad YAML response from TMDB. The search you > were trying seems to work for me now. > > =============== > > #!/usr/bin/perl > > use strict; > use warnings; > use TMDB; > use Data::Dumper; > > my $tmdb = TMDB->new({api_key => 'secret'}); > # print Dumper $tmdb; > > my @r = $tmdb->search->movie('Memento'); > print Dumper \@r; > > ============ > > $VAR1 = [ > { > 'url' => 'http://www.themoviedb.org/movie/77', > 'name' => 'Memento', > 'id' => '77', > 'thumb' => > 'http://cf1.imgobject.com/posters/111/4e03ef595e73d64dd3006111/memento-thumb.jpg', > 'year' => '2000' > } > ]; > > Thanks, > Mithun >
This distribution uses YAML::Any. Some bug reports indicate that the error you are seeing may be caused by YAML.pm not being able to parse yaml data generated by ruby. Please try installing YAML::XS or YAML::Syck and see if that helps. This snippet should show you the modules being used. ==== #!/usr/bin/perl use strict; use warnings; use TMDB; use Data::Dumper; local $Data::Dumper::Sortkeys = 1; print "Modules used:\n"; print Dumper \%INC; my $tmdb = TMDB->new({api_key => 'secret'}); # print Dumper $tmdb; my @r = $tmdb->search->movie('Memento'); print Dumper \@r; ==== Please let me know if you are trying to access English data or some other language. Does this occur for _Memento_ only or all searches? Thanks, Mithun On Thu Sep 08 08:15:04 2011, nephilim1973@hotmail.de wrote: Show quoted text
> Hi Mithun... > > Sorry, with your code snippet, I get the same error message from YAML, > again. > > I am using YAML version 0.73 from the CPAN repositories. > > Would you be so kind to review the version number from your side ?? > > Many thanks. > > Bjoern > > > > > Am Dienstag, den 06.09.2011, 21:48 -0400 schrieb Mithun Ayachit via > RT:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=70772 > > > > > The error you were seeing was probably a bad YAML response from
> TMDB. The search you
> > were trying seems to work for me now. > > > > =============== > > > > #!/usr/bin/perl > > > > use strict; > > use warnings; > > use TMDB; > > use Data::Dumper; > > > > my $tmdb = TMDB->new({api_key => 'secret'}); > > # print Dumper $tmdb; > > > > my @r = $tmdb->search->movie('Memento'); > > print Dumper \@r; > > > > ============ > > > > $VAR1 = [ > > { > > 'url' => 'http://www.themoviedb.org/movie/77', > > 'name' => 'Memento', > > 'id' => '77', > > 'thumb' => > >
> 'http://cf1.imgobject.com/posters/111/4e03ef595e73d64dd3006111/memento- > thumb.jpg',
> > 'year' => '2000' > > } > > ]; > > > > Thanks, > > Mithun > >
> >
Subject: Re: [rt.cpan.org #70772] Bug in TMDB or YAML ???
Date: Mon, 12 Sep 2011 23:40:04 +0200
To: bug-TMDB [...] rt.cpan.org
From: "nephilim1973 [...] hotmail.de" <nephilim1973 [...] hotmail.de>
Hi Mithun... Installation of "YAML::XS" helps to solve the problem. It occurs while searching ALL german or english movies... MEMENTO was not the only one... Thanks a lot !!! Cheers Bjoern Am Donnerstag, den 08.09.2011, 08:40 -0400 schrieb Mithun Ayachit via RT: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=70772 > > > This distribution uses YAML::Any. Some bug reports indicate that the error you are seeing > may be caused by YAML.pm not being able to parse yaml data generated by ruby. > > Please try installing YAML::XS or YAML::Syck and see if that helps. > > This snippet should show you the modules being used. > > ==== > #!/usr/bin/perl > > use strict; > use warnings; > use TMDB; > use Data::Dumper; > > local $Data::Dumper::Sortkeys = 1; > print "Modules used:\n"; > print Dumper \%INC; > > my $tmdb = TMDB->new({api_key => 'secret'}); > # print Dumper $tmdb; > > my @r = $tmdb->search->movie('Memento'); > print Dumper \@r; > ==== > > Please let me know if you are trying to access English data or some other language. Does this > occur for _Memento_ only or all searches? > > Thanks, > Mithun > > On Thu Sep 08 08:15:04 2011, nephilim1973@hotmail.de wrote:
> > Hi Mithun... > > > > Sorry, with your code snippet, I get the same error message from YAML, > > again. > > > > I am using YAML version 0.73 from the CPAN repositories. > > > > Would you be so kind to review the version number from your side ?? > > > > Many thanks. > > > > Bjoern > > > > > > > > > > Am Dienstag, den 06.09.2011, 21:48 -0400 schrieb Mithun Ayachit via > > RT:
> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=70772 > > > > > > > The error you were seeing was probably a bad YAML response from
> > TMDB. The search you
> > > were trying seems to work for me now. > > > > > > =============== > > > > > > #!/usr/bin/perl > > > > > > use strict; > > > use warnings; > > > use TMDB; > > > use Data::Dumper; > > > > > > my $tmdb = TMDB->new({api_key => 'secret'}); > > > # print Dumper $tmdb; > > > > > > my @r = $tmdb->search->movie('Memento'); > > > print Dumper \@r; > > > > > > ============ > > > > > > $VAR1 = [ > > > { > > > 'url' => 'http://www.themoviedb.org/movie/77', > > > 'name' => 'Memento', > > > 'id' => '77', > > > 'thumb' => > > >
> > 'http://cf1.imgobject.com/posters/111/4e03ef595e73d64dd3006111/memento- > > thumb.jpg',
> > > 'year' => '2000' > > > } > > > ]; > > > > > > Thanks, > > > Mithun > > >
> > > >
> > > >