pyodbc on linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sean Davis

    pyodbc on linux

    I have read a couple of blogs suggesting that pyodbc is buildable
    under linux. I am running suse 10.2 on a 64-bit intel machine with
    unixODBC installed. Upon building, I get a slew of pretty horrid
    looking errors that make me wonder if this is supposed to work. Can
    anyone at least confirm that this is possible before I try to pursue
    things further?

    Thanks,
    Sean

  • ajaksu

    #2
    Re: pyodbc on linux

    On Jul 21, 5:54 pm, Sean Davis <seand...@gmail .comwrote:
    I have read a couple of blogs suggesting that pyodbc is buildable
    under linux.
    It is, following these wise words:
    "Aargghh! I see that possibly there was a typo in cursor.cpp at line
    1385:

    Py_UNICODE* pNull = (Py_UNICODE*)wm emchr(pT, 0, cch)

    should be

    Py_UNICODE* pNull = (Py_UNICODE*)me mchr(pT, 0, cch)


    Anyway, uncommented what I had commented out and changed the wmemchr
    to
    wmemchr and everything compiled."(I just did it a few hours ago, quite a coincidence :))

    HTH,
    Daniel


    Comment

    • M.-A. Lemburg

      #3
      Re: pyodbc on linux

      On 2007-07-21 22:54, Sean Davis wrote:
      I have read a couple of blogs suggesting that pyodbc is buildable
      under linux. I am running suse 10.2 on a 64-bit intel machine with
      unixODBC installed. Upon building, I get a slew of pretty horrid
      looking errors that make me wonder if this is supposed to work. Can
      anyone at least confirm that this is possible before I try to pursue
      things further?
      Have you tried mxODBC ?

      mxODBC&trade; is the eGenix flagship product for connecting Python to all major databases, on all major platforms, using a fully Python DB-API 2.0 standard compatible ODBC interface, with many extensions and enhanced support of stored procedures with input, output and input/output parameters.


      It's been in production use on Linux for years (including on
      64-bit machines).

      Regards,
      --
      Marc-Andre Lemburg
      eGenix.com

      Professional Python Services directly from the Source (#1, Aug 25 2007)
      >>Python/Zope Consulting and Support ... http://www.egenix.com/
      >>mxODBC.Zope.D atabase.Adapter ... http://zope.egenix.com/
      >>mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
      _______________ _______________ _______________ _______________ ____________

      :::: Try mxODBC.Zope.DA for Windows,Linux,S olaris,MacOSX for free ! ::::


      eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
      D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
      Registered at Amtsgericht Duesseldorf: HRB 46611

      Comment

      Working...