Bitcoin Forum

Bitcoin => Mining support => Topic started by: m4dhatter on August 07, 2011, 08:58:20 PM



Title: Setting up miner in ubuntu, help with python
Post by: m4dhatter on August 07, 2011, 08:58:20 PM
Im following the guide here to setup pooled mining in ubuntu.
http://sectio-aurea.blogspot.com/2011/05/bitcoin-mining-on-ubuntu-1104-natty.html

Problem is I cant get past step 4, which is installing python jason-rpc library.

when I enter "svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc" I get this in return.
"svn: OPTIONS of 'http://svn.json-rpc.org/trunk/python-jsonrpc': Could not resolve hostname `svn.json-rpc.org': No address associated with hostname (http://svn.json-rpc.org)"

Can somebody please tell me what I am doing wrong. Keep in mind I'm very new with linux.


Title: Re: Setting up miner in ubuntu, help with python
Post by: drgr33n on August 07, 2011, 09:03:22 PM
Can't you just use the ubuntu packages ?

Code:
sudo apt-get install python-jsonrpc2


Title: Re: Setting up miner in ubuntu, help with python
Post by: m4dhatter on August 07, 2011, 09:25:37 PM
I tried that, this is what I get.


Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python-jsonrpc2


Thanks for the quick reply.


Title: Re: Setting up miner in ubuntu, help with python
Post by: m4dhatter on August 07, 2011, 10:03:29 PM
I got that part figured out, and completed the walkthrough. When I try to run poclbm I get this now.


Traceback (most recent call last):
  File "poclbm/poclbm.py", line 3, in <module>
    from BitcoinMiner import *
  File "/home/box1/poclbm/BitcoinMiner.py", line 4, in <module>
    from log import *
ImportError: No module named log


I know I know, I'm terrible with linux still. However, if I can get this miner setup I'll have no reason to use windows any longer, which will allow me to get better with linux. I really hope somebody here can help me get this sorted out.


Title: Re: Setting up miner in ubuntu, help with python
Post by: jondecker76 on August 07, 2011, 10:17:23 PM
If you're 64-bit capable, why not try LinuxCoin on a USB stick?


Title: Re: Setting up miner in ubuntu, help with python
Post by: m4dhatter on August 07, 2011, 10:38:19 PM
I know I could do that, but I'm looking to make a switch from windows to linux. Because of this, id rather find the solution to the problem rather then just use something else. I'm sure this wont be the last problem I run into after all.


Title: Re: Setting up miner in ubuntu, help with python
Post by: drgr33n on August 07, 2011, 10:50:23 PM
I know I could do that, but I'm looking to make a switch from windows to linux. Because of this, id rather find the solution to the problem rather then just use something else. I'm sure this wont be the last problem I run into after all.

python-logging-extra ?


Title: Re: Setting up miner in ubuntu, help with python
Post by: gnoll110 on August 18, 2011, 04:27:57 AM
There is a mirror of python-jsonrpc at...

https://github.com/bmjames/python-jsonrpc

m4dhatter: "I got that part figured out..."
What was the problem, by the way?

I've used the Sectio Aurea post. Got it running. (needs to be run from poclbm directory, not ~, in section 8).
I'm getting "Problems communicating with bitcoin RPC 0 2", figure its firewall or password fun?