No such file or directory: "" #11

uKev opened this Issue May 30, 2011 · 0 comments


None yet
1 participant

uKev commented May 30, 2011

I tried to run poclbm but that doesnt work. I got the following error:

File "/var/lib/poclbm/", line 359, in loadKernel
    kernelFile = open('', 'r')
IOError: [Errno 2] No such file or directory: ''

This is because you assume at this point that the CWD is the directory where is. Thats wrong.
In my case I put a startup script for poclbm in my home directory and launch poclbm which is in /var/lib/poclbm/ (installed with the package manager).

So it crashs.
I guess you want to use instead:

import os
open(os.path.join(os.path.dirname(__file__), ''), 'r')

xslidian referenced this issue in xslidian/poclbm Jun 19, 2011

Merge pull request #11 from xslidian/master
Updated Chinese Simp translation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment