On Thu, 20 Dec 2007 23:15:50 +0800, Steven Yip <[EMAIL PROTECTED]> wrote: > I am a bit new to this. I am trying to run webware and python, Apache > with mysql 5 on windows 2003. > > I am trying to get the mysql to work. > > But when I ran the AllTests.py, I got this error: > > *====================================================================== > ERROR: testBasics (UserKit.Tests.UserManagerTest.UserManagerToMiddleKitTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "UserKit\Tests\UserManagerTest.py", line 230, in setUp > raise OSError, 'Error running: %s' % executeSqlCmd > OSError: Error running: K:/Program Files/MySQL/MySQL Server > 5.0/bin/mysql.exe -- > passwd="webpy" --host="localhost" --port="3307" --user="webpy" < > K:\Downloads\We > bware-0.9.4\Webware-0.9.4\UserKit\Tests\mk_MySQL\GeneratedSQL\Create.sql > ... > * > My all AllTests.config is as below > > * > { # Edit this file to activate more tests > > # Turn on tests that use MySQL? > 'hasMysql': True, > > # If hasMysql is true, then these are used to connect: > 'mysqlTestInfo' : { > > # Where is MySQLdb lib located? > # 'extraSysPath': ['/somewhere/MySQL-python-1.2.2/build/lib'], > 'extraSysPath': ['K:/Python25/Lib/site-packages/MySQLdb'], > > # Where is the MySQL client located (if not on the path)? > # 'mysqlClient': '/usr/local/mysql/bin/mysql', > # 'mysqlClient': 'c:/progra~1/mysql/mysqls~1.0/bin/mysql.exe', > 'mysqlClient': 'K:/Program Files/MySQL/MySQL Server > 5.0/bin/mysql.exe', > ... > > Anything that I missed? >
Yes, you missed the difference between your path and the example in the comments: spaces in the path name. You should be able to wrap an extra set of quotes around it: 'mysqlClient': '"k:/Program Files/MySQL/MySQL Server 5.0/bin/mysql.exe"' but if that doesn't do it, you'll have to use the short paths, as the example does. The number after the tilde can vary, so you should check them, but it probably looks like the example: 'mysqlClient': 'K:/progra~1/mysql/mysqls~1.0/bin/mysql.exe' To check it yourself, in a cmd shell, do this: dir /x k:\prog* and dir /x "k:\Program Files\MySQL\My*" -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss