Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1984

namespace collision in python bindings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9
    • 0.9.1
    • Python - Library
    • None
    • *nix

    Description

      There's a namespace collision in

      1. Thrift Python bindings ( https://github.com/apache/thrift/blob/0.9.x/lib/py/setup.py )

      2. FB303 Python bindings ( https://github.com/apache/thrift/blob/0.9.x/contrib/fb303/py/setup.py )

      both claim the package name "thrift", leading one to overwrite the other ( at least when the default egg behavior is enabled ) when you try to install both.

      The ways to fix it are:

      1. simple - change the 'name' in the fb303 `setup.py` to 'fb303' or 'thrift_fb303'

      2. complex - have both use a Namespace Package ( http://pythonhosted.org/distribute/setuptools.html#namespace-packages )

      i just used the simple fix locally. it works fine.

      i'm not sure if the fb303 is actually used by anything anymore. the way the repo is currently set though, it's not easy to install both packages.

      Attachments

        Activity

          People

            jfarrell Jake Farrell
            jvanasco jonathan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: