Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 16th, 2009, 10:00 PM
Shooter511 Shooter511 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 31 Shooter511 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 21 m 48 sec
Reputation Power: 2
MySQLdb for Python 2.6

I am trying to install MySQLdb but it says that only versions up to 2.5 are supported, but I have Python 2.6 is there any way around this?

Reply With Quote
  #2  
Old August 17th, 2009, 10:39 AM
crustymonkey's Avatar
crustymonkey crustymonkey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Minneapolis, MN
Posts: 250 crustymonkey User rank is Lance Corporal (50 - 100 Reputation Level)crustymonkey User rank is Lance Corporal (50 - 100 Reputation Level)crustymonkey User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 17 h 6 m 18 sec
Reputation Power: 7
I would say that though it's only supported up to 2.5, you should still be fine with it on 2.6. I've been using mysqldb 1.2.2 with python 2.6 on my ubuntu workstation for a while without any problems.
__________________
badger badger badger badger
badger badger badger badger
MUSHROOM MUSHROOM

Reply With Quote
  #3  
Old August 17th, 2009, 01:16 PM
Shooter511 Shooter511 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 31 Shooter511 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 21 m 48 sec
Reputation Power: 2
I am using Windows Vista. I am bogged down because I can't even start the installation because as soon as it sees that I don't have Python2.6 it stops the installation.

is there anyway I can bypass this?
maybe manually installing it? how?

Reply With Quote
  #4  
Old August 17th, 2009, 01:19 PM
crustymonkey's Avatar
crustymonkey crustymonkey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Minneapolis, MN
Posts: 250 crustymonkey User rank is Lance Corporal (50 - 100 Reputation Level)crustymonkey User rank is Lance Corporal (50 - 100 Reputation Level)crustymonkey User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 17 h 6 m 18 sec
Reputation Power: 7
Does it give you an error of some sort when it fails to install? I admit, I'm just using the Ubuntu package for 1.2.2 here, but I'll try and download the source for the latest and install that.

Reply With Quote
  #5  
Old August 17th, 2009, 01:28 PM
crustymonkey's Avatar
crustymonkey crustymonkey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Minneapolis, MN
Posts: 250 crustymonkey User rank is Lance Corporal (50 - 100 Reputation Level)crustymonkey User rank is Lance Corporal (50 - 100 Reputation Level)crustymonkey User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 17 h 6 m 18 sec
Reputation Power: 7
It looks like there is a specific version of MySQLdb now for Python 2.6: http://downloads.sourceforge.net/pr...-linux-i686.egg

If you've not run into .egg files, you need to use easy_install from the setuptools package. Info on downloading and installing that is located here: http://pypi.python.org/pypi/setuptools. Info on using easy_install is located here: http://peak.telecommunity.com/DevCenter/EasyInstall

OOPS: I just noticed that that is a linux egg...sorry

I also just noticed this from the README file in the source distribution:
Code:
I don't do Windows. However if someone provides me with a package for
Windows, I'll make it available. Don't ask me for help with Windows
because I can't help you.

Generally, though, running setup.py is similar to above::

  C:\...> python setup.py install
  C:\...> python setup.py bdist_wininst

The latter example should build a Windows installer package, if you
have the correct tools. In any event, you *must* have a C compiler.
Additionally, you have to set an environment variable (mysqlroot)
which is the path to your MySQL installation. In theory, it would be
possible to get this information out of the registry, but like I said,
I don't do Windows, but I'll accept a patch that does this.

On Windows, you will definitely have to edit site.cfg since there is
no mysql_config in the MySQL package.

Not sure if you are going to be able to use this through a standard windows install. I'm not a windows user either so I won't be a whole lot of help here after all. You could always try using this through cygwin...

Last edited by crustymonkey : August 17th, 2009 at 01:34 PM.

Reply With Quote
  #6  
Old August 17th, 2009, 02:10 PM
Shooter511 Shooter511 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 31 Shooter511 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 21 m 48 sec
Reputation Power: 2
thanks allot crusty!

Reply With Quote
  #7  
Old August 17th, 2009, 05:13 PM
pedros pedros is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 8 pedros User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 15 m 52 sec
Reputation Power: 0
the version for python 2.6 needs a c++ compiler to run, which is why it works fine on ubuntu.

there is a different module specifically for windows. i think it got working, but trying to get python and mysql to work together made me replace windows with linux

Reply With Quote
  #8  
Old August 17th, 2009, 07:22 PM
Shooter511 Shooter511 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 31 Shooter511 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 21 m 48 sec
Reputation Power: 2
yeah, i found a version just for Windows:

http://www.thescotties.com/mysql-python/test/

Reply With Quote
  #9  
Old August 17th, 2009, 10:12 PM
Oler1s Oler1s is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 2006
Posts: 2,265 Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level)Oler1s User rank is General 11st Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 4 Days 11 h 40 m 53 sec
Reputation Power: 1675
That's pretty much it. There are no official windows binaries for Python 2.6, which is quite sad, given the popularity of MySQL. In any case, that's what you get (the exact link too).
__________________
When you ask a question, be prepared to tell us: what have you tried? If you think you don't need to try anything, we will never be interested in helping you. If you agree with the link, and you refuse to answer that question, you are being a hypocrite.

Need help with broken code? Your question should be like a good bug report: (1) It has the smallest number of steps to reproduce the problem you see (2) It tells us precisely what you expected to see and (3) It tells us what you saw and how it differed from what you expected. We need all three to help you.
Want better answers? Tell us what you Googled for and what steps you took to answer your own question.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > MySQLdb for Python 2.6


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek