OSError: [Errno 22] Invalid argument in start.bat
Posted: Tue Jan 20, 2009 10:20 pm
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:
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:
Example change from:
to:
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.
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
Code: Select all
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\open\command
Code: Select all
"C:\Program Files\Python25\python.exe" "%1" %*
Code: Select all
"C:\Progra~1\Python25\python.exe" "%1" %*