I found the fix for this problem and l like to share for anyone facing this problem. If you are confronted with this problem, chances are you are installing ellis on Ubuntu 16.04 which has a newer python libraries for mysql. To fit the problem try the following:-
(1) sudo apt-get install libmysqlclient-dev python-mysqldb and restart mysql and ellis (2) if the above do not fix it for you, then download the file libmysqlclient.so.18 from the ubuntu launchpad and install it with apt Before you try the above, ensure that you ellis install config are back to the state it was after you originally installed it. When you have it working, then you can tweak to your hearts content. good tweaking y’all. Regards Andrew > On 17 Jul 2016, at 22:18, Andrew Okri <[email protected]> wrote: > > Hello there, > After running the create_numbers.py script using the python in the > ellis home directory, l got the following error. I am not sure what to make > of it. Hence l am hoping l could get some help for the forum:- > Traceback (most recent call last): > File "./create_numbers.py", line 101, in <module> > standalone(options.start, options.num, options.pstn, options.realm) > File "./create_numbers.py", line 50, in standalone > connection.init_connection() > File > "/usr/share/clearwater/ellis/env/lib/python2.7/site-packages/ellis-0.1-py2.7.egg/metaswitch/ellis/data/connection.py", > line 60, in init_connection > pool_recycle=3600) > File > "/usr/share/clearwater/ellis/env/local/lib/python2.7/site-packages/SQLAlchemy-1.0.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/__init__.py", > line 386, in create_engine > return strategy.create(*args, **kwargs) > File > "/usr/share/clearwater/ellis/env/local/lib/python2.7/site-packages/SQLAlchemy-1.0.9-py2.7-linux-x86_64.egg/sqlalchemy/engine/strategies.py", > line 75, in create > dbapi = dialect_cls.dbapi(**dbapi_args) > File > "/usr/share/clearwater/ellis/env/local/lib/python2.7/site-packages/SQLAlchemy-1.0.9-py2.7-linux-x86_64.egg/sqlalchemy/dialects/mysql/mysqldb.py", > line 92, in dbapi > return __import__('MySQLdb') > File > "/usr/share/clearwater/ellis/env/local/lib/python2.7/site-packages/MySQL_python-1.2.5-py2.7-linux-x86_64.egg/MySQLdb/__init__.py", > line 19, in <module> > import _mysql > ImportError: libmysqlclient.so.18: cannot open shared object file: No such > file or directory > Regards > Andrew > > > > > _______________________________________________ > Clearwater mailing list > [email protected] > http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org _______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org
