methew / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

pyodbc and python 3.3 #290

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1) It would be nice to have pyodbc-3.0.2.win32-py3.3.exe binaries to install 
pyodbc binaries to python 3.3 on Windows platform. 

2) Supporting 'pip install pyodbc-windows-binaries' would also be fine

3) Installing pyodbc-3.0.2.win32-py3.2.exe on python 3.3 leads to 'DLL Loading 
failed' python error 

Steps to reproduce for python 3.3:
1. download pyodbc-3.0.2.win32-py3.2.exe binaries
2. run in shell: 'easy_install pyodbc-3.0.2.win32-py3.2.exe' - installs without 
errors
3. run in python: 'import pyodbc' 

Step 3 fails first with error message from MS Visual C++ Runtime Library  (see 
attached image) and then with python error message 'DLL Loading failed'

Python version:
'3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)]'

pyodbc binaries: pyodbc-3.0.2.win32-py3.2.exe

Original issue reported on code.google.com by bisofter@gmail.com on 11 Oct 2012 at 3:41

Attachments:

GoogleCodeExporter commented 9 years ago
DLLs are not compatible over different Python version. Only for bug fix 
releases.
Even Python 3.3 uses a other newer compiler for Windows.
So you can't load a DLL (or pyd) build for Version 3.2 with version 3.3.
So someone has to provide a version build for Python 3.3.

A good location for this is: http://www.lfd.uci.edu/~gohlke/pythonlibs/
There is also a build of pyodbc for Python 3.3.

Original comment by tds...@gmail.com on 18 Oct 2012 at 12:04