Skip Menu |

This queue is for tickets about the File-Tail-Scribe CPAN distribution.

Report information
The Basics
Id: 74835
Status: resolved
Priority: 0/
Queue: File-Tail-Scribe

People
Owner: Nobody in particular
Requestors: bernie [...] speedshiftmedia.com
Cc:
AdminCc:

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



Subject: Cannot locate Scribe/Thrift/FacebookService.pm
Date: Thu, 9 Feb 2012 15:54:54 -0800
To: bug-File-Tail-Scribe [...] rt.cpan.org
From: Bernie David <bernie [...] speedshiftmedia.com>
This is, I admit, probably not a bug but a failing of my installation process. I have installed thrift (0.4.0) and scribe and they are working. I believe I have followed the steps in http://notes.jschutz.net/2009/04/perl-client-for-facebooks-scribe-logging-software/ to make the Scribe::, Thrift::, and Facebook::FB303:: modules work, but I am getting the example error below with scribe_cat.pl or tail_to_scribe.pl: $ perl -I/usr/local/lib/perl5 /usr/local/bin/scribe_cat.pl Can't locate Scribe/Thrift/FacebookService.pm in @INC (@INC contains: /usr/local/lib/perl5/x86_64-linux-thread-multi /usr/local/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at /usr/local/lib/perl5/Scribe/Thrift/scribe.pm line 12. BEGIN failed--compilation aborted at /usr/local/lib/perl5/Scribe/Thrift/scribe.pm line 12. Compilation failed in require at /usr/local/share/perl5/Log/Dispatch/Scribe.pm line 11. BEGIN failed--compilation aborted at /usr/local/share/perl5/Log/Dispatch/Scribe.pm line 11. Compilation failed in require at /usr/local/bin/scribe_cat.pl line 10. BEGIN failed--compilation aborted at /usr/local/bin/scribe_cat.pl line 10. The modules are: tree /usr/local/lib/perl5/Scribe/ /usr/local/lib/perl5/Scribe/ └── T ├── Constants.pm ├── scribe.pm └── Types.pm tree /usr/local/lib/perl5/Thrift /usr/local/lib/perl5/Thrift ├── BinaryProtocol.pm ├── BufferedTransport.pm ├── FramedTransport.pm ├── HttpClient.pm ├── MemoryBuffer.pm ├── Protocol.pm ├── Server.pm ├── Socket.pm └── Transport.pm tree /usr/local/lib/perl5/Facebook/ /usr/local/lib/perl5/Facebook/ └── FB303 ├── Constants.pm ├── FacebookService.pm └── Types.pm Thanks for your help. Regards Bernie David Web Developer, Speed Shift Media bernie@speedshiftmedia.com tel 604.520.6587 | fax 1.866.597.5016
Subject: Re: [rt.cpan.org #74835] Cannot locate Scribe/Thrift/FacebookService.pm
Date: Fri, 10 Feb 2012 12:05:07 +1030
To: bug-File-Tail-Scribe [...] rt.cpan.org
From: Jon Schutz <jon [...] jschutz.net>
Hi Bernie, Looks like a namespace problem - did you have to change any namespace declarations in the thrift interface files? I've not had a chance to have a proper look into it but when I look at the content of my Scribe::Thrift::scribe.pm it refers to Facebook::FB303::FacebookService, not Scribe::Thrift::FacebookService. Here is the top of my scribe.pm: # # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 5.6.0; use strict; use warnings; use Thrift; use Scribe::Thrift::Types; use Facebook::FB303::FacebookService; Hope that gives you a lead. Let me know how you go. Regards, -- Jon Schutz On 10/02/12 10:25 AM, Bernie David via RT wrote: Show quoted text
> Thu Feb 09 18:55:08 2012: Request 74835 was acted upon. > Transaction: Ticket created by bernie@speedshiftmedia.com > Queue: File-Tail-Scribe > Subject: Cannot locate Scribe/Thrift/FacebookService.pm > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: bernie@speedshiftmedia.com > Status: new > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=74835> > > > This is, I admit, probably not a bug but a failing of my installation process. > > I have installed thrift (0.4.0) and scribe and they are working. I believe I have followed the steps in http://notes.jschutz.net/2009/04/perl-client-for-facebooks-scribe-logging-software/ to make the Scribe::, Thrift::, and Facebook::FB303:: modules work, but I am getting the example error below with scribe_cat.pl or tail_to_scribe.pl: > > $ perl -I/usr/local/lib/perl5 /usr/local/bin/scribe_cat.pl > Can't locate Scribe/Thrift/FacebookService.pm in @INC (@INC contains: /usr/local/lib/perl5/x86_64-linux-thread-multi /usr/local/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at /usr/local/lib/perl5/Scribe/Thrift/scribe.pm line 12. > BEGIN failed--compilation aborted at /usr/local/lib/perl5/Scribe/Thrift/scribe.pm line 12. > Compilation failed in require at /usr/local/share/perl5/Log/Dispatch/Scribe.pm line 11. > BEGIN failed--compilation aborted at /usr/local/share/perl5/Log/Dispatch/Scribe.pm line 11. > Compilation failed in require at /usr/local/bin/scribe_cat.pl line 10. > BEGIN failed--compilation aborted at /usr/local/bin/scribe_cat.pl line 10. > > The modules are: > > tree /usr/local/lib/perl5/Scribe/ > /usr/local/lib/perl5/Scribe/ > └── T > ├── Constants.pm > ├── scribe.pm > └── Types.pm > > > tree /usr/local/lib/perl5/Thrift > /usr/local/lib/perl5/Thrift > ├── BinaryProtocol.pm > ├── BufferedTransport.pm > ├── FramedTransport.pm > ├── HttpClient.pm > ├── MemoryBuffer.pm > ├── Protocol.pm > ├── Server.pm > ├── Socket.pm > └── Transport.pm > > tree /usr/local/lib/perl5/Facebook/ > /usr/local/lib/perl5/Facebook/ > └── FB303 > ├── Constants.pm > ├── FacebookService.pm > └── Types.pm > > Thanks for your help. > > Regards > Bernie David > Web Developer, Speed Shift Media > bernie@speedshiftmedia.com > tel 604.520.6587 | fax 1.866.597.5016 > >
Subject: Re: [rt.cpan.org #74835] Cannot locate Scribe/Thrift/FacebookService.pm
Date: Fri, 10 Feb 2012 08:38:50 -0800
To: bug-File-Tail-Scribe [...] rt.cpan.org
From: Bernie David <bernie [...] speedshiftmedia.com>
Hi Jon, Yes my namespace is different: use Scribe::Thrift::Types; use Scribe::Thrift::FacebookService; I must have changed something as I was flailing around trying to install it. I will go through the steps again and see if I can get a correct namespace generated. Regards, On 2012-02-09, at 5:35 PM, Jon Schutz via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=74835 > > > Hi Bernie, > > Looks like a namespace problem - did you have to change any namespace > declarations in the thrift interface files? I've not had a chance to > have a proper look into it but when I look at the content of my > Scribe::Thrift::scribe.pm it refers to Facebook::FB303::FacebookService, > not Scribe::Thrift::FacebookService. Here is the top of my scribe.pm: > > # > # Autogenerated by Thrift Compiler (0.8.0) > # > # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING > # > require 5.6.0; > use strict; > use warnings; > use Thrift; > > use Scribe::Thrift::Types; > use Facebook::FB303::FacebookService; > > > Hope that gives you a lead. Let me know how you go. > > Regards, > > -- > > Jon Schutz > > > On 10/02/12 10:25 AM, Bernie David via RT wrote:
>> Thu Feb 09 18:55:08 2012: Request 74835 was acted upon. >> Transaction: Ticket created by bernie@speedshiftmedia.com >> Queue: File-Tail-Scribe >> Subject: Cannot locate Scribe/Thrift/FacebookService.pm >> Broken in: (no value) >> Severity: (no value) >> Owner: Nobody >> Requestors: bernie@speedshiftmedia.com >> Status: new >> Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=74835> >> >> >> This is, I admit, probably not a bug but a failing of my installation process. >> >> I have installed thrift (0.4.0) and scribe and they are working. I believe I have followed the steps in http://notes.jschutz.net/2009/04/perl-client-for-facebooks-scribe-logging-software/ to make the Scribe::, Thrift::, and Facebook::FB303:: modules work, but I am getting the example error below with scribe_cat.pl or tail_to_scribe.pl: >> >> $ perl -I/usr/local/lib/perl5 /usr/local/bin/scribe_cat.pl >> Can't locate Scribe/Thrift/FacebookService.pm in @INC (@INC contains: /usr/local/lib/perl5/x86_64-linux-thread-multi /usr/local/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at /usr/local/lib/perl5/Scribe/Thrift/scribe.pm line 12. >> BEGIN failed--compilation aborted at /usr/local/lib/perl5/Scribe/Thrift/scribe.pm line 12. >> Compilation failed in require at /usr/local/share/perl5/Log/Dispatch/Scribe.pm line 11. >> BEGIN failed--compilation aborted at /usr/local/share/perl5/Log/Dispatch/Scribe.pm line 11. >> Compilation failed in require at /usr/local/bin/scribe_cat.pl line 10. >> BEGIN failed--compilation aborted at /usr/local/bin/scribe_cat.pl line 10. >> >> The modules are: >> >> tree /usr/local/lib/perl5/Scribe/ >> /usr/local/lib/perl5/Scribe/ >> └── T >> ├── Constants.pm >> ├── scribe.pm >> └── Types.pm >> >> >> tree /usr/local/lib/perl5/Thrift >> /usr/local/lib/perl5/Thrift >> ├── BinaryProtocol.pm >> ├── BufferedTransport.pm >> ├── FramedTransport.pm >> ├── HttpClient.pm >> ├── MemoryBuffer.pm >> ├── Protocol.pm >> ├── Server.pm >> ├── Socket.pm >> └── Transport.pm >> >> tree /usr/local/lib/perl5/Facebook/ >> /usr/local/lib/perl5/Facebook/ >> └── FB303 >> ├── Constants.pm >> ├── FacebookService.pm >> └── Types.pm >> >> Thanks for your help. >> >> Regards >> Bernie David >> Web Developer, Speed Shift Media >> bernie@speedshiftmedia.com >> tel 604.520.6587 | fax 1.866.597.5016 >> >>
> >
Bernie David Web Developer, Speed Shift Media bernie@speedshiftmedia.com tel 604.520.6587 | fax 1.866.597.5016
Subject: Re: [rt.cpan.org #74835] Cannot locate Scribe/Thrift/FacebookService.pm
Date: Fri, 10 Feb 2012 09:16:58 -0800
To: bug-File-Tail-Scribe [...] rt.cpan.org
From: Bernie David <bernie [...] speedshiftmedia.com>
Hi Jon, Yes...I had made a mistake with my namespacing in the thrift fb303.thrift file. I found the solution was (after correcting the namespace): thrift -I ../thrift-0.4.0/contrib/ --gen perl if/scribe.thrift This is slightly different from the instructions on the web (step #4). My cargo cult approach failed me in this case. Thrift couldn't find the scribe.thrift file until I corrected its location to if/scribe.thrift. Now everything compiles without complaining and I hope to hook up to scribe with your modules and helpers. Thanks! On 2012-02-09, at 5:35 PM, Jon Schutz via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=74835 > > > Hi Bernie, > > Looks like a namespace problem - did you have to change any namespace > declarations in the thrift interface files? I've not had a chance to > have a proper look into it but when I look at the content of my > Scribe::Thrift::scribe.pm it refers to Facebook::FB303::FacebookService, > not Scribe::Thrift::FacebookService. Here is the top of my scribe.pm: > > # > # Autogenerated by Thrift Compiler (0.8.0) > # > # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING > # > require 5.6.0; > use strict; > use warnings; > use Thrift; > > use Scribe::Thrift::Types; > use Facebook::FB303::FacebookService; > > > Hope that gives you a lead. Let me know how you go. > > Regards, > > -- > > Jon Schutz > > > On 10/02/12 10:25 AM, Bernie David via RT wrote:
>> Thu Feb 09 18:55:08 2012: Request 74835 was acted upon. >> Transaction: Ticket created by bernie@speedshiftmedia.com >> Queue: File-Tail-Scribe >> Subject: Cannot locate Scribe/Thrift/FacebookService.pm >> Broken in: (no value) >> Severity: (no value) >> Owner: Nobody >> Requestors: bernie@speedshiftmedia.com >> Status: new >> Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=74835> >> >> >> This is, I admit, probably not a bug but a failing of my installation process. >> >> I have installed thrift (0.4.0) and scribe and they are working. I believe I have followed the steps in http://notes.jschutz.net/2009/04/perl-client-for-facebooks-scribe-logging-software/ to make the Scribe::, Thrift::, and Facebook::FB303:: modules work, but I am getting the example error below with scribe_cat.pl or tail_to_scribe.pl: >> >> $ perl -I/usr/local/lib/perl5 /usr/local/bin/scribe_cat.pl >> Can't locate Scribe/Thrift/FacebookService.pm in @INC (@INC contains: /usr/local/lib/perl5/x86_64-linux-thread-multi /usr/local/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl .) at /usr/local/lib/perl5/Scribe/Thrift/scribe.pm line 12. >> BEGIN failed--compilation aborted at /usr/local/lib/perl5/Scribe/Thrift/scribe.pm line 12. >> Compilation failed in require at /usr/local/share/perl5/Log/Dispatch/Scribe.pm line 11. >> BEGIN failed--compilation aborted at /usr/local/share/perl5/Log/Dispatch/Scribe.pm line 11. >> Compilation failed in require at /usr/local/bin/scribe_cat.pl line 10. >> BEGIN failed--compilation aborted at /usr/local/bin/scribe_cat.pl line 10. >> >> The modules are: >> >> tree /usr/local/lib/perl5/Scribe/ >> /usr/local/lib/perl5/Scribe/ >> └── T >> ├── Constants.pm >> ├── scribe.pm >> └── Types.pm >> >> >> tree /usr/local/lib/perl5/Thrift >> /usr/local/lib/perl5/Thrift >> ├── BinaryProtocol.pm >> ├── BufferedTransport.pm >> ├── FramedTransport.pm >> ├── HttpClient.pm >> ├── MemoryBuffer.pm >> ├── Protocol.pm >> ├── Server.pm >> ├── Socket.pm >> └── Transport.pm >> >> tree /usr/local/lib/perl5/Facebook/ >> /usr/local/lib/perl5/Facebook/ >> └── FB303 >> ├── Constants.pm >> ├── FacebookService.pm >> └── Types.pm >> >> Thanks for your help. >> >> Regards >> Bernie David >> Web Developer, Speed Shift Media >> bernie@speedshiftmedia.com >> tel 604.520.6587 | fax 1.866.597.5016 >> >>
> >
Bernie David Web Developer, Speed Shift Media bernie@speedshiftmedia.com tel 604.520.6587 | fax 1.866.597.5016