I connected Python with MySQLdb using MySQLConnector but now i am getting the following error.
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import MySQLdb
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so, 2): Symbol not found: _mysql_affected_rows
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so
Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so
After installing using homebrew, i am getting the following errors
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
import _mysql
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so, 2): Symbol not found: _mysql_affected_rows
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so
Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.6-intel.egg/_mysql.so
Related
I have installed python-pcl| using pip. When I try to import pcl in my conda environment I am getting the following
ERROR
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/is/sg2/ghegde/install/conda/envs/deepl/lib/python3.6/site-packages/pcl/__init__.py", line 2, in <module>
from ._pcl import *
ImportError: /usr/lib/x86_64-linux-gnu/libpcl_visualization.so.1.8: undefined symbol: _ZN3pcl9PCDWriter10writeASCIIERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_14PCLPointCloud2ERKN5Eigen6MatrixIfLi4ELi1ELi0ELi4ELi1EEERKNSC_10QuaternionIfLi0EEEi
import psycopg2
Traceback (most recent call last): File "", line 1, in
File
"/Users/vedantwarekar/anaconda3/lib/python3.6/site-packages/psycopg2/init.py",
line 51, in
from psycopg2._psycopg import ( # noqa ImportError:
dlopen(/Users/vedantwarekar/anaconda3/lib/python3.6/site-packages/psycopg2/_psycopg.cpython-36m-darwin.so,
2): Symbol not found: _PQencryptPasswordConn Referenced from:
/Users/vedantwarekar/anaconda3/lib/python3.6/site-packages/psycopg2/_psycopg.cpython-36m-darwin.so
Expected in: /usr/lib/libpq.5.dylib in
/Users/vedantwarekar/anaconda3/lib/python3.6/site-packages/psycopg2/_psycopg.cpython-36m-darwin.so
I got this error when I installed Postgresql on my mac with the app(POSGIS).
It was resolved upon loading with brew:
brew install postgresql#<version>
Hi I am getting below error when trying to connect to Oracle from python.
Traceback (most recent call last):
File "C:\Python34\Scripts\OraConnect.py", line 1, in <module>
import cx_Oracle
ImportError: No module named 'cx_Oracle'
when trying to import pyculib I get ImportError: cannot import name config
I have tried pip installing and conda installing various versions of the cudatoolkit but none seem to work.
import pyculib
I get this error the first time I try to import pyculib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/andillio/anaconda2/lib/python2.7/site-packages/pyculib/__init__.py", line 49, in <module>
from . import blas, sparse, fft, rand, sorting
File "/home/andillio/anaconda2/lib/python2.7/site-packages/pyculib/sorting/__init__.py", line 1, in <module>
from .radixsort import RadixSort
File "/home/andillio/anaconda2/lib/python2.7/site-packages/pyculib/sorting/radixsort.py", line 38, in <module>
lib = load_lib('radixsort')
File "/home/andillio/anaconda2/lib/python2.7/site-packages/pyculib/sorting/common.py", line 24, in load_lib
libpath = os.path.join(findlib.get_lib_dir(), fullname)
AttributeError: 'module' object has no attribute 'get_lib_dir'
and this error if I try a second time
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named config
test_ssl.py
root#yasir:/home/yasir/PYTHON/python2.7-2.7.6/Lib/test# python python test_ssl.py
Traceback (most recent call last):
File "test_ssl.py", line 7, in <module>
from test.script_helper import assert_python_ok
ImportError: No module named script_helper
test_urllib2.py
root#yasir:/home/yasir/PYTHON/python2.7-2.7.6/Lib/test# python test_urllib2.py
Traceback (most recent call last):
File "test_urllib2.py", line 3, in <module>
from test import test_urllib
ImportError: cannot import name test_urllib
I'm not able to understand which module is missing so facing this error
tests failed due to missing python module libpython2.7-testsuite