From seandavi at gmail.com Tue Sep 4 11:51:15 2007 From: seandavi at gmail.com (Sean Davis) Date: Tue Sep 4 16:51:29 2007 Subject: [egenix-users] mxodbc and DataDirect driver manager In-Reply-To: <46D73DB6.1000504@egenix.com> References: <264855a00708301228m7f40484wdba2876fd6bb12c9@mail.gmail.com> <46D733DE.7050103@egenix.com> <46D73DB6.1000504@egenix.com> Message-ID: <264855a00709040751i4645a345v994d258bfb279c73@mail.gmail.com> On 8/30/07, M.-A. Lemburg wrote: > > > > On 2007-08-30 23:17, M.-A. Lemburg wrote: > > On 2007-08-30 21:28, Sean Davis wrote: > >> I have a third-party database provider that provides a driver and > DataDirect > >> driver manager. I have tried using their driver with the unixODBC > driver > >> manager with poor results (got junk output, lack of output from > queries). > >> With other clients (perl and RODBC), I have been able to simply point > the > >> lib and include directories to the DataDirect directories and > recompile. Is > >> this possible to do with mxODBC? For what it is worth, the other > clients > >> seem to recognize the DataDirect driver manager as > "unixODBC-like". Any > >> suggestions? > > > > This is possible, but since we don't ship the source code, we'll > > have to do this for you. > > > > Which database driver and database are you referring to ? > > One thing you should try is pointing the mx.ODBC.unixODBC package > at the DataDirect ODBC manager: > > mxODBC.so links against the libodbc.so.1 lib provided by unixODBC. > > According to this page: > > > http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc00190_0500/html/edi50ig/CHDDJCJA.htm > > the DataDirect ODBC driver provides a libodbc.so file. > > Simply adding a link from libodbc.so to libodbc.so.1 may be all > you need to do. > > cd /lib > ln -sf libodbc.so libodbc.so.1 > ldconfig > > You can verify the correct setup by doing a: > > ldconfig -p | fgrep odbc > > Then give mx.ODBC.unixODBC a try and see whether this works. If not, > we can port mxODBC to the DataDirect manager as suggested in private > email. Mark, I have purchased the full mxODBC (my trial license expired and I will use it for other dbs, also). I tried the trick that you point out here, but I am getting segmentation faults at cur.fetch* after all selects. Inserts and deletes seem to work. Any other ideas, or can you build for the datadirect driver manager? Thanks, Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20070904/07db107c/attachment.htm From mal at egenix.com Wed Sep 5 13:51:18 2007 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Sep 5 12:49:51 2007 Subject: [egenix-users] mxodbc and DataDirect driver manager In-Reply-To: <264855a00709040751i4645a345v994d258bfb279c73@mail.gmail.com> References: <264855a00708301228m7f40484wdba2876fd6bb12c9@mail.gmail.com> <46D733DE.7050103@egenix.com> <46D73DB6.1000504@egenix.com> <264855a00709040751i4645a345v994d258bfb279c73@mail.gmail.com> Message-ID: <46DE8A26.9010601@egenix.com> On 2007-09-04 16:51, Sean Davis wrote: > On 8/30/07, M.-A. Lemburg wrote: >> According to this page: >> >> http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc00190_0500/html/edi50ig/CHDDJCJA.htm >> >> the DataDirect ODBC driver provides a libodbc.so file. >> >> Simply adding a link from libodbc.so to libodbc.so.1 may be all >> you need to do. >> >> cd /lib >> ln -sf libodbc.so libodbc.so.1 >> ldconfig >> >> You can verify the correct setup by doing a: >> >> ldconfig -p | fgrep odbc >> >> Then give mx.ODBC.unixODBC a try and see whether this works. If not, >> we can port mxODBC to the DataDirect manager as suggested in private >> email. > > > Mark, > > I have purchased the full mxODBC (my trial license expired and I will use it > for other dbs, also). I tried the trick that you point out here, but I am > getting segmentation faults at cur.fetch* after all selects. Inserts and > deletes seem to work. Any other ideas, or can you build for the datadirect > driver manager? We can build mxODBC against the DataDirect ODBC driver manager, but this will be billed as paid support. We will also need access to the driver package. According to the eval license on their site, it is not permitted to use the trial licenses for development, so we'll have to contact DataDirect to see how we can proceed. Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 05 2007) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2007-09-08: PyCon UK 2007, Birmingham, UK 2 days to go 2007-08-22: Released mxODBC 3.0.1 http://python.egenix.com/ :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,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 From info at egenix.com Wed Sep 12 18:25:59 2007 From: info at egenix.com (eGenix Team: M.-A. Lemburg) Date: Wed Sep 12 17:24:00 2007 Subject: [egenix-users] ANN: eGenix mxODBC and mxODBC Zope DA on 64-bit FreeBSD Message-ID: <46E80507.1040506@egenix.com> ________________________________________________________________________ ANNOUNCING eGenix.com mxODBC Database Interface eGenix.com mxODBC Zope Database Adapter for 64-bit FreeBSD This announcement is also available on our web-site for online reading: http://www.egenix.com/company/news/eGenix-mxODBC-on-FreeBSD-amd64-GA.html ________________________________________________________________________ eGenix mxODBC Distribution The eGenix mxODBC Distribution is a Python database interface add-on distribution for our eGenix mx Base Distribution. It comes with mxODBC, our universal ODBC database interface for Python. Customers who have purchased licenses for other platforms and wish to move their installation to FreeBSD 64-bit, can do so without having to buy a new license. The licenses will continue to work on the 64-bit platform. Users of mxODBC 2.0 will have to purchase new licenses from our online shop in order to upgrade to mxODBC 3.0. You can request 30-day evaluation licenses on the product page. Downloads --------- Please visit the eGenix mxODBC Distribution page for downloads, instructions on installation and documentation of the packages. http://www.egenix.com/products/python/mxODBC/ Note that in order to use the eGenix mxODBC Distribution you need to install the eGenix mx Base Distribution first. ________________________________________________________________________ eGenix mxODBC Zope DA eGenix mxODBC Zope DA is our database interface for Zope and Plone. It is based on the mxODBC interface. Customers who have purchased licenses for other platforms and wish to move their installation to FreeBSD 64-bit, can do so without having to buy a new license. The licenses will continue to work on the 64-bit platform. You can request 30-day evaluation licenses on the product page. Downloads --------- Please visit the eGenix mxODBC Zope DA product page for downloads, instructions on installation and documentation of the packages. http://www.egenix.com/products/zope/mxODBCZopeDA/ ________________________________________________________________________ More Information For more information on our products, licensing and download instructions, please write to sales@egenix.com. Enjoy, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 12 2007) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2007-08-22: Released mxODBC 3.0.1 http://python.egenix.com/ :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,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 From egenix-users at maubp.freeserve.co.uk Thu Sep 13 13:13:21 2007 From: egenix-users at maubp.freeserve.co.uk (Peter) Date: Thu Sep 13 13:13:49 2007 Subject: [egenix-users] Problems moving to mxTextTools 3.0 Message-ID: <46E91B51.3020301@maubp.freeserve.co.uk> Over at Biopython we have a problem with the move from mxTextTools 2.0 to mxTextTools 3.0, specifically in Andrew Dalke's "Martel" parsing engine, and were wondering if you could help. Looking at the change log, there are few things that look important: http://www.egenix.com/products/python/mxBase/mxTextTools/changelog.html Do you have any examples of "recompiling a tag table", which may be the issue here. Also could you clarify what is meant by "Removed support for buffer-compatible input objects"? Does this mean we can't use Python's StringIO handles? Thank you, Peter From mal at egenix.com Thu Sep 13 14:29:06 2007 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Sep 13 13:25:53 2007 Subject: [egenix-users] Problems moving to mxTextTools 3.0 In-Reply-To: <46E91B51.3020301@maubp.freeserve.co.uk> References: <46E91B51.3020301@maubp.freeserve.co.uk> Message-ID: <46E91F02.4060206@egenix.com> On 2007-09-13 13:13, Peter wrote: > Over at Biopython we have a problem with the move from mxTextTools 2.0 > to mxTextTools 3.0, specifically in Andrew Dalke's "Martel" parsing > engine, and were wondering if you could help. > > Looking at the change log, there are few things that look important: > http://www.egenix.com/products/python/mxBase/mxTextTools/changelog.html > > Do you have any examples of "recompiling a tag table", which may be the > issue here. You normally don't need to worry about this, since the tagging engine will compile the tag tables automatically for you. > Also could you clarify what is meant by "Removed support for > buffer-compatible input objects"? Does this mean we can't use Python's > StringIO handles? Yes, we had to do this as a result of the restructuring of the underlying code which no longer works on a char* pointer, but instead uses the object type information to see whether it needs to compile a Unicode tag table or a string one. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 13 2007) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2007-08-22: Released mxODBC 3.0.1 http://python.egenix.com/ :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,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 From egenix-users at maubp.freeserve.co.uk Thu Sep 13 14:08:53 2007 From: egenix-users at maubp.freeserve.co.uk (Peter) Date: Thu Sep 13 14:09:31 2007 Subject: [egenix-users] Problems moving to mxTextTools 3.0 In-Reply-To: <46E91F02.4060206@egenix.com> References: <46E91B51.3020301@maubp.freeserve.co.uk> <46E91F02.4060206@egenix.com> Message-ID: <46E92855.10309@maubp.freeserve.co.uk> Thanks for your quick reply Marc-Andre, >> Also could you clarify what is meant by "Removed support for >> buffer-compatible input objects"? Does this mean we can't use Python's >> StringIO handles? > > Yes, we had to do this as a result of the restructuring of the > underlying code which no longer works on a char* pointer, but > instead uses the object type information to see whether it needs > to compile a Unicode tag table or a string one. Oh :( I was afraid you might say that. Do you have any suggested workarounds for using mxTextTools to parse data held in a string (rather than read from a handle to an opened file)? Thanks Peter From mal at egenix.com Thu Sep 13 15:25:44 2007 From: mal at egenix.com (M.-A. Lemburg) Date: Thu Sep 13 14:22:27 2007 Subject: [egenix-users] Problems moving to mxTextTools 3.0 In-Reply-To: <46E92855.10309@maubp.freeserve.co.uk> References: <46E91B51.3020301@maubp.freeserve.co.uk> <46E91F02.4060206@egenix.com> <46E92855.10309@maubp.freeserve.co.uk> Message-ID: <46E92C48.2070206@egenix.com> Peter wrote: > Thanks for your quick reply Marc-Andre, > >>> Also could you clarify what is meant by "Removed support for >>> buffer-compatible input objects"? Does this mean we can't use Python's >>> StringIO handles? >> >> Yes, we had to do this as a result of the restructuring of the >> underlying code which no longer works on a char* pointer, but >> instead uses the object type information to see whether it needs >> to compile a Unicode tag table or a string one. > > Oh :( > > I was afraid you might say that. > > Do you have any suggested workarounds for using mxTextTools to parse > data held in a string (rather than read from a handle to an opened file)? I think I lost you there :-) mxTextTools *does* work on Python strings and Unicode. It no longer works on objects that just expose the buffer API. We'll likely add support for that at some later stage, but for now, the Unicode support was more important to get right. You can easily convert a StringIO instance to a Python string using .getvalue() method. For larger amounts of data, it's also a good idea to process the data in chunks. mxTextTools allows for this by returning the index of where it stopped parsing the input. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 13 2007) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,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 From mal at egenix.com Fri Sep 28 13:06:52 2007 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Sep 28 12:06:39 2007 Subject: [egenix-users] New team member: Viktor Ferenczi Message-ID: <46FCD23C.1070503@egenix.com> Gents, just wanted to let you know that we have a new team member: Viktor. He's based in Budapest, Hungary, and will help us getting the mxODBC Bridge product off the ground. Welcome to eGenix, Viktor ! PS: He's already been working with me over the last two weeks, sorry about the late introduction. Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 28 2007) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,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 From mal at egenix.com Fri Sep 28 13:24:42 2007 From: mal at egenix.com (M.-A. Lemburg) Date: Fri Sep 28 12:24:27 2007 Subject: [egenix-users] New team member: Viktor Ferenczi In-Reply-To: <46FCD23C.1070503@egenix.com> References: <46FCD23C.1070503@egenix.com> Message-ID: <46FCD66A.4040006@egenix.com> Hmm, this was supposed to go on our team list :-) Anyway, now the word is out: we're working on a new product based on mxODBC. On 2007-09-28 12:06, M.-A. Lemburg wrote: > Gents, > > just wanted to let you know that we have a new team member: Viktor. > > He's based in Budapest, Hungary, and will help us getting the mxODBC > Bridge product off the ground. > > Welcome to eGenix, Viktor ! > > PS: He's already been working with me over the last two weeks, > sorry about the late introduction. > > Thanks, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 28 2007) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,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