Author

Topic: pyminer not running (Read 1329 times)

copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 29, 2015, 06:46:34 AM
#15
May purchase an antminer s5 or s5+ do bitmain deliver to the UK?
newbie
Activity: 41
Merit: 0
August 28, 2015, 04: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.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 28, 2015, 04: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?
newbie
Activity: 41
Merit: 0
August 28, 2015, 04: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...)

copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 28, 2015, 03: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://bitcointalksearch.org/topic/an-even-more-optimized-version-of-cpuminer-poolers-cpuminer-cpu-only-55038 (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
newbie
Activity: 41
Merit: 0
August 28, 2015, 03: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://bitcointalksearch.org/topic/an-even-more-optimized-version-of-cpuminer-poolers-cpuminer-cpu-only-55038 (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)

copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 28, 2015, 06: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?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
August 27, 2015, 04: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.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 27, 2015, 02: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
    import httplib
ImportError: No module named 'httplib'
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 27, 2015, 02: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!
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 27, 2015, 02: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?
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 27, 2015, 02: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.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 27, 2015, 02: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?
newbie
Activity: 41
Merit: 0
August 27, 2015, 01: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)
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 27, 2015, 06: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
Jump to: