Bitcoin Forum
December 29, 2025, 03:39:28 AM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 [24] 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 »
  Print  
Author Topic: python OpenCL bitcoin miner  (Read 1239736 times)
Tolsi
Full Member
***
Offline Offline

Activity: 170
Merit: 100



View Profile WWW
February 15, 2011, 07:16:09 PM
 #461

Using the new version in Debian Squeeze, I get this error when the pool doesn't respond:
Unexpected error:
Traceback (most recent call last):
  File "/home/sensored/svn/BitcoinMiner.py", line 210, in mine
    work = self.getwork()
  File "/home/sensored/svn/BitcoinMiner.py", line 187, in getwork
    response = self.connection.getresponse()
  File "/usr/lib/python2.6/httplib.py", line 990, in getresponse
    response.begin()
  File "/usr/lib/python2.6/httplib.py", line 391, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.6/httplib.py", line 355, in _read_status
    raise BadStatusLine(line)
BadStatusLine

It does continue running, though.

+1
Code:
15/02/2011 22:13:23, 3249b4d/, accepted
15/02/2011 22:13:34, Unexpected error:
Traceback (most recent call last):
  File "BitcoinMiner.pyc", line 210, in mine
  File "BitcoinMiner.pyc", line 187, in getwork
  File "httplib.pyc", line 974, in getresponse
  File "httplib.pyc", line 391, in begin
  File "httplib.pyc", line 355, in _read_status
BadStatusLine
15/02/2011 22:13:34, bedda33/, accepted
win7 x64 , ati hd6870

Like what am I doing? 1FzSgYpLG4fpy2Q9fKXQsuLxHN81m4P3dR
realstudent
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
February 15, 2011, 07:40:48 PM
 #462

Traceback (most recent call last):
  File "BitcoinMiner.pyc", line 210, in mine
  File "BitcoinMiner.pyc", line 187, in getwork
  File "httplib.pyc", line 974, in getresponse
  File "httplib.pyc", line 391, in begin
  File "httplib.pyc", line 355, in _read_status
BadStatusLine
Traceback (most recent call last):
  File "BitcoinMiner.pyc", line 210, in mine
  File "BitcoinMiner.pyc", line 187, in getwork
  File "httplib.pyc", line 974, in getresponse
  File "httplib.pyc", line 391, in begin
  File "httplib.pyc", line 355, in _read_status
BadStatusLine

Win7 x64 ATI 4870
xenon481
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile
February 15, 2011, 08:28:40 PM
 #463

In Windows 7 x64, I got those same errors right after unzipping directly over the old stuff and then double clicking my batch file. I then went to the command shell and ran it from there and everything was fine. I closed it, went back and ran the batch file again, and everything was fine.

Don't know why it started working on its own.

Tips Appreciated: 171TQ2wJg7bxj2q68VNibU75YZB22b7ZDr
realstudent
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
February 15, 2011, 09:03:06 PM
 #464

Maybe this issue touch server side?

Today i run "poclbm_py2exe_20110204" and also see this error message.
Ok, i check update for miner - found "poclbm_py2exe_20110215".
Next i download and depack to self dir. Error continue appear .... so i wrote to forum (maybe its being helpful).
dadittox
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
February 15, 2011, 09:52:55 PM
 #465

Would it be possible to add a log option and flush the output to log on every line? Redirecting output to a file in windows is buffered and it's very tricky to flush the output. It would be great to see the latest log entries without waiting for output buffer to fill up.
Grinder
Legendary
*
Offline Offline

Activity: 1284
Merit: 1001


View Profile
February 15, 2011, 10:24:56 PM
 #466

dadittox: Run the script with python -u poclbm.py

edit: guess that won't work with the exe file. Try running it from a .bat file and add
set PYTHONUNBUFFERED=1
before running the program.
DarkMatter
Member
**
Offline Offline

Activity: 67
Merit: 10


Stop trying to steal my account, thanks.


View Profile
February 15, 2011, 10:56:52 PM
 #467

+1

Code:
15/02/2011 23:50:08, *******, accepted
15/02/2011 23:50:37, *******, accepted
15/02/2011 23:51:50, *******, accepted
15/02/2011 23:52:00, Unexpected error:
Traceback (most recent call last):
  File "BitcoinMiner.pyc", line 210, in mine
  File "BitcoinMiner.pyc", line 187, in getwork
  File "httplib.pyc", line 974, in getresponse
  File "httplib.pyc", line 391, in begin
  File "httplib.pyc", line 355, in _read_status
BadStatusLine
15/02/2011 23:53:14, Unexpected error:
Traceback (most recent call last):
  File "BitcoinMiner.pyc", line 210, in mine
  File "BitcoinMiner.pyc", line 187, in getwork
  File "httplib.pyc", line 974, in getresponse
  File "httplib.pyc", line 391, in begin
  File "httplib.pyc", line 355, in _read_status
BadStatusLine
15/02/2011 23:53:51, 42f6906e, accepted
23949 khash/s

Reverted back to 20110204, everything fine.
Manto
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
February 15, 2011, 11:26:20 PM
 #468

Just tested running the latest version (poclbm_py2exe_20110215) on a laptop with Windows 7 and NVIDIA Quadro NVS 135.  Installed the latest driver, and poclbm runs - however it's churning at mere 1khash (I get about 2khash with rpcminer-cpu with 2 threads).  Not sure if it's an issue with Quadro card or the driver - but I thought I'd report here and let everyone know my findings.
schnak
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
February 16, 2011, 04:50:48 AM
 #469

Ok I've updated drivers, checked for latest versions, etc. but I'm still getting this error when I try to run the batch file.

C:\Windows\system32>"D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe" --user=youruser --pass=yourpw --device=0
Traceback (most recent call last):
  File "poclbm.py", line 41, in <module>
  File "BitcoinMiner.pyc", line 138, in __init__
IOError: [Errno 2] No such file or directory: 'BitcoinMiner.cl'

the file is there i can see it but the script doesn't. any ideas on how to get this up and running?
Tolsi
Full Member
***
Offline Offline

Activity: 170
Merit: 100



View Profile WWW
February 16, 2011, 06:20:32 AM
 #470

Ok I've updated drivers, checked for latest versions, etc. but I'm still getting this error when I try to run the batch file.

C:\Windows\system32>"D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe" --user=youruser --pass=yourpw --device=0
Traceback (most recent call last):
  File "poclbm.py", line 41, in <module>
  File "BitcoinMiner.pyc", line 138, in __init__
IOError: [Errno 2] No such file or directory: 'BitcoinMiner.cl'

the file is there i can see it but the script doesn't. any ideas on how to get this up and running?
use it in bat file:
cd "D:\bitcoin\poclbm_py2exe_20110215"
d:
poclbm.exe --user=youruser --pass=yourpw --device=0

Like what am I doing? 1FzSgYpLG4fpy2Q9fKXQsuLxHN81m4P3dR
DarkMatter
Member
**
Offline Offline

Activity: 67
Merit: 10


Stop trying to steal my account, thanks.


View Profile
February 16, 2011, 08:50:47 AM
 #471

Ok I've updated drivers, checked for latest versions, etc. but I'm still getting this error when I try to run the batch file.

C:\Windows\system32>"D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe" --user=youruser --pass=yourpw --device=0
Traceback (most recent call last):
  File "poclbm.py", line 41, in <module>
  File "BitcoinMiner.pyc", line 138, in __init__
IOError: [Errno 2] No such file or directory: 'BitcoinMiner.cl'

the file is there i can see it but the script doesn't. any ideas on how to get this up and running?

Before issuing the poclbm_***.exe, switch to the right directory.
Code:
cd \
d:
cd bitcoin
cd poclbm_*****

Issue the command from here.
Grinder
Legendary
*
Offline Offline

Activity: 1284
Merit: 1001


View Profile
February 16, 2011, 10:39:33 AM
 #472

Ok I've updated drivers, checked for latest versions, etc. but I'm still getting this error when I try to run the batch file.
C:\Windows\system32>"D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe" --user=youruser --pass=yourpw --device=0
You don't really need a batch file to run it from Windows. Just make a shortcut on the desktop and using your example add
D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe --user=youruser --pass=yourpw --device=0
to target and
D:\bitcoin\poclbm_py2exe_20110215\
to Start in.

Then you can just double click it to start.
[Tycho]
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



View Profile WWW
February 16, 2011, 11:36:17 AM
 #473

Do you know what's changed since poclbm_py2exe_20101126 so the new version doesn't works correctly anymore on slave core of 5970 in Windows ?
Current version works fine on primary core, but after finding first "accepted" share on slave core it starts flooding console with that "check hardware" error. Older, poclbm_py2exe_20101126 version works on both cores...
Yes, I'm aware of this problem. Unfortunately I'm still unable to resolve it. Any help from someone with 5970 on windows will be appreciated. The problem does not exist on Linux, but I can't figure out why it appeared on Windows only after the 20101126 release.[/quote]
What kind of help do you need ?

Welcome to my bitcoin mining pool: https://deepbit.net - Both payment schemes (including PPS), instant payout, no invalid blocks !
ICBIT Trading platform : USD/BTC futures trading, Bitcoin difficulty futures (NEW!). Third year in bitcoin business.
realstudent
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
February 16, 2011, 12:54:57 PM
 #474

In last 8 hours problem described above ("Unexpected error:") not appear.
I stay used "poclbm_py2exe_20110215".
N12
Donator
Legendary
*
Offline Offline

Activity: 1610
Merit: 1011



View Profile
February 16, 2011, 01:40:58 PM
 #475

Awesome. I get up to 350 Mhash/s with my 5870 (overclocked to 915/1275MHz) now with the recommended settings.

I think my computer’s a bit less laggy after the update, but that could just be a placebo.
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
February 16, 2011, 01:56:51 PM
 #476

The 'Unexpected error:' doesn't affect mining at all. I just missed to handle HTTP exceptions. Will add it in next version.

@[Tycho]: For example trying to figure out why 20101126 works but later ones don't. I just don't have 5970 to test on Windows right now.

realstudent
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
February 16, 2011, 03:22:38 PM
 #477

Ok, thanks.
realstudent
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
February 16, 2011, 04:52:22 PM
 #478

May you introduce one feature?

When in cmd specified:
-r 0 - miner never calculated Khash/s rate and never flush it to console.

I think current option: -r 99999999999999999 - rare display info at screen, but rate in any cases calculated.

Thanks.
Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


Every saint has a past. Every sinner has a future.


View Profile
February 16, 2011, 11:06:47 PM
 #479

I think this was mentioned before, but couldn't find it on the forum:

Would it be hard to get the miner to send an email message everytime the block was accepted?
jgarzik
Legendary
*
Offline Offline

Activity: 1596
Merit: 1152


View Profile
February 16, 2011, 11:10:16 PM
 #480

Would it be hard to get the miner to send an email message everytime the block was accepted?

The easiest would be to specify a program to be executed, when a block/share is accepted.

Then you can write a script / batch file to send an email, play a sound, send an SMS, whatever.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 [24] 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!