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

Python Thrift library can be installed with pip but not easy_install

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.1
    • None
    • None
    • Python

    Description

      Easy install appears to scan the web page for thrift and look for the package thrift-0.8.0.tgz, and incorrectly downloads the full thrift distribution, not the python package.

      Shell session below shows it failing first with easy_install, and then succeeding with pip.

      michel@ubuntu:~/tmp/t3$ virtualenv .
      New python executable in ./bin/python
      Installing distribute.............................................................................................................................................................................................done.
      Installing pip...............done.
      michel@ubuntu:~/tmp/t3$ bin/easy_install thrift
      Searching for thrift
      Reading http://pypi.python.org/simple/thrift/
      Reading http://thrift.apache.org
      Best match: thrift 0.8.0
      Downloading https://dist.apache.org/repos/dist/release/thrift/0.8.0/thrift-0.8.0.tar.gz
      Processing thrift-0.8.0.tar.gz
      error: Couldn't find a setup script in /tmp/easy_install-LkxF4S/thrift-0.8.0.tar.gz
      michel@ubuntu:~/tmp/t3$ bin/pip install thrift
      Downloading/unpacking thrift
      Downloading thrift-0.8.0.tar.gz
      Running setup.py egg_info for package thrift

      Installing collected packages: thrift
      Running setup.py install for thrift
      building 'thrift.protocol.fastbinary' extension
      gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/protocol/fastbinary.c -o build/temp.linux-i686-2.7/src/protocol/fastbinary.o
      gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-i686-2.7/src/protocol/fastbinary.o -o build/lib.linux-i686-2.7/thrift/protocol/fastbinary.so
      /home/michel/tmp/t3/bin/python -O /tmp/tmpoCmXkd.py
      removing /tmp/tmpoCmXkd.py

      Successfully installed thrift
      Cleaning up...

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jfarrell Jake Farrell
            michelp Michel Pelletier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment