473,382 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

CygWin ODBC

Hi All,

I am new to Cygwin and am hoping that someone here will be able to tell
me how to get ODBC running in Python on Cygwin.

Maximum gratefullness...
Simon
Jul 19 '05 #1
2 2784
Simon Faulkner wrote:
Hi All,

I am new to Cygwin and am hoping that someone here will be able to tell
me how to get ODBC running in Python on Cygwin.

Maximum gratefullness...
Simon


There's a trick to this which involves recompiling from source. If you
aren't experienced with Unix/Linux this might seem a bit intimidating.

The latest version I worked on is mxODBC 2.0.7. If Egenix have released
something later it may incorporate these changes. Sorry they aren't
"diff -c" format.

I also remember the need in the past to rename some ".cpp" files to
".c", but I believe this has now been done in the distributions.

regards
Steve

diff -rc egenix-mx-commercial-2.0.7/mxCOMMERCIAL.py
egenix-mx-commercial-2.0.7cygwin/mxCOMMERCIAL.py
*** egenix-mx-commercial-2.0.7/mxCOMMERCIAL.py Wed Dec 1 13:10:27 2004
--- egenix-mx-commercial-2.0.7cygwin/mxCOMMERCIAL.py Sat Dec 18
09:56:27 2004
***************
*** 55,61 ****
packages = ['mx.ODBC',
'mx.ODBC.Misc']

! if sys.platform[:3] == 'win':
packages[len(packages):] = [

'mx.ODBC.Windows'
--- 55,61 ----
packages = ['mx.ODBC',
'mx.ODBC.Misc']

! if sys.platform[:3] == 'win' or sys.platform == 'cygwin':
packages[len(packages):] = [

'mx.ODBC.Windows'
***************
*** 89,95 ****
#
ext_modules = []

! if sys.platform[:3] == 'win':
ext_modules[len(ext_modules):] = [

Extension('mx.ODBC.Windows.mxODBC',
--- 89,95 ----
#
ext_modules = []

! if sys.platform[:3] == 'win' or sys.platform == 'cygwin':
ext_modules[len(ext_modules):] = [

Extension('mx.ODBC.Windows.mxODBC',
***************
*** 167,173 ****

]

! if sys.platform[:3] == 'win':
data_files[len(data_files):] = [

'mx/ODBC/Windows/COPYRIGHT',
--- 167,173 ----

]

! if sys.platform[:3] == 'win' or sys.platform == 'cygwin':
data_files[len(data_files):] = [

'mx/ODBC/Windows/COPYRIGHT',

--
Steve Holden +1 703 861 4237 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/

Jul 19 '05 #2
Steve Holden wrote:
Simon Faulkner wrote:
Hi All,

I am new to Cygwin and am hoping that someone here will be able to
tell me how to get ODBC running in Python on Cygwin.

Maximum gratefullness...
Simon

There's a trick to this which involves recompiling from source. If you
aren't experienced with Unix/Linux this might seem a bit intimidating.

The latest version I worked on is mxODBC 2.0.7. If Egenix have released
something later it may incorporate these changes. Sorry they aren't
"diff -c" format.

I also remember the need in the past to rename some ".cpp" files to
".c", but I believe this has now been done in the distributions.

regards
Steve


Cheers Steve, I will try that next week.... Ta :-)
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jörg Maier | last post by:
Hey guys, i have a big problem using Tkinter and pexpect in cygwin. i try to program an winscp-like rsync Program for all posix Platforms (linux, macosx, cygwin). i got a class SslConnection...
0
by: dw | last post by:
Pehaba, does anyone knows how to install MySQLdb on cygwin? - test device: MySQLdb 0.9.2.0 targz + cygwin 1.5.7-cr-0x9e + python 2.3.3 on cygwin + mysql 4.0.17 win32 - modified setup.py's...
9
by: Mayer | last post by:
Hello: I'm running python under cygwin and need to find the drive letter. Cygwin has a way of calling my drives by a name relative to the Cygwin directory, so I get things like /home/user rather...
4
by: goberle | last post by:
I have installed the Cygwin package under WinXP. I am trying to insure that I have a reasonable development environment, and that things are working properly, by trying to compile and run the...
2
by: 63q2o4i02 | last post by:
Hi, I'm using python 2.4 and windows XP. I have two packages in the windows version of python in site-packages. They are PyVisa and ctypes, and both live in c:\python24\lib\site-packages ...
4
by: reachsamdurai | last post by:
Hello, Can you please let me know the procedure to reach db2 command prompt from a cygwin window (hence without using Start-> Run -> db2cmd method). I'm planning to write shell scripts which...
0
by: dot | last post by:
I spent a few headache filled days trying to use GMP on windows (XP pro) I finally got it to work and since I found little help on the Web I thought someone might find what i did useful. ...
8
by: Ale | last post by:
Hi! I need to compile with "Make" a source written for linux that I need to execute under a Win32 system. I tried to launch Make under cygwin, and it works fine, but it doesn't run under Win32...
5
by: PG | last post by:
I am trying to compile a simple ODBC and C example on Windows XP SP2. I have Cygwin_NT 5.1. This is the code (obtained from...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.