Difference between revisions of "Programming"
From ACL@NCU
(→Python) |
|||
| Line 15: | Line 15: | ||
self._handle = _dlopen(self._name, mode) | self._handle = _dlopen(self._name, mode) | ||
WindowsError: [Error 998] Invalid access to memory location | WindowsError: [Error 998] Invalid access to memory location | ||
</pre> | |||
*Problem in installing packages | |||
** "error: Unable to find vcvarsall.bat" when running | |||
<pre> | |||
pip install cffi | |||
</pre> | |||
But vcvarsall.bat exists on the system. This is because python 2.7 does not support MS Visual Studio ver > 8.0. | |||
To fix it: | |||
modifing the Lib\distutils\msvc9compiler.py can make it support vs 10.0 | |||
change 304 line | |||
<pre> | |||
VERSION = get_build_version() | |||
</pre> | |||
to | |||
<pre> | |||
VERSION = 10.0 | |||
</pre> | |||
and add, | |||
<pre> | |||
ld_args.append('/MANIFESTFILE:' + temp_manifest) | |||
ld_args.append('/manifest') | |||
</pre> | </pre> | ||
Revision as of 08:31, 11 September 2013
Python
- PsychoPy
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\UserHomes\PsychoPy2\lib\
site-packages\psychopy-1.74.01-py2.6.egg\psychopy\sound.py", line 48, in <module>
import pyglet
File "C:\UserHomes\PsychoPy2\lib\site-packages\pyglet\__init__.py", line 70, in <module>
lib = ctypes.cdll.LoadLibrary('avbin')
File "C:\UserHomes\PsychoPy2\lib\ctypes\__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "C:\UserHomes\PsychoPy2\lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 998] Invalid access to memory location
- Problem in installing packages
- "error: Unable to find vcvarsall.bat" when running
pip install cffi
But vcvarsall.bat exists on the system. This is because python 2.7 does not support MS Visual Studio ver > 8.0. To fix it: modifing the Lib\distutils\msvc9compiler.py can make it support vs 10.0 change 304 line
VERSION = get_build_version()
to
VERSION = 10.0
and add,
ld_args.append('/MANIFESTFILE:' + temp_manifest)
ld_args.append('/manifest')
