Page 1 of 1

openemm.py object is not iterable

Posted: Wed Jan 20, 2010 5:18 pm
by elmdor
-Windows 2003 server
When I try to run setup.bat (c:/openemm)
in comand line that error happens.

Can someone help me pls?

Thanks

The result is:

C:\OpenEMM>setup.bat
Starting up .. home is C:\OpenEMM .. found codebase .. CAUGHT EXCEPTION:
Traceback (most recent call last):
File "C:\OpenEMM\bin\openemm.py", line 177, in <module>
for mskey in sorted ([_r for _r in agn.winregList (bkey) if type (_r) in typ
es.StringTypes]):
TypeError: 'NoneType' object is not iterable

Posted: Thu Jan 21, 2010 10:18 am
by maschoff
We do not use Windows 2003 but recommend to comment this and the next two lines. However, in this case the MySQL tools must be detectable via the default path. Otherwise, OpenEMM can not find MySQL.

Posted: Mon Jan 25, 2010 10:04 am
by ynchan
How did you install MySQL? I encountered this error because I had used the MySQL no-install option.

It that case just comment out the whole section

Code: Select all

#for version in ['5.0', '5.1']:
#	mskey = r'SOFTWARE\MySQL AB\MySQL Server %s' % version
#	mysqlhome = agn.winregFind (mskey, 'Location')
#	if not mysqlhome is None:
#		break
#if mysqlhome is None:
#	bkey = r'SOFTWARE\MySQL AB'
#	for mskey in sorted ([_r for _r in agn.winregList (bkey) if type (_r) in types.StringTypes]):
#		if 'server' in mskey.lower ():
#			mysqlhome = agn.winregFind ('%s\\%s' % (bkey, mskey), 'Location')
and add in this line

Code: Select all

mysqlhome = 'D:\mysql-5.1.42-win32'
Note: just change it to where ever your mysql home directory is.