Menu

where to get fb303 dependency....

Help
2009-02-03
2013-04-11
  • Jason Rosenberg

    Jason Rosenberg - 2009-02-03

    I'm having a bit of trouble getting the fb303 stuff properly installed/configured...

    I've tried building with sources distributed with thrift, under /thrift/contrib/fb303....

    This doesn't seem to build directly there:

    make[2]: Entering directory `/usr/local/thrift/contrib/fb303/py'
    /usr/bin/python setup.py build
    running build
    running build_py
    error: package directory 'fb303' does not exist
    make[2]: *** [all-local] Error 1
    make[2]: Leaving directory `/usr/local/thrift/contrib/fb303/py'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/thrift/contrib/fb303'
    make: *** [all] Error 2

    It does indeed appear that fb303 is not there and thus the build error looks valid...

    Is there somewhere else to get the fb303 dependency?

    If it matters, I'm using ubuntu 8.10....

    Jason

     
    • Anthony Giardullo

      What do you mean when you say that fb303 is not there?  The fb303 package directory is present in the Thrift source under contrib/fb303/py/fb303/.  Do you not see these files?

      Also, are you using an older version of Thrift?  I would recommend installing fb303 from a recent version of Thrift.

      -Anthony

       
    • Jason Rosenberg

      Jason Rosenberg - 2009-02-03

      Anthony,

      Yeah, I downloaded the very latest version of thrift, and it's a version greater than the one recommended as the minimum version in the scribe release notes...

      And indeed, the directory contrib/fb303/py/fb303 is missing....

      You can see this by looking at the latest svn trunk rev:

      http://svn.apache.org/viewvc/incubator/thrift/trunk/contrib/fb303/py/

      The scribe README says:

      [fb303] Facebook Bassline (included in thrift/contrib/fb303/)
         fb303 r697294 or later is required.

      Looks like the current trunk for thrift is at 740169....

      However, the version of setup.py in there is still at 697294....

      Something is missing in the svn repo there, it would seem....

      Jason

       
    • Anthony Giardullo

      You're right.  It looks like this was removed from the repo last week.  Since this is code generated by thrift, it didn't need to be checked in to the repo.  However, whoever removed this should have changed the makefile to generate this.  I will follow up with Thrift developers to get this fixed.  Sorry about this.

      Here is a work around for now.  Use the --with-py flag to generate python code for fb303.  Then copy the generated code to the location expected by the makefile.  Eg:

      cd contrib/fb303
      ./bootstrap.sh
      ./configure --with-py
      cp -R py/build/lib/fb303 py
      make

      -Anthony

       
    • Anthony Giardullo

      Sorry, it looks like my previous workaround is incorrect.  Until I figure out how to cleanly fix the makefiles, please do:

      /usr/local/bin/thrift -o . -I /usr/local/share/ --gen py if/fb303.thrift
      cp -R gen-py/fb303 py

      (If you installed thrift in a location other than /usr/local, adjust the above command accordingly).

      thanks,
      Anthony

       
    • Stephen Corona

      Stephen Corona - 2009-02-09

      The thrift namespace was also renamed from facebook to apache recently. In order to compile scribe, I had to s/facebook/apache/g in the whole fb303 directory and also in the scribe sources.

      Steve

       
      • Anthony Giardullo

        Working on fixing this right now.  Thanks for the heads up.

        -Anthony

         
    • Anthony Giardullo

      The latest version of thrift/fb303/contrib has been fixed.

      I also updated the scribe trunk to use the apache namespace for thrift.

      Thanks,
      Anthony

       
      • Stephen Corona

        Stephen Corona - 2009-02-11

        Thanks.  I have to build scribe + all dependencies this afternoon on another box. I'll let you know if it compiles clean or if I had to change anything.

        -Stephen Corona

         
    • Stephen Corona

      Stephen Corona - 2009-02-11

      I compiled scribe this afternoon without a hitch. Version 2.01 plays much nicer w/ the trunk version of fb303 and thrift. I submitted a small patch to change the version number reported by Scribe to be 2.01. It's not a big deal, but might as well keep it correct. I build a binary package w/ scribe and all dependencies (boost, libevent, thrift, fb303, scribe) for i386. Anyone interested in having me upload it here?

      Steve

       
      • Ruturaj Vartak

        Ruturaj Vartak - 2009-02-12

        I'm sure it'd be a big help to many newbies, if a .rpm or .deb file ! I was lucky to get Scibe installed without the new apache namespace. :)

         
      • Anthony Giardullo

        Thanks for catching that.  I updated the version number in trunk and in the download link.

        -Anthony

         

Log in to post a comment.