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.

Missing dependency on TCLIService

See original GitHub issue

Hello,

I’m getting the following warning when launching redash:

[2015-08-19 12:49:45,978][PID:17][WARNING][redash.query_runner.hive_ds] Missing dependencies. Please install pyhive.
[2015-08-19 12:49:45,979][PID:17][WARNING][redash.query_runner.hive_ds] You can use pip: pip install pyhive

pyhive is installed, but looking at the redash code these seem to be due to the following ImportError

Python 2.7.10 (default, Jul 18 2015, 00:45:22)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyhive import hive
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/pyhive/hive.py", line 10, in <module>
    from TCLIService import TCLIService
ImportError: No module named TCLIService

Any idea of how I might solve it? I’m not familiar with hive

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
georgeliawcommented, Jan 18, 2017

@arikfr we were able to resolve the versioning issue mentioned by @vbajaria

Basically the problem was with python-pip on Ubuntu 14.04 being an old version with different behavior (python-pip=1.5.4-1ubuntu4), which prevented it from uninstalling pyhive (it was probably looking for installed-files.txt in the egg, which doesn’t exist). After bumping pip to version 9.0.1, the issue went away.

What we saw when doing manual package install, which lead us to the conclusion that there was a pip issue:

$ sudo pip install pyhive==0.1.6
Downloading/unpacking pyhive==0.1.6
  Downloading PyHive-0.1.6.tar.gz
  Running setup.py (path:/tmp/pip_build_root/pyhive/setup.py) egg_info for package pyhive
    
Installing collected packages: pyhive
  Found existing installation: PyHive 0.1.5
    Can't uninstall 'PyHive'. No files were found to uninstall.
  Running setup.py install for pyhive
    
  Could not find .egg-info directory in install record for pyhive==0.1.6
Successfully installed pyhive
Cleaning up...```

0reactions
arikfrcommented, Jan 19, 2017

@georgeliaw thanks for the follow up and writeup. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolving missing dependency error messages during an ...
If a dependency is missing from the target system, an error message is displayed. You can either stop the import or continue with...
Read more >
Missing dependency for method when doing a file upload rest ...
In my case the problem were different library versions of jersey-bundle and com.sun.jersey.contribs ; after settign both to the same version ...
Read more >
missing-dependency-on-libc - Lintian - Debian
missing -dependency-on-libc. The listed file appears to be linked against the C library, but the package doesn't depend on the C library package....
Read more >
Missing Dependencies - Require Table that has been...
I want to import my solution to another environment, but always getting Missing Dependencies. it says required table ecom_siginingcontract ...
Read more >
Solve some problems encountered when using Hive-JDBC
NoClassDefFoundError: org/apache/hive/service/cli/thrift/TCLIService$Iface ... So looking at the imported dependency packages, I found that there are two ...
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