0

I am having a problem in making intellij idea find the TSocket, TTransport and Tserver.

enter image description here

I have thrift installed properly, and I was able to generate my .thrift file. And here is the version of it:

enter image description here

I am adding the path in the server it self to the library:

sys.path.insert(0, glob.glob('../thrift-0.10.0/lib/py/build/lib.*')[0])

Inside this path there's:

enter image description here

Any idea how I can resolve this ?

Jacek Cz
  • 1,872
  • 1
  • 15
  • 22
elias rizik
  • 263
  • 2
  • 11

1 Answers1

0

It is most probably because it is not recognizing the thrift module.

Look here:

ImportError: No module named Thrift

This can be easily fixed by going to the directory lib/py on the thrift installation directory and run the following command to install the thrift module to your python libraries:

sudo python setup.py install
Tony Tannous
  • 14,154
  • 10
  • 50
  • 86