thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Partridge, Lucas (GE Aviation)" <Lucas.Partri...@ge.com>
Subject Can't create a Python egg for Thrift 0.9.3 on Windows 7
Date Thu, 16 Jun 2016 10:11:18 GMT
Hi,
I would like to build the Python egg for Thrift 0.9.3 as easily as possible on my Windows
7 laptop.

If I download thrift-0.9.3.tar.gz, unzip it and cd into thrift-0.9.3\lib\py and run the setup
I get:

C:\Tools\thrift\0.9.3\thrift-0.9.3\lib\py>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 36, in <module>
    del os.link
AttributeError: link

I'm using Python 2.7.11 :: Anaconda 2.5.0 (64-bit).

As I've written this I've discovered os.link doesn't exist in Python 2 (https://docs.python.org/2/library/os.html)
but it does in Python 3: https://docs.python.org/3/library/os.html#os.link.

So am I obliged to use Python 3 to create the Thrift egg now; or is there an easy way to do
it for Python 2 users?  I never got this error when I made the egg for thrift 0.9.1 but I
notice the setup.py file for that version of Thrift doesn't use 'os' at all.

Thanks, Lucas.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message