Issue in python Hive connectivity - python

I am trying to connect the python with Hive, and I am getting following message on terminal:
Traceback (most recent call last):
File "eg.py", line 18, in <module>
database='default')
File "/home/ashok/.local/lib/python2.7/site-packages/pyhs2/__init__.py", line 6, in connect
from .connections import Connection
File "/home/ashok/.local/lib/python2.7/site-packages/pyhs2/connections.py", line 7, in <module>
from cloudera.thrift_sasl import TSaslClientTransport
ImportError: No module named cloudera.thrift_sasl
Even after doing some google work, I can't find the answer.
Help me out here.

Related

how connection odoo.conf with postgresql by pycharm in odoo 15

i want configration odoo.conf with postgresql pgadmin by pycharm
But I have a problem
odoo.conf.py
edit configrations
problem message:
/home/ayobqorban/odoo/testodoo/odoo15/venv/bin/python /home/ayobqorban/odoo/testodoo/odoo15/odoo-bin --config=/home/ayobqorban/odoo/testodoo/odoo15/debian/odoo.conf
Traceback (most recent call last):
File "/home/ayobqorban/odoo/testodoo/odoo15/odoo-bin", line 5, in <module>
import odoo
File "/home/ayobqorban/odoo/testodoo/odoo15/odoo/__init__.py", line 75, in <module>
import PyPDF2
ModuleNotFoundError: No module named 'PyPDF2'
Process finished with exit code 1

how to solve this Problem with google-assistant-sdk?

Has anyone got a solution for this?
Traceback (most recent call last):
File "/home/pi/env/bin/googlesamples-assistant-pushtotalk", line 5, in
from googlesamples.assistant.grpc.pushtotalk import main
File "/home/pi/env/lib/python3.9/site-packages/googlesamples/assistant/grpc/pushtotalk.py", line 22, in
import grpc
File "/home/pi/env/lib/python3.9/site-packages/grpc/init.py", line 22, in
from grpc import _compression
File "/home/pi/env/lib/python3.9/site-packages/grpc/_compression.py", line 15, in
from grpc._cython import cygrpc
ImportError: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.33' not found (required by /home/pi/env/lib/python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-arm-linux-gnueabihf.so)

cannot launch Jupyter from anaconda

I just got a new laptop at work and installed anaconda.. howerver, when i launched Jupyter I received the following error. Does anyone know what i should do here? Cheers
Traceback (most recent call last):
File "C:\Users\darren.chapman\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 9, in
import sqlite3
File "C:\Users\darren.chapman\AppData\Local\Continuum\anaconda3\lib\sqlite3\__init__.py", line 23, in
from sqlite3.dbapi2 import *
File "C:\Users\darren.chapman\AppData\Local\Continuum\anaconda3\lib\sqlite3\dbapi2.py", line 27, in
from _sqlite3 import *
ImportError: DLL load failed: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\darren.chapman\AppData\Local\Continuum\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in
from notebook.notebookapp import main
File "C:\Users\darren.chapman\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\notebookapp.py", line 86, in
from .services.sessions.sessionmanager import SessionManager
File "C:\Users\darren.chapman\AppData\Local\Continuum\anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 12, in
from pysqlite2 import dbapi2 as sqlite3
ModuleNotFoundError: No module named 'pysqlite2'
You have to add the path.
while installing click the add anoconda to the path.

ImportError: cannot import name main

I recently rearranged some folders around and a python file I used to run is no longer working. When I try to run the file I get:
Traceback (most recent call last):
File "twitter_stream.py", line 9, in <module>
from tweepy import Stream
ImportError: No module named tweepy
I don't understand why I no longer have tweepy installed because I just had it When I do a simple 'pip3 install tweepy' I get:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/pip3", line
7, in <module>
from pip import main
ImportError: cannot import name main
I'm not sure what happened here. Any help would be greatly appreciated

error in using pattern.db

I use pattern.db module from pattern-2.5 in python to make a database, but when i run it, there is a message:
Traceback (most recent call last):
File "cobadb.py", line 25, in <module>
db = Database('my_stuff')
File "/usr/local/lib/python2.7/dist-packages/pattern/db/__init__.py", line 381, in __init__
_import_db(type)
File "/usr/local/lib/python2.7/dist-packages/pattern/db/__init__.py", line 54, in _import_db
import pysqlite2.dbapi2 as sqlite
ImportError: No module named pysqlite2.dbapi2
As is quite clear from the message, you need to install pysqlite2.

Categories

Resources