The Artima Developer Community
Sponsored Link

Python Answers Forum
Python 2.1 and MySQL connection problem

2 replies on 1 page. Most recent reply: Aug 20, 2005 12:56 PM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Cezar Pokorski

Posts: 1
Nickname: ikari
Registered: Aug, 2005

Python 2.1 and MySQL connection problem Posted: Aug 10, 2005 8:08 AM
Reply to this message Reply
Advertisement
I get this error:

Program received signal SIGSEGV, Segmentation fault.
0x7c901095 in ?? ()

everytime I try to call MySQLdb.connect :(... import MySQLdb works with no problems, it just crashes when it's about to connect. I tried with MySQL 5.0 and then downgraded to 4.1 (which actually worked this way a few disk formats ago) and it didn't help. I have Python 2.1 (and can't change that since the program I want to script for must have this particular version) and there's only one "MySQL for python" package for this version. And it obviously doesn't work.

Can anybody please get me any help? :)


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Python 2.1 and MySQL connection problem Posted: Aug 20, 2005 12:53 PM
Reply to this message Reply
Can you put in clear :
_ Python version (and a good reason to not use the
latest 2.3, if it is th ecase)
_ The MySQL version and some config specific (can it
receive incoming connections from a remote host ?)
_ What is your configuration / topology
_ A code sniplet that fail !

Tx,

\T,

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Python 2.1 and MySQL connection problem Posted: Aug 20, 2005 12:56 PM
Reply to this message Reply
Ho ..............
I forgot the most important :
Can you trace the faulty code to wrap it with :

try:
# Faulty code
except IOError, io :
# Print Exception type / details


Tx,

\T,

Flat View: This topic has 2 replies on 1 page
Topic: Help with Questor.py code Previous Topic   Next Topic Topic: how to determine script directory?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use