Closed iamsergio closed 6 years ago
The documentation is not great about this detail but which thrift version is installed in your pip environment? It should match the thrift compiler version that is installed in your system. Could you check if you can get it work with matching versions?
I don't know much about python, but I randomly edited requirements_py/requirements.txt and the error is gone ;)
It's now slowly running, but clangsa is taking 3 minutes per translation unit. Is there a way to use more cores ?
@iamsergio CodeChecker check
and analyze
both take a -j
parameter. This works in the same way as for make, specifying the number of concurrent analysis jobs. In most cases -j $(nproc)
will work.
thanks @whisperity, that worked!
Following the exact instructions, on archlinux I get:
$ CodeChecker check -b make -o ~/result Traceback (most recent call last): File "/home/test1/codechecker/build/CodeChecker/cc_bin/CodeChecker.py", line 20, in
from shared.ttypes import RequestFailed
File "/home/test1/codechecker/build/CodeChecker/lib/python2.7/gencodechecker/shared/ttypes.py", line 9, in
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
ImportError: cannot import name TFrozenDict
$ thrift --version Thrift version 0.11.0
According to the Linux requirements this thrift version should work ?