473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4137
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
2096
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. I am using egenenix 2.0.4 and MySQLdb 0.9.2. I have also replaced the -shared flag in the Makefile is /usr/local/lib/Python2.1/config with -G (a recommended solaris change to let the build of the modules work in the first place) -> notably I also...
5
5080
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, but is there any way to get the number of rows matched? I want to find out, when rows updated = 0, if there were no updates because the row wasn't found (rows matched will = 0) or because the update would not have changed any data (rows matched =...
1
2998
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 password - how do I get a meaningful error message which I can present to my user?
0
2327
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 using thread library.. NO, library + include
1
2735
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 apple-darwin8.2.0 (powerpc) using readline 4.3 runing the software gives me steve:~/MySQL-python-1.2.0 steve$ python setup.py build
13
6465
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
2152
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
2078
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 import error below. Same error with PythonWin as my IDE and everything works using python 2.4-- with IDLE and without, mySQLdb is loaded with out error. Below is the IDLEscreen capture Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) on win32...
1
1445
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 closed these function raise up an I/O error (obviously). We spent a lot of time to understand for now we redirected stderr on /dev/null, but.. it's a workaround. Someone knows how stop write on stderr (and stdout) on mysqldb?
0
8399
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7337
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.