LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2014, 03:17 AM   #1
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
python with mysql error


Hi,

I am using centos6 x64.

I am getting below error when i run some code.
Code:
[deepali.gupta@SYS-1587 idvxml64]$ python runidv_1t.py
Traceback (most recent call last):
  File "runidv_1t.py", line 20, in <module>
    import libPyMySQLWrapper
ImportError: /home/deepali.gupta/Desktop/DCO_update/idvxml64/boostlib64/boostlib64/libboost_python.so.1.42.0: undefined symbol: Py_InitModule4
[deepali.gupta@SYS-1587 idvxml64]$
Could you suggest any help regarding this.
 
Old 07-11-2014, 04:58 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
so start over again: can you locate the missing lib in your system?
 
Old 07-11-2014, 05:06 AM   #3
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
so start over again: can you locate the missing lib in your system?
Please guide me which lib to find ?
 
Old 07-11-2014, 05:07 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,110

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
libboost_python.so
sorry, that is not missing now, but causes problems. Probably that is not the correct one...
 
Old 07-11-2014, 05:22 AM   #5
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
libboost_python.so
sorry, that is not missing now, but causes problems. Probably that is not the correct one...
Code:
[root@SYS-1587 ~]# locate libboost_python.so
/home/deepali.gupta/Desktop/DCO_update/idvxml64/boostlib/libboost_python.so
/home/deepali.gupta/Desktop/DCO_update/idvxml64/boostlib/libboost_python.so.1.42.0
/home/deepali.gupta/Desktop/DCO_update/idvxml64/boostlib64/boostlib64/libboost_python.so
/home/deepali.gupta/Desktop/DCO_update/idvxml64/boostlib64/boostlib64/libboost_python.so.1.42.0
/home/deepali.gupta/Desktop/DP team/Ankit/DP_Team/idvxml64/boostlib/libboost_python.so
/home/deepali.gupta/Desktop/DP team/Ankit/DP_Team/idvxml64/boostlib/libboost_python.so.1.42.0
/opt/PYTHON/boost_1_42_0/bin.v2/libs/python/build/gcc-4.4.7/release/threading-multi/libboost_python.so.1.42.0
/opt/PYTHON/boost_1_42_0/stage/lib/libboost_python.so
/opt/PYTHON/boost_1_42_0/stage/lib/libboost_python.so.1.42.0
[root@SYS-1587 ~]#
I got this when i ran above command.
please tell me what should be my next step.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error: python-libs conflicts with python LDouglasLJr Linux - Software 2 10-05-2011 03:38 PM
Python 2.6 dependencies error installing python-sqlite2-2.5.5-1.1.i586.rpm jmp007 Linux - Newbie 1 02-11-2011 12:05 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 04:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM


All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration