ubuntu 18.04 python3.6 failed to import PyV8 after build - python-3.6

import PyV8
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.6/dist-packages/PyV8-1.0.dev0-py3.6-linux-x86_64.egg/PyV8.py", line 33, in
import _PyV8
ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0: undefined symbol: PyClass_Type

Related

Import Pyodbc error while running a python script on pycharm on mac

I'm getting pyodbc import error while i'm trying to run a python script on pycharm
I have already tried pip install pyodbc , and also brew install unixodbc
I'm still getting the below error.
Traceback (most recent call last):
File "/Users/s0s0qw4/astro-airflow-localdev/dags/dremio.ak.py", line 17, in <module>
import pyodbc
ImportError: dlopen(/Users/s0s0qw4/astro-airflow-localdev/venv/lib/python3.10/site-packages/pyodbc.cpython-310-darwin.so, 0x0002): Library not loaded: '/usr/local/opt/unixodbc/lib/libodbc.2.dylib'
Referenced from: '/Users/s0s0qw4/astro-airflow-localdev/venv/lib/python3.10/site-packages/pyodbc.cpython-310-darwin.so'
Reason: tried: '/usr/local/opt/unixodbc/lib/libodbc.2.dylib' (no such file), '/usr/lib/libodbc.2.dylib' (no such file)
I have tried to uninstall pyodbc and reinstall. I'm getting the below error:
import pyodbc
ImportError: dlopen(/Users/s0s0qw4/astro-airflow-localdev/venv/lib/python3.10/site-packages/pyodbc.cpython-310-darwin.so, 0x0002): Library not loaded: '#rpath/libodbc.2.dylib'
Referenced from: '/Users/s0s0qw4/astro-airflow-localdev/venv/lib/python3.10/site-packages/pyodbc.cpython-310-darwin.so'
Reason: tried: '/usr/lib/libodbc.2.dylib' (no such file)

Error During installation devstack ModuleNotFoundError: No module named 'neutron'

I was installing DevStack on Ubuntu 20.04 when I encountered this error
It says that the Neutron module was not found
while neutron is installed
++lib/neutron_plugins/ovn_agent:filter_network_api_extensions:439
/usr/local/bin/python3.8 -c 'from neutron.common.ovn import extensions ;\
print(",".join(extensions.ML2_SUPPORTED_API_EXTENSIONS))
'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'neutron'
+lib/neutron_plugins/ovn_agent:filter_network_api_extensions:439

No module named 'beautifulsoup4' even if the module is downloaded in the anaconda

ModuleNotFoundError Traceback (most recent call last)
<ipython-input-5-f33cf0cb8fd3> in <module>
----> 1 from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4
beautifulsoup4 is downloaded in my Anaconda Navigator but it shoes that no module is found.
Please help.
import sys
!conda install --yes --prefix {sys.prefix} beautifulsoup4
from bs4 import BeautifulSoup

No module name telethon

from telethon import TelegramClient
Error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'telethon'
Installed it using : sudo pip3 install telethon
Switched to python3 on console and ran the above import command.
I have both python 2 and 3.

ImportError QtSql in Raspbian

QtSql import error occurs in Raspbian.
When I checked PyQt5 import in python console, it was imported.
Only QtSql Import Error occurred.
Anyone know how to fix?
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5.QtCore import Qt
>>> from PyQt5 import QtSql
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'QtSql'
It was solved by eyllanesc help.
sudo apt-get install python3-pyqt5.qtsql

Resources