Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

No such file or directory: "BitcoinMiner.cl" #11

Open
uKev opened this Issue · 0 comments

1 participant

@uKev

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

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

This is because you assume at this point that the CWD is the directory where BitcoinMiner.cl 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__), 'BitcoinMiner.cl'), '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.