OSError: [Errno 22] Invalid argument in start.bat

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

Moderator: moderator

mkalen
Posts: 33
Joined: Tue Jan 20, 2009 7:51 pm

OSError: [Errno 22] Invalid argument in start.bat

Post by mkalen »

For those with Python-installations where the Python program path contains a space, the following exception will occur when running OpenEMM start.bat after configuration:

Code: Select all

Starting up .. home is C:\OpenEMM .. found codebase .. found database.
CAUGHT EXCEPTION:
Traceback (most recent call last):
  File "bin\openemm.py", line 421, in <module>
    p_upd = pystart (schome + os.path.sep + 'update.py account bounce')
  File "bin\openemm.py", line 385, in pystart
    return os.spawnv (os.P_NOWAIT, args[0], args)
OSError: [Errno 22] Invalid argument
To resolve the problem, change the following registry key to Windows DOS-style 8.3 pathnames which can be found using "dir /x" in a command window:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command
Example change from:

Code: Select all

"C:\Program Files\Python25\python.exe" "%1" %*
to:

Code: Select all

"C:\Progra~1\Python25\python.exe" "%1" %*
These types of problems are common with Python and Java and this is probably not OpenEMM specific, but I thought it might help those that like me want to keep the Python installation together with other program files and still get OpenEMM up and running.