Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
uKev opened this issue May 30, 2011 · 0 comments
Open

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

uKev opened this issue May 30, 2011 · 0 comments

Comments

@uKev
Copy link

uKev commented May 30, 2011

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant