Skip to content


No such file or directory: "" #11

uKev opened this Issue · 0 comments

1 participant


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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.