while trying to install the new OpenEmm-Version 5.5.1 on an other (Windows-)computer for development-purposes I encountered two problems after the installation. Both of them I could resolve in the meantime.
1. Necessity to alter "start.bat"
To start the Resin-Server with "start.bat" from the window-explorer works. The Resin-Server starts correctly. Starting the batch file "start.bat" from a command line-window, however, does not work anymore, if only "start" is typed in and enter pressed. It works only when "start.bat" is
entered, since "start" alone opens a new command line-window.
2. Change of Python-script "C:\OpenEMM\bin\scripts\agn.py"
The second problem arises, when on a computer Python 2.6 was installed. If after the installation of Python 2.6 the older version 2.5 is installed (for use with OpenEmm) and then the Version 2.6 deinstalled, a key in the registry is missing, the Python-file "agn.py" is referring to. If Python 2.5 has not been installed into the directory "C:\Python25" the following error arises after starting the "start.bat"-batch file:
Code: Select all
C:\OpenEMM>start.bat
Starting up .. home is C:\OpenEMM .. found codebase .. found database.
CAUGHT EXCEPTION:
Traceback (most recent call last):
File "C:\OpenEMM\bin\openemm.py", line 421, in <module>
p_upd= pystart (schome + os.path.sep + 'update.py account bounce')
File "C:\OpenEMM\bin\openemm.py", line 385, in pystart
return os.spawnv (os.P_NOWAIT, args[0], args)
OSError: [Errno 2] No such file or directory
Code: Select all
pythonbin = winregFind (r'SOFTWARE\Classes\Python.File\shell\open\command', None)
# Necessary change in case Python 2.6 was installed prior to the installation of Python 2.5 which is necessary for OpenEmm
# and when Python 2.6 is then deinstalled after the installation of Python 2.5. In this case the registry-command
# "SOFTWARE\Classes\Python.File\shell\open\command" does not exist.
if pythonbin is None:
pythonbin = winregFind (r'SOFTWARE\Classes\Applications\python.exe\shell\open\command', None)
# or alternatively:
# pythonbin = winregFind (r'SOFTWARE\Classes\py_auto_file\shell\open\command', None)
if pythonbin is None:
pythonbin = r'C:\Python25\python.exe'
else:
pythonbin = pythonbin.split ()[0]
if len (pythonbin) > 1 and pythonbin[0] == '"' and pythonbin[-1] == '"':
pythonbin = pythonbin[1:-1]
pythonpath = os.path.dirname (pythonbin)
Stefan