Hello, I've got some problems with the python-mysql package. The package provides two modules MySQLdb and _mysql. MySQLdb is a wrapper around _mysql. _mysql itself mostly implements the MySQL C API.
My setup is a TP-Link TL-WR1043nd. I've build OpenWrt Backfire 10.03 (svn revision 24557) Here is a log from the failed import: > r...@openwrt:~# python > Python 2.6.4 (r264:75706, Dec 14 2010, 00:16:25) > [GCC 4.3.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import MySQLdb > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.6/site-packages/MySQLdb/__init__.py", line > 19, in <module> > import _mysql > ImportError: File not found > >>> import _mysql > Segmentation fault > r...@openwrt:~# The named problem is "_mysql: File not found", but it is at the right place. > r...@openwrt:/usr/lib/python2.6/site-packages# ls -alh > drwxr-xr-x 2 root root 0 Dec 13 23:15 MySQLdb > -rwxr-xr-x 1 root root 46.2K Dec 13 23:35 _mysql.so > -rw-r--r-- 1 root root 2.3K Jun 17 07:21 > _mysql_exceptions.py This time I included the python-mysql package in the firmware. I also got this problem, if i only take python in the firmware and install the python-mysql later via "opkg install python-mysql". The Makefile of python-mysql package points to the the sources of MySQL-Python-1.2.2. I tried to compile the package from the current release MySQL-Python-1.2.3, but the error was the same. Can anyone confirm the problem or give me a hint to solve it? Thanks a lot and kind regards, Stefan _______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-users
