BCPy2000 issue with Windows 7
Posted: 15 Oct 2010, 00:29
Hi
I encountered issues on Windows 7. I think I managed to solve them, so here are some advices. I am referring to mixing C++ modules and Python modules, not the standalone BCPy2000 distribution (I haven't tried it).
II installed all python packages using the ZIP file with all the installers: http://bci2000.org/downloads/BCPy2000/d ... 100708.zip
1) I suggest to install manually all python installers, instead of using the script INSTALL_ALL.bat. Install them using the compatibility option.
I built BCI2000 from source (v3.0) with Visual C++ Express. From the bci2000/src/contrib/BCPy2000 folder, run Merge.bat which install Python*.exe in the bci2000/prog folder.
2) Go to bci2000/prog. Start Operator.exe. Then for each of the Python*.exe, right click it and choose troubleshoot compatibility, follow the wizard and save the settings.
If you don't do that, you'll get the following error:
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\BCPy2000\EmbeddedPythonConsole.py", line 4
4, in <module>
win32 = (platform.system().lower() == 'windows')
File "C:\Python25\lib\platform.py", line 1058, in system
return uname()[0]
File "C:\Python25\lib\platform.py", line 977, in uname
system,release,version = _syscmd_ver(system)
File "C:\Python25\lib\platform.py", line 401, in _syscmd_ver
pipe = popen(cmd)
File "C:\Python25\lib\platform.py", line 356, in popen
return popen(cmd,mode)
pywintypes.error: (2, 'CreateProcess', 'The system cannot find the file specified.')
It is then possible to use BCPy2000 modules properly.
Brice
I encountered issues on Windows 7. I think I managed to solve them, so here are some advices. I am referring to mixing C++ modules and Python modules, not the standalone BCPy2000 distribution (I haven't tried it).
II installed all python packages using the ZIP file with all the installers: http://bci2000.org/downloads/BCPy2000/d ... 100708.zip
1) I suggest to install manually all python installers, instead of using the script INSTALL_ALL.bat. Install them using the compatibility option.
I built BCI2000 from source (v3.0) with Visual C++ Express. From the bci2000/src/contrib/BCPy2000 folder, run Merge.bat which install Python*.exe in the bci2000/prog folder.
2) Go to bci2000/prog. Start Operator.exe. Then for each of the Python*.exe, right click it and choose troubleshoot compatibility, follow the wizard and save the settings.
If you don't do that, you'll get the following error:
Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\BCPy2000\EmbeddedPythonConsole.py", line 4
4, in <module>
win32 = (platform.system().lower() == 'windows')
File "C:\Python25\lib\platform.py", line 1058, in system
return uname()[0]
File "C:\Python25\lib\platform.py", line 977, in uname
system,release,version = _syscmd_ver(system)
File "C:\Python25\lib\platform.py", line 401, in _syscmd_ver
pipe = popen(cmd)
File "C:\Python25\lib\platform.py", line 356, in popen
return popen(cmd,mode)
pywintypes.error: (2, 'CreateProcess', 'The system cannot find the file specified.')
It is then possible to use BCPy2000 modules properly.
Brice