question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running with Debian testing, the different version of Thrift causes an exception

See original GitHub issue

Describe the bug Running with Debian testing, the different version of Thrift causes an exception

Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/update-codechecker/build/CodeChecker/cc_bin/CodeChecker.py", line 20, in <module>
    from shared.ttypes import RequestFailed
  File "/var/lib/jenkins/workspace/update-codechecker/build/CodeChecker/lib/python2.7/gencodechecker/shared/ttypes.py", line 9, in <module>
    from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
ImportError: cannot import name TFrozenDict

CodeChecker version Base package version | 6.9.0
Package build date | 2019-01-05T15:30
Git commit ID (hash) | c55e32be0305f0a65c621acd150e3f24ff3062a2 Git tag information | 6.9
Configuration schema | v6.0
Database schema | v6.0
Server supported API (Thrift) | 6.14
Client API (Thrift) | 6.14

To Reproduce Install this version of thrift https://packages.debian.org/buster/python-thrift

On my system, the following fixed my issue:

--- a/requirements_py/requirements.txt
+++ b/requirements_py/requirements.txt
@@ -2,4 +2,4 @@ alembic==0.9.2
 portalocker==1.1.0
 psutil==5.2.2
 sqlalchemy==1.1.11
-thrift==0.9.1
+thrift==0.11.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
sylvestrecommented, Jan 10, 2019

no worries, it is just to detail the issue for other folks impacted by this cryptic error message 😃

0reactions
gyorbcommented, Mar 16, 2020

I think we can close this issue. Since the changes in #2570 a pypi package is created from the thrift stubs so building the CodeChecker package does not depend on the thrift compiler on the host machine. Every required thrift library is downloaded from pypi or npmjs with the right version. A virtual environment update might be needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

thrift/CHANGES.md at master · apache/thrift - GitHub
THRIFT -5459 - Client calls will return TApplicationException with MISSING_RESULT when the result is a struct but is unset, and no other error...
Read more >
Debian Bug report logs - #1016466 libspdlog1: ABI breakage ...
Good day, I am new to the Debian bug system so maybe I am wrong regarding my next remark. This bug that I...
Read more >
C++ library - Apache Thrift
This happens when they receive a connection reset by remote peer exception, which somehow triggers a SIGPIPE signal. If not handled, this signal...
Read more >
Changelog for Apache Thrift 0.10.0 - ABI laboratory
[THRIFT-3743] - Java JSON protocol left in incorrect state when an exception is thrown during read or write operations * [THRIFT-3731] - Perl...
Read more >
thrift Changelog - PyUp.io
[THRIFT-3877](https://issues.apache.org/jira/browse/THRIFT-3877) - C++ library don't work with HTTP (csharp server, cpp client; need cross test enhancement)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found