Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

/usr/bin/python: cannot import name frontend #51

Open
mathgameapi opened this issue Oct 27, 2017 · 4 comments
Open

/usr/bin/python: cannot import name frontend #51

mathgameapi opened this issue Oct 27, 2017 · 4 comments

Comments

@mathgameapi
Copy link

How can i solve that error ? Thanks

/usr/bin/python: cannot import name frontend
CMakeFiles/thpp.dir/build.make:61: recipe for target 'thpp/if/gen-cpp2/Tensor_data.h' failed
make[2]: *** [thpp/if/gen-cpp2/Tensor_data.h] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/thpp.dir/all' failed
make[1]: *** [CMakeFiles/thpp.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

@Honggu
Copy link

Honggu commented Nov 6, 2017

any one solved this problem yet?

@millerbk
Copy link

I'm getting the exact error above as well.

@ZYX-MLer
Copy link

i can compile frontend.so as
facebook/fbthrift#249 describ
but still cannot solve this problem

@SunnyCat2013
Copy link

SunnyCat2013 commented Jan 7, 2018

@zhaoyuanxing This problem is caused by

from thrift_compiler import frontend
ImportError: cannot import name frontend

So, you should sudo cp frontend.so /path/to/thrift_compiler.
My thrift_compiler path for reference /usr/local/lib/python2.7/dist-packages/thrift_py-0.9.0-py2.7.egg/thrift_compiler/.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants