fbthrift icon indicating copy to clipboard operation
fbthrift copied to clipboard

python3 ERROR: No module named 'thrift.util', when importing the package generated by thrift1

Open Todddt opened this issue 5 years ago • 0 comments


ModuleNotFoundError Traceback (most recent call last) in () 1 # test fbthrift ----> 2 from hqth.trader import ttypes, constants, PredictorService

/home/datamake6/server/hqth/trader/ttypes.py in () 8 from future import absolute_import 9 import six ---> 10 from thrift.util.Recursive import fix_spec 11 from thrift.Thrift import * 12 from thrift.protocol.TProtocol import TProtocolException

ModuleNotFoundError: No module named 'thrift.util'

  • thrift-0.13.0 is installed through pip

Todddt avatar Jun 23 '20 10:06 Todddt