Bitcoin Forum
November 11, 2024, 01:08:05 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: pyminer not running  (Read 1323 times)
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 27, 2015, 11:53:18 AM
 #1

When I load pyminer on my laptop and raspberry it returns many errors. Pyminer was a getwork program, coded in python, by one of the founders of bitcoins.
www.github.com/jgarzik/pyminer
deltalima
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
August 27, 2015, 06:31:24 PM
 #2

When I load pyminer on my laptop and raspberry it returns many errors. Pyminer was a getwork program, coded in python, by one of the founders of bitcoins.
www.github.com/jgarzik/pyminer

What are the errors?

Do you have bitcoind running on the host? (as the default config file attempts to connect locally to 127.0.0.1)
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 27, 2015, 07:29:33 PM
 #3

Is bitcoind the program that is installed along with bitcoin core and is that the one that is used for mining?
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 27, 2015, 07:31:00 PM
 #4

When I load pyminer on my laptop and raspberry it returns many errors. Pyminer was a getwork program, coded in python, by one of the founders of bitcoins.
www.github.com/jgarzik/pyminer

What are the errors?

Do you have bitcoind running on the host? (as the default config file attempts to connect locally to 127.0.0.1)

I set the config file to the website of "http://stratum.mining.cz" (shlush's pool) and the port of 3333.
I will try to run the program again, when I find it and copy the errors.
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 27, 2015, 07:40:38 PM
 #5

This is the first error that is detected {

D:\bitcoin\pyminer [master +2 ~0 -0 !]> python pyminer.py config.cfg
  File "pyminer.py", line 31
    MAX_NONCE = 1000000L
                       ^
SyntaxError: invalid syntax }
I ran this in the git shell!
It appears to be a type error
should i put speach marks around the 1000000L?
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 27, 2015, 07:45:57 PM
 #6

This error works fine once adding in the speach marks.
I also realised that I am running 3.4 and the program was coded for 2.7 so am converting it manually now!
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 27, 2015, 07:53:19 PM
 #7

It is now saying:

D:\bitcoin\pyminer [master +2 ~1 -0 !]> python "pyminer.py" "config.cfg"
Traceback (most recent call last):
  File "pyminer.py", line 8, in <module>
    import httplib
ImportError: No module named 'httplib'
-ck
Legendary
*
Offline Offline

Activity: 4284
Merit: 1645


Ruu \o/


View Profile WWW
August 27, 2015, 09:31:19 PM
 #8

Why are you trying to run a getwork mining program? Neither bitcoin-qt/core nor any pool support getwork any more so even if you get the program working you won't be able to get it to connect to anything to mine.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 28, 2015, 11:43:35 AM
 #9

Why are you trying to run a getwork mining program? Neither bitcoin-qt/core nor any pool support getwork any more so even if you get the program working you won't be able to get it to connect to anything to mine.

I thought they did, as one of the programmers and founders of bitcoins created the getwork pyminer. Is there anothe rpyminer I could run that doesn't use getwork?
deltalima
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
August 28, 2015, 08:46:24 PM
 #10

If you just want to see some mining happen on a Pi without investing in hardware then you could download cpuminer

https://bitcointalk.org/index.php?topic=55038.0 (download the source and build your own)

Then run it with something like

minerd -a sha256d -o stratum+tcp://solo.ckpool.org:3333 -u 1BitCoinAddressGoesHere -p x

(use your own bitcoin address)

jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 28, 2015, 08:49:54 PM
 #11

If you just want to see some mining happen on a Pi without investing in hardware then you could download cpuminer

https://bitcointalk.org/index.php?topic=55038.0 (download the source and build your own)

Then run it with something like

minerd -a sha256d -o stratum+tcp://solo.ckpool.org:3333 -u 1BitCoinAddressGoesHere -p x

(use your own bitcoin address)



Don't I have to install additional libraries there or are these in the makefile
Is that the one that is created by Jeff Garzik on github
deltalima
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
August 28, 2015, 09:13:27 PM
 #12

Don't I have to install additional libraries there or are these in the makefile
Is that the one that is created by Jeff Garzik on github

It depends on what libraries you already have and that depends on what image you installed on the SD card.

The build process (./configure; make; make install) will tell you what libraries are required.

I don't know much about cpuminer as CPU mining is dead, it's a quick way of seeing mining in action (don't expect any returns though...)

jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 28, 2015, 09:48:48 PM
 #13

I used a CPU miner on my android phone and got 11 rejected blocks!
I know that android products need gpus or graphical exallerators (multithreaded/multicore) so are there any bitcoin miners for that on android?
deltalima
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
August 28, 2015, 09:59:53 PM
 #14

I used a CPU miner on my android phone and got 11 rejected blocks!
I know that android products need gpus or graphical exallerators (multithreaded/multicore) so are there any bitcoin miners for that on android?

I'm not sure what you are trying to achieve. If you just want to see mining on a Pi then cpuminer will show you as a demonstration, if you want to actually mine you need to invest in some hardware.
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
August 29, 2015, 11:46:34 AM
 #15

May purchase an antminer s5 or s5+ do bitmain deliver to the UK?
Pages: [1]
  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!