7 May 2012 12:25
imdbpy2slq
Hi,
trying to run script imdbpy2sql, I got these issues (see below).
Mysqldb has been installed from site MySQL-python-1.2.3
and built like written in its readme file:
$ python setup.py build$ sudo python setup.py install # or su first
Issues I have (running python 2.7 preinstalled on Macbook pro)
thank you for helping me! I am total new in python, scripting and unix
Traceback (most recent call last):
File "/usr/local/bin/imdbpy2sql.py", line 5, in <module>
pkg_resources.run_script('IMDbPY==4.8.2', 'imdbpy2sql.py')
File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 489, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1207, in run_script
execfile(script_filename, namespace, namespace)
File "/Library/Python/2.7/site-packages/IMDbPY-4.8.2-py2.7-macosx-10.7-intel.egg/EGG-INFO/scripts/imdbpy2sql.py", line 501, in <module>
conn = setConnection(URI, DB_TABLES)
File "/Library/Python/2.7/site-packages/IMDbPY-4.8.2-py2.7-macosx-10.7-intel.egg/imdb/parser/sql/objectadapter.py", line 185, in setConnection
conn = connectionForURI(uri, **kw)
File "/Library/Python/2.7/site-packages/SQLObject-1.3.0-py2.7.egg/sqlobject/dbconnection.py", line 1008, in connectionForURI
conn = connCls.connectionFromURI(uri)
File "/Library/Python/2.7/site-packages/SQLObject-1.3.0-py2.7.egg/sqlobject/dbconnection.py", line 138, in connectionFromURI
return cls._connectionFromParams(*cls._parseURI(uri))
File "/Library/Python/2.7/site-packages/SQLObject-1.3.0-py2.7.egg/sqlobject/mysql/mysqlconnection.py", line 56, in _connectionFromParams
host=host or 'localhost', port=port or 0, **args)
File "/Library/Python/2.7/site-packages/SQLObject-1.3.0-py2.7.egg/sqlobject/mysql/mysqlconnection.py", line 20, in __init__
import MySQLdb, MySQLdb.constants.CR, MySQLdb.constants.ER
File "build/bdist.macosx-10.7-intel/egg/MySQLdb/__init__.py", line 19, in <module>
File "build/bdist.macosx-10.7-intel/egg/_mysql.py", line 7, in <module>
File "build/bdist.macosx-10.7-intel/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dlopen(/Users/gg4u/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Users/gg4u/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so
Reason: image not found
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Imdbpy-help mailing list Imdbpy-help@... https://lists.sourceforge.net/lists/listinfo/imdbpy-help
RSS Feed