Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Pyodbc for Ubuntu Lucid?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jdege@jdege.us  
View profile  
 More options Jan 9 2012, 11:34 am
From: "jd...@jdege.us" <jd...@jdege.us>
Date: Mon, 9 Jan 2012 08:34:19 -0800 (PST)
Local: Mon, Jan 9 2012 11:34 am
Subject: Pyodbc for Ubuntu Lucid?
I have a AMD64 server running Ubuntu 10.04 (Lucid Lynx), on which I
need to run a script that inserts records into a Sql Server database.

I'd been thinking that Python and pyodbc would work.  Which it might,
except that the Ubuntu package python-pyodbc only exists for Maverick
+.

So I tried installing pyodbc-3.0.2-1.x86_64.rpm, using an .rpm->.deb
converter, and it seems to have installed OK, but only in /usr/lib/
python2.7.  And Lucid only includes Python 2.6.

So my choices seem to be:

1. Build Python 2.7 from source, and to an alt-install
2. Build pyodbc from source, targeting Python 2.6
3. Find a binary package that includes Python 2.6 that will install on
a 64-bit Ubuntu 10.04

Before I start messing about with nos. 1 or 2, I thought I'd ask about
no. 3.

Does anyone know of a binary install package that will work on a 64-
but Ubuntu 10.04, that includes a build of pyodbc that targets Python
2.6?

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ma...@ilc.cc  
View profile  
 More options Feb 6 2012, 12:19 pm
From: ma...@ilc.cc
Date: Mon, 6 Feb 2012 09:19:58 -0800 (PST)
Local: Mon, Feb 6 2012 12:19 pm
Subject: Re: Pyodbc for Ubuntu Lucid?

It is true that there is no pyodbc package in Ubuntu.  However, using
python-setuptools we can do an easy_install of pyodbc.  This method will
compile pyodbc from source.

First, you need to apt-get install python-setuptools.  Then, make sure you
have all the dependencies.  You need unixodbc, unixodbc-dev, and
build-essential.  You also may need to get python-dev.  Apt-get all of
these packages and then run sudo easy_install pyodbc.  This is the method
that worked for me, I hope you find this useful!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »