473,789 Members | 2,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

python2.5 and mysqldb

Hi all,

At work we're using python2.3 and I'd like to start getting us moved
up to python2.5. We run Centos4 which is the free, open source version
of RedHat Enterprise. I've got python2.5 installed on this machine,
but am stuck trying to get mysqldb installed and running on this
machine. I've tried with easy_install and by building from the tar
file and both return a long list of errors from a gcc compile. I'm not
sure what to do next to resolve this issue, so if anyone could give me
some guidance it would be greatly appreciated.

Thanks in advance,
Doug

Oct 29 '07 #1
3 3004
writeson wrote:
Hi all,

At work we're using python2.3 and I'd like to start getting us moved
up to python2.5. We run Centos4 which is the free, open source version
of RedHat Enterprise. I've got python2.5 installed on this machine,
but am stuck trying to get mysqldb installed and running on this
machine. I've tried with easy_install and by building from the tar
file and both return a long list of errors from a gcc compile. I'm not
sure what to do next to resolve this issue, so if anyone could give me
some guidance it would be greatly appreciated.
Which we would love to do if you cared to post the long list of errors.
Unless the PSU launches one of it's psychic members to work on your
problem - but they are very usually very busy.

Diez
Oct 29 '07 #2
writeson wrote:

.... stuck trying to get mysqldb installed and running on this
machine. I've tried with easy_install and by building from the tar
file and both return a long list of errors from a gcc compile. I'm not
sure what to do next to resolve this issue, so if anyone could give me
some guidance it would be greatly appreciated.
I would stay at Python 2.3... Centos (like redhat) relies heavily on
Python. Sure, you could hack it a bit and install both versions (which
you obviously have), but IMO, it's not worth it. What feature of 2.5 is
required that 2.3 can't do? I'd guess that the mysqldb compile is
somehow being confused by the default 2.3 and the version you've
installed or is conflicting with other versions of itself?

Again, unless there is a compelling reason to upgrade, don't or get a
more flexible OS that easily allows for this sort of thing (like Debian)

Brad
Oct 29 '07 #3
On Oct 29, 2:30 pm, brad <byte8b...@gmai l.comwrote:
or get a
more flexible OS that easily allows for this sort of thing (like Debian)
Second that. Etch came with 2.3 and 2.4, and I added 2.5 and they
never bother each other.

rd
Oct 30 '07 #4

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

Similar topics

1
2010
by: Mike M | last post by:
Python2.3 and MySQLdb don't seem to work together on Windows. If I understand the error message correctly, the problem seems to be that the _mysql binary expects version 2.2 of the Python dll. Does anyone know of a fix for this, or when a Windows version that works with 2.3 will be available? Thanks, Mike -- the Moum's (Mike, Dede, Suzanne, Jeff, Kristen)
2
1774
by: Stephan Diehl | last post by:
Since using Python2.3, MySQLdb doesn't work anymore correctly. Inserting data fails with "IndexError: list index out of range". Since the MySQLdb website states, that it runs up to version 2.2, I definatelly shouldn't complain :-) Is there somebody whose MySQLdb is running with 2.3? MySQLdb 0.9.2 Python 2.3 Linux
1
2585
by: Peter Nikolaidis | last post by:
Greetings, I am attempting to get MySQLdb 0.9.2 installed on Mac OS 10.2 with a Fink distribution of Python 2.2.2. I have seen only a few posts on the subject, some of them relate to "conflicting header files," but I don't know what to do about conflicting header files, or where I would find them, and once I found them, which ones to remove. I have compiled MySQL 4.1 and installed into /usr/local/mysql, but since have moved to a Fink...
1
4145
by: Nathaniel Mallet | last post by:
I'm trying to install MySQLdb on SuSE 8.1, but the setup script complains that it can't find /usr/lib/python2.2/config/makefile. I just looked at the ActiveState distribution on Windows, the default Python install on SuSE 8.1 AND the Python 2.3 source distribution downloadable from Python.org, and none of them have any mention of that makefile. The whole config directory simply doesn't exist. The MySQLdb setup script doesn't refer to...
1
3008
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
950
by: francescomoi | last post by:
Hello. Python 2.3.4 (#1, Feb 2 2005, 12:11:53) on linux2 MySQL-python-1.2.0 I'm trying to execute this script: ---------------------- #!/usr/bin/python import MySQLdb
0
1101
by: thomas Armstrong | last post by:
Hello. Python 2.3.4 (#1, Feb 2 2005, 12:11:53) on linux2 MySQL-python-1.2.0 I'm trying to execute this script: ---------------------- #!/usr/bin/python import MySQLdb
2
1589
by: writeson | last post by:
Hi all, I'm running a CentOS 4 server and have installed Python2.5 on there (it's our development machine) in preparation of moving to Python2.5 everywhere. All looks good with our code and 2.5, except where it comes to MySQLdb, I can't get that to install on the machine. It generates a huge lists of errors and warnings from gcc when I run the python2.5 setup.py build script that comes with the tar file. Anyone have any suggestions?
0
314
by: Steve Holden | last post by:
Vaibhav.bhawsar wrote: imported The point here is that MySQLdb is a package, not a module. Some packages have their top-level __init__.py import the package's sub-modules or sub-packages to make them immediately available within the package namespace (which is why, for example, you can access os.path.* when you have imported os) and others don't. MySQLdb clearly doesn't need to import the cursors module for its own
0
9663
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
9511
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10136
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
9016
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...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6765
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
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4090
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2906
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.