On 2/23/2011 1:30 AM, guo guo wrote:
Hi Hello everybody, I am a newcomer .

I run a example from http://documen.tician.de/pycuda/, but I got  the
flowing Error information.

pythonw -u "test1.py"

Traceback (most recent call last):
   File "test1.py", line 12, in <module>
""")
   File "C:\Python26\lib\site-packages\pycuda\compiler.py", line 235, in
__init__
arch, code, cache_dir, include_dirs)
   File "C:\Python26\lib\site-packages\pycuda\compiler.py", line 201, in
compile
"pycuda-compiler-cache-v1-%s" % _get_per_user_string())
   File "C:\Python26\lib\site-packages\pycuda\compiler.py", line 139, in
_get_per_user_string
checksum.update(environ["HOME"])
   File "C:\Python26\lib\os.py", line 423, in __getitem__
return self.data[key.upper()]
KeyError: 'HOME'




How to solve it, help me

I use WindowsXP , Python2.6.6



It seems you don't have the HOME environment variable set. Try to run

SET HOME=%HOMEDRIVE%%HOMEPATH%

before running the example.

--
Christoph

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to