473,394 Members | 2,048 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,394 software developers and data experts.

MySQLdb & Python 2.4 on Windows

Hello

Yesterday I installed Python 2.4. Since I often work with MySQL, I need
the MySQLdb module, wich worked fine under 2.3. Now, it doesn't work
under 2.4, it says it needs python 2.3 when I try to install the module.
Now I have some (rather nooby) questions:
1. Has anyone tried installing MySQLdb 1.0 under Python 2.4 and has he
succeeded? Please let me know how to do it or where I can find more
information.
2. Is it possible to use Python 2.4 & 2.3 next to each other without
conflicts? This is probably not a real descent solution...
It wouldn't be a problem to downgrade to 2.3, but since 2.4 works fine
too, I don't see why I shouldn't use it, if I don't mind the MySQL
problems of course.

Thanks in advance!

Matthias
Jul 18 '05 #1
7 4120
Matthias Verniers wrote:
2. Is it possible to use Python 2.4 & 2.3 next to each other without conflicts?


yes, assuming "next to each other" means "on the same machine".

but binary extensions are bound to the Python version they were built
for; you cannot use a 2.3 extension with 2.4 on windows.

</F>

Jul 18 '05 #2
Fredrik Lundh schreef:
Matthias Verniers wrote:

2. Is it possible to use Python 2.4 & 2.3 next to each other without conflicts?

yes, assuming "next to each other" means "on the same machine".

but binary extensions are bound to the Python version they were built
for; you cannot use a 2.3 extension with 2.4 on windows.

</F>

Yes, that is what I mean. I think I will switch back to 2.3 for a while,
untill MySQLdb can work with 2.4 or untill I find a way to use it with
2.4. Thanks for your help!

Matthias
Jul 18 '05 #3
Fredrik Lundh wrote:
Matthias Verniers wrote:

2. Is it possible to use Python 2.4 & 2.3 next to each other without conflicts?

yes, assuming "next to each other" means "on the same machine".

but binary extensions are bound to the Python version they were built
for; you cannot use a 2.3 extension with 2.4 on windows.

Using the recently-publicized methods for the using the freely-available
(i.e. costless) Microsoft tool chain I managed to create a Windows
installer for MySQLdb-1.1.4.

If anyone's interested in this I guess I could post it on a web site
and/or let Andy Dustman have a copy.

[pauses to check that the module actually imports and works ...]

Yep, works fine for a small test ;-) so I'm mailing it to Andy next
thing I do.

regards
Steve
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/
Holden Web LLC +1 703 861 4237 +1 800 494 3119
Jul 18 '05 #4
Steve Holden wrote:
Using the recently-publicized methods for the using the freely-available
(i.e. costless) Microsoft tool chain I managed to create a Windows
installer for MySQLdb-1.1.4.


Whoops, make that "... for MySQLdb-1.0.0"

caught-using-the-time-machine-ly y'rs - steve
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/
Holden Web LLC +1 703 861 4237 +1 800 494 3119
Jul 18 '05 #5
Steve Holden schreef:
Fredrik Lundh wrote:
Matthias Verniers wrote:

2. Is it possible to use Python 2.4 & 2.3 next to each other without
conflicts?


yes, assuming "next to each other" means "on the same machine".

but binary extensions are bound to the Python version they were built
for; you cannot use a 2.3 extension with 2.4 on windows.

Using the recently-publicized methods for the using the freely-available
(i.e. costless) Microsoft tool chain I managed to create a Windows
installer for MySQLdb-1.1.4.

If anyone's interested in this I guess I could post it on a web site
and/or let Andy Dustman have a copy.

[pauses to check that the module actually imports and works ...]

Yep, works fine for a small test ;-) so I'm mailing it to Andy next
thing I do.

regards
Steve


Good job! It would be nice if I could have a copy of your installer. I
am one of the interested people ;-)
Regards

Matthias
Jul 18 '05 #6
Matthias Verniers wrote:

[...]

Good job! It would be nice if I could have a copy of your installer. I
am one of the interested people ;-)
Regards

As I reported, I've shipped a copy of the installer to Andy Dustman, so
it will appear on SourceForge in due course. For those who can't wait,
there's a copy at

http://pydish.holdenweb.com/pwp/MySQ...in32-py2.4.exe

Enjoy!

regards
Steve
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/
Holden Web LLC +1 703 861 4237 +1 800 494 3119
Jul 18 '05 #7
Steve Holden schreef:
Matthias Verniers wrote:

[...]

Good job! It would be nice if I could have a copy of your installer. I
am one of the interested people ;-)
Regards

As I reported, I've shipped a copy of the installer to Andy Dustman, so
it will appear on SourceForge in due course. For those who can't wait,
there's a copy at

http://pydish.holdenweb.com/pwp/MySQ...in32-py2.4.exe

Enjoy!

regards
Steve

Thanks a lot! I just installed it and it works fine! Good job!
I think many people will be happy with this :-)

Regards
Matthias
Jul 18 '05 #8

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

Similar topics

0
by: Dave Harrison | last post by:
Hi all, got a problem combinging mx and MySQLdb, when I build and install both for my Python2.1 install on a Solaris 9 box I can import mx fine, but importing MySQLdb causing python to core dump. ...
5
by: Chris Stromberger | last post by:
When issuing updates in mysql (in the console window), mysql will tell you if any rows matched and how many rows were updated (see below). I know how to get number of rows udpated using MySQLdb,...
1
by: Derek Fountain | last post by:
I was trying to use MySQLdb to connect to a database. All is OK, except I can't figure out how to get the details of an error. Suppose I try to connect to a non existant server, or with the wrong...
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...
1
by: Steve | last post by:
Darwin steve.local 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct 3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh powerpc MacOSX 10.4.3 mysql Ver 14.7 Distrib 4.1.14, for...
13
by: Chris Seymour | last post by:
HI All, Does such a beast exist? Have been looking but haven't seen any. Any insight would be appreciated. Thanks. Chris
13
by: Steven Bethard | last post by:
Jean-Paul Calderone <exarkun@divmod.comwrote: Interesting. Could you give a few illustrations of this? (I didn't run into the same problem at all, so I'm curious.) Steve
0
by: Michael Boldin via alt email | last post by:
I installed python 2.5 and used the win package for installing MySQLdb. (Iam running Windows XP) Everything works as expected using python directly (Windows command shell) but using IDLE gives the...
1
by: mastro.francesco | last post by:
developing a daemon (using python 2.4 and mysqldb 1.2.1_p2) we notes that mysqldb class write on stderr some warnings and error asyncronously (uhmmm.... it's good written? ;P ). If stderr is...
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:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.