Issue 132: v31 branch won't build on Python 3.1.2
Status:  Complete
Owner: ----
Closed:  Dec 2011
Reported by hengist....@gtempaccount.com, Oct 22, 2010
When building v31 branch for Python 3.1.2 on Mac OS X 10.5.8, the following error occurs:

mkleehammer-pyodbc-3d7ddc4/src/row.cpp:337: error: invalid conversion from ‘PyObject* (*)(PyObject*, Py_ssize_t, Py_ssize_t)’ to ‘void*’

This is due to changes in Python 3's PySequenceMethods type (e.g. see discussion at:

    http://www.mail-archive.com/cython-dev@codespeak.net/msg03385.html

Patch attached.
row.diff
252 bytes   View   Download
Nov 20, 2010
Project Member #1 mkleehammer
(No comment was entered for this change.)
Status: Accepted
Nov 21, 2010
Project Member #2 mkleehammer
(No comment was entered for this change.)
Labels: Python3
Nov 21, 2010
Project Member #3 mkleehammer
Workaround in 3.1.1-beta04

I've temporarily disabled slice assignment in Python 3 until I determine the correct way to port the functionality from 2 to 3.

Labels: -Priority-Medium Priority-Low
Aug 20, 2011
#4 rizw...@gmail.com
Where do we find this 3.1.1-beta 4?
Sep 7, 2011
#5 zjczhjun...@gmail.com
Hi, where shall I find the pyodbc for python 3.1.4
Oct 29, 2011
#6 nickl...@gmail.com
Hi, 
I uploaded a patch to  issue #201  that could work as a workaround in the mean time.
Dec 26, 2011
Project Member #7 mkleehammer
Python 2 & 3 are now built from the same source using the 'master' branch.

Status: Complete