openemm.py object is not iterable

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

elmdor
Posts: 1
Joined: Wed Jan 20, 2010 5:05 pm

openemm.py object is not iterable

Post 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
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post 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.
OpenEMM Maintainer
ynchan
Posts: 1
Joined: Mon Jan 25, 2010 10:00 am

Post 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.
Post Reply