SchemaSync
SchemaSync copied to clipboard
Schemasync TypeError
I got the following errors when trying to run schemasync on two databases:
Traceback (most recent call last):
File "/usr/local/bin/schemasync", line 9, in
After I installed the schema sync, I had to run the following command to get rid of an error complaining "Mysqldb" not found.
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
Any clue what the problem is?
Thanks!
Having the same problem, any updates on this?
Yes, a change in MySQLdb 1.2.5 is not compatible with schemasync, use MySQLdb 1.2.4 https://github.com/farcepest/MySQLdb1/commit/87d1145c0d6ee4f5a8ecf6d5c62d2479b9cf27ea
The issue is with schemaobject 0.5.3
Change line 32 of database.py from:
databases = conn.execute(sql, params)
to
databases = conn.execute(sql, (params,))
conn.execute now expects an actual tuple in all cases.
The package 1.2.4 is not available. I installed MySQLdb 1.2.3 using this:
sudo pip install -Iv http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz/download
My schemasync command worked fine after that.