MS SQL Connection to Python - python

I'm getting an error that Django did not find the pyodbc library in the build directory. Will use an installed version.
Traceback (most recent call last):
File "C:\Users\ggang1\Downloads\pyodbc-4.0.17\pyodbc-4.0.17\tests3\test.py", line 5, in <module>
import pyodbc
ImportError: No module named pyodbc
Any help would be appreciated.

Related

cx_Oracle connection issue from python

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'

unable to run Mysqldbcopy on Suse Enterprise 11

When I tried to run mysqldbcopy utility I get the following error.
mysqldbcopy --source=root:root#localhost:3306 \
--destination=root:root#localhost:3306 first:first_copy
Traceback (most recent call last):
File "/usr/bin/mysqldbcopy", line 24, in <module>
from mysql.utilities.common.tools import check_python_version
ImportError: No module named mysql.utilities.common.tools
I have checked that python (2.6) is installed on my machine.
I have installed mysql python connector mentioned at http://dev.mysql.com/downloads/connector/python/
I have installed mysql utilities from
https://dev.mysql.com/downloads/utilities/
I am not sure why I am still getting that error.

Can't run MySql Utilities

When I try and run MySQL Utilities from WorkBench I get the following error:
h3tr1ck$ mysqluc -e "help utilities"
Traceback (most recent call last):
File "/bin/mysqluc", line 23, in <module>
from mysql.utilities.common.options import license_callback, UtilitiesParser
File "/Library/Python/2.7/site-packages/mysql/utilities/common/options.py", line 34, in <module>
from mysql.connector.conversion import MySQLConverter
ImportError: No module named connector.conversion
Then, if I type "mysql" into terminal it tells me that the command can not be found. Any help would be appreciated.
Thanks.
MYSQL Utilities assumes that the MySQL Connector for Python has been installed.
If you install it (http://dev.mysql.com/downloads/connector/python/), MySQL Utilities should run OK.

Importing pyodbc on OS X fails

I am trying to use pyodbc on OS X 10.7 and Python 2.7.
But the 'import pyodbc' statement causes the following error:
>>> import pyodbc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(./pyodbc.so, 2): Symbol not found: _GetPrivateProfileString
Referenced from: /usr/lib/libiodbc.2.dylib
Expected in: flat namespace
I have been looking on Google and tried to reinstall pyodbc by following different tutorials, without any luck. Any help is appreciated.

wrong architecture error mysql python

i use flask.I installed MySQL using easy_install mysql-python and then tried to run my app.py but got this lines of error.What is those mean?
Traceback (most recent call last):
File "app.py", line 7, in <module>
import MySQLdb
File "/Users/ozcan/Documents/python/venv/lib/python2.7/site-packages/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: dlopen(/Users/ozcan/Documents/python/venv/lib/python2.7/site-packages/_mysql.so, 2): no suitable image found. Did find:
/Users/ozcan/Documents/python/venv/lib/python2.7/site-packages/_mysql.so: mach-o, but wrong architecture
I would suggest to use Flask-MySQL instead.
Here's documentation https://flask-mysql.readthedocs.org/en/latest/

Categories

Resources