PyPy + pyodbc ?

250 views
Skip to first unread message

bahej...@gmail.com

unread,
Jun 21, 2011, 4:58:20 PM6/21/11
to pyo...@googlegroups.com
I have been unable to use pyodbc with PyPy.  When I do pypy.exe setup.py build, I get the following error:
.\pyodbc\src\pyodbc.h(44) : fatal error C1083: Cannot open include file: 'longobject.h': No such file or directory
I've tried playing with the includes, but I haven't been able to get a successful build.  Has anyone else had any luck with PyPy?

Chris Lambacher

unread,
Jul 20, 2011, 10:21:55 AM7/20/11
to pyodbc
I have been working on it. I needed to make some small changes pyodbc
to make it work as far as I have. Working out some link issues at the
moment. I will by trying to put together a patch once things are
working.

-Chris

Chris Lambacher

unread,
Jul 24, 2011, 9:32:16 PM7/24/11
to pyodbc
Build works on windows (have not tried anything else). A patch will
be coming soon since there were some minor changes required to the
pyodbc source.

I submitted the last compatibility patch that PyPy needed to build a
couple of days ago so you would need to build against current trunk of
pypy. I think there is still more pypy work required for full
stability because I am still having a problem with datetime objects in
rows (but only sometimes).

-Chris

James Kafader

unread,
Aug 11, 2011, 1:59:14 PM8/11/11
to pyodbc
Hi, I was just wondering whether there has been any progress with this
patch or if you'd like to give some pointers on getting pypy/pyodbc
working.

Thanks
James

Chris Lambacher

unread,
Aug 25, 2011, 2:19:27 PM8/25/11
to pyodbc
Hi,

My changes are here:
https://github.com/lambacck/pyodbc/commit/c07ac5c9962eab9b0fea14d7140d14e8cc90abdf

I have not gotten back to seeing if I can sort out my datetime issue.
Unfortunately PyPy on windows is still beta (
http://morepypy.blogspot.com/2011/08/pypy-16-kickass-panda.html ) and
I don't currently have the time to figure out how to make it work. The
key part is that all of the Python C API interfaces that are needed to
make this work seem to be available in PyPy 1.6.

-Chris
Reply all
Reply to author
Forward
0 new messages