[Serusers] Re: Error when importing MySQLdb

Nicky nicky at caliber.com.sg
Mon Jan 17 14:36:38 CET 2005


Please help....
  ----- Original Message ----- 
  From: Nicky 
  To: serusers at lists.iptel.org ; sems at lists.iptel.org 
  Sent: Thursday, January 13, 2005 7:21 PM
  Subject: Error when importing MySQLdb


  Dear all,

  Please help I am facing this the error below, I am using Python 2.3.4, MySQLdb from MySQL-python-1.0.1 and mysql version 4.1.18. 
  Someone please advice what is the problem I am lost already. Thanks.
  File "/root/answer_machine/plug-in/ivr/scripts/ivr.py", line 6, in ?
  import MySQLdb
  File "/usr/local/lib/python2.3/site-packages/MySQLdb/__init__.py", line 42, in ?
  from MySQLdb.times import Date, Time, Timestamp, \
  File "/usr/local/lib/python2.3/site-packages/MySQLdb/times.py", line 17, in ?
  from stringtimes import *
  File "/usr/local/lib/python2.3/site-packages/MySQLdb/stringtimes.py", line 3, in ?
  from time import strftime, localtime

  ImportError: /usr/local/lib/python2.3/lib-dynload/time.so: undefined symbol: PyExc_IOError
  (31600) ERROR: run (IvrPython.cpp:908): IVR PYTHON Error: Failed to run "/root/answer_machine/plug-in/ivr/scripts/ivr.py"
  (31600) ERROR: stop (AmThread.cpp:86): pthread_detach failed with code 3

  Regards,
  Nicky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050117/4239f233/attachment.htm>


More information about the sr-users mailing list