thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Partridge, Lucas (GE Aviation)" <>
Subject RE: Can't create a Python egg for Thrift 0.9.3 on Windows 7
Date Thu, 16 Jun 2016 12:50:30 GMT
FYI Replacing lines 32-34 originally put in as part of "THRIFT-2620: Fix python packaging"
in v0.9.2:
appeared to fix this as far as I can tell.

i.e., replacing:

import os


import os
if 'vagrant' in str(os.environ):

...seems to result in a valid egg when 'python install' is run. Hmm, I don't understand
why my copy of thrift-0.9.3\lib\py\ unzipped from thrift-0.9.3.tar.gz doesn't match!

Thanks, Lucas.

-----Original Message-----
From: Partridge, Lucas (GE Aviation) 
Sent: 16 June 2016 11:11
Subject: EXT: Can't create a Python egg for Thrift 0.9.3 on Windows 7

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 install Traceback (most recent
call last):
  File "", line 36, in <module>
AttributeError: link

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

As I've written this I've discovered doesn't exist in Python 2 (
) but it does in Python 3:

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 file for that version of Thrift doesn't use 'os' at all.

Thanks, Lucas.

View raw message