[web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-08 Thread 江文
Massimo Di Pierro massimo.dipierro@... writes: What you are telling me is that pypyodbc does not require additional python packages but it requires odbc. Hi, I'm the maintainer of pypyodbc. I noticed you meet the library loading problem and I re-looked at the code, and I uploaded a

[web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-08 Thread Massimo Di Pierro
Thank you very much for your work. We plan to include pypyodbc.py (only this file) in web2py under contrib. Would that be ok? Is the license mentioned in the file itself sufficient or should we ship a separate license file? Massimo On Friday, 8 February 2013 08:03:06 UTC-6, 江文 wrote:

[web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-08 Thread 江文
Massimo Di Pierro massimo.dipierro@... writes: Thank you very much for your work. We plan to include pypyodbc.py (only this file) in web2py under contrib. Would that be ok? Is the license mentioned in the file itself sufficient or should we ship a separate license file? MassimoOn

[web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-05 Thread Massimo Di Pierro
I tried: from contrib.pypyodbc import pypyodbc as pyodbc and I get: gluon.contrib.pypyodbc.OdbcNoLibrary: 'ODBC Library is not found' Can you help? On Monday, 4 February 2013 18:09:31 UTC-6, Derek wrote: Any way we can add this? http://code.google.com/p/pypyodbc/ It's a pure python

Re: [web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-05 Thread Mariano Reingart
I think pyodbc works great on windows, for unix you should compile it with unixODBC support: http://code.google.com/p/pyodbc/wiki/Building Anyway, surely in unix you will not have a tipical ODBC database to test (MS SQLServer, MS Access, etc.) ... Best regards Mariano Reingart

[web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-05 Thread Derek
As I said, I edited dal.py and replaced references to pyodbc to pypyodbc and that seemed to work. I believe the only adapter referencing it as a driver was the mssql driver. On Tuesday, February 5, 2013 7:45:28 AM UTC-7, Massimo Di Pierro wrote: I tried: from contrib.pypyodbc import

[web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-05 Thread Massimo Di Pierro
Which os? Not for me. On Tuesday, 5 February 2013 12:53:07 UTC-6, Derek wrote: As I said, I edited dal.py and replaced references to pyodbc to pypyodbc and that seemed to work. I believe the only adapter referencing it as a driver was the mssql driver. On Tuesday, February 5, 2013 7:45:28

[web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-05 Thread Derek
This was on Windows. It appears to be looking in these locations: /usr/lib/libodbc.so,/usr/lib/i386-linux-gnu/libodbc.so,/usr/lib/x86_64-linux-gnu/libodbc.so So, if it's not in those locations, you might want to add your libodbc.so location. line 462 of pypyodbc.py On Tuesday, February 5,

[web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-05 Thread Massimo Di Pierro
What you are telling me is that pypyodbc does not require additional python packages but it requires odbc. On Tuesday, 5 February 2013 14:02:54 UTC-6, Derek wrote: This was on Windows. It appears to be looking in these locations:

[web2py] Re: Include odbc and mssql support with pypyodbc.py

2013-02-05 Thread Derek
Yup. It uses ctypes to access your existing odbc libraries. On Tuesday, February 5, 2013 3:22:45 PM UTC-7, Massimo Di Pierro wrote: What you are telling me is that pypyodbc does not require additional python packages but it requires odbc. On Tuesday, 5 February 2013 14:02:54 UTC-6, Derek