Luke-Jr (OP)
Legendary
Offline
Activity: 2576
Merit: 1186
|
|
August 10, 2013, 02:07:42 AM |
|
Traceback (most recent call last): File "./eloipool.py", line 77, in <module> bcnode = BitcoinNode(config.UpstreamNetworkId) File "/home/eloipool/bitcoin/node.py", line 146, in __init__ super().__init__(*a, **ka) TypeError: super() takes at least 1 argument (0 given)
Any idea why it would be throwing that? It's a new clone, config is setup properly.. if you need any other info please let me know and i'll post what I can Usually this means an ancient Python version. You need at least version 3.1 (released over 4 years ago).
|
|
|
|
BTCMiners.net
|
|
August 10, 2013, 01:00:37 PM |
|
Traceback (most recent call last): File "./eloipool.py", line 77, in <module> bcnode = BitcoinNode(config.UpstreamNetworkId) File "/home/eloipool/bitcoin/node.py", line 146, in __init__ super().__init__(*a, **ka) TypeError: super() takes at least 1 argument (0 given)
Any idea why it would be throwing that? It's a new clone, config is setup properly.. if you need any other info please let me know and i'll post what I can Usually this means an ancient Python version. You need at least version 3.1 (released over 4 years ago). You're right I simply didn't run python3 when I ran the command, but this is what I resulted with: Traceback (most recent call last): File "eloipool.py", line 81, in <module> import jsonrpc ImportError: No module named jsonrpc
So, I found https://bitcointalk.org/index.php?topic=113730.0But nothing in there has helped me out. Blockchain is up to date and current. Symlink is done but I'm not even able to run the setup.py in the python-bitcoinrpc directory.
|
|
|
|
icreator
Legendary
Offline
Activity: 1554
Merit: 1008
|
|
August 25, 2013, 08:31:25 AM Last edit: August 25, 2013, 08:47:59 AM by icreator |
|
I have Ubuntu 13.04 and Python3.3 run: python3.3 eloipool.py got errors: Traceback (most recent call last): File "eloipool.py", line 948, in <module> MM.start() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 697, in start self._prepare() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 100, in _prepare URI2Name.setdefault(a['uri'], a['name']) TypeError: string indices must be integers
|
Erachain Blockchain is fully ready for use Digital Ecosystem based on blockchain technology for business and government with low transaction costs, identification and built-in functions. +Decentralized exchange of tokens in Erachain
|
|
|
icreator
Legendary
Offline
Activity: 1554
Merit: 1008
|
|
August 25, 2013, 06:35:10 PM |
|
I have python3.3.2 git clone https://github.com/jgarzik/python-bitcoinrpc.gitpython3 setup.py build sudo python3 setup.py install then run probe.py from jsonrpc.proxy import ServiceProxy, JSONRPCException
aa = ServiceProxy("http://rpcuser:yighyeg8OnI@127.0.0.1:8332") print (aa.getinfo()) errors: ile "probe.py", line 17, in <module> aa.getinfo() File "/home/icreator/pools/eloipool-3/bitcoinrpc/authproxy.py", line 118, in __call__ response = self._get_response() File "/home/icreator/pools/eloipool-3/bitcoinrpc/authproxy.py", line 156, in _get_response parse_float=decimal.Decimal) File "/usr/lib/python3.3/json/__init__.py", line 332, in loads return cls(**kw).decode(s) File "/usr/lib/python3.3/json/decoder.py", line 353, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.3/json/decoder.py", line 371, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded but if I run: python2.7 probe.py - all work! ??
|
Erachain Blockchain is fully ready for use Digital Ecosystem based on blockchain technology for business and government with low transaction costs, identification and built-in functions. +Decentralized exchange of tokens in Erachain
|
|
|
icreator
Legendary
Offline
Activity: 1554
Merit: 1008
|
|
August 28, 2013, 11:35:59 AM |
|
found error in script authproxy.py authpair = "%s:%s" % (self.__url.username, self.__url.password) authpair = authpair.encode('utf8') # <icreator authpair = base64.b64encode(authpair) # here return as bytes authpair = str(authpair, encoding='utf-8') # convert bytes to str # > self.__auth_header = "Basic " + authpair and I load directly authproxy: '''import jsonrpc try: import jsonrpc.authproxy jsonrpc.authproxy.USER_AGENT = 'Eloipool/0.1' except: from jsonrpclib import jsonrpc pass ''' from authproxy import AuthServiceProxy as ServiceProxy, JSONRPCException
and copy client.py from /usr/lib/python3.3/http into my folder with eloipool BUT! when call getblocktemplate from merklemaker.pyfor TC in TCList: caccess = TC['access'] # =ServiceProxy(uri) try: propose = caccess.getblocktemplate(ProposeReq) rise error in responce: 2013-08-28 15:11:39,777 makeCoinbaseTxn_responce ERROR {'error': {'message': 'Invalid mode', 'code': -8}, 'result': None, 'id': 1} 2013-08-28 15:11:39,780 merkleMaker CRITICAL Traceback (most recent call last): File "/home/icreator/pools/eloipool-3/merklemaker.py", line 732, in run self.merkleMaker_I() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 722, in merkleMaker_I self.merkleMaker_II() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 700, in merkleMaker_II return self._updateMerkleTree() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 588, in _updateMerkleTree self._updateMerkleTree_I() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 552, in _updateMerkleTree_I r = self._updateMerkleTree_fromTS(TS) File "/home/icreator/pools/eloipool-3/merklemaker.py", line 523, in _updateMerkleTree_fromTS (AcceptedScore, TotalScore) = self._CheckTemplate(newMerkleTree, TS) File "/home/icreator/pools/eloipool-3/merklemaker.py", line 456, in _CheckTemplate propose = caccess.getblocktemplate(ProposeReq) File "/home/icreator/pools/eloipool-3/authproxy.py", line 135, in __call__ raise JSONRPCException(response['error']) authproxy.JSONRPCException
"mode" set here: ProposeReq = { "mode": "proposal", "data": b2a_hex(data).decode('utf8'), }
BUT if I do: ProposeReq = { "data": b2a_hex(data).decode('utf8'), }
new error: 2013-08-28 15:35:29,709 merkleMaker ERROR Upstream 'primary' rejected proposed block from 'primary': 0000000000000007d8be81c938a2519ba3b2eb8fe1720ad82210d4f82716a6f7 2013-08-28 15:35:29,710 merkleMaker CRITICAL Traceback (most recent call last): File "/home/icreator/pools/eloipool-3/merklemaker.py", line 732, in run self.merkleMaker_I() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 722, in merkleMaker_I self.merkleMaker_II() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 688, in merkleMaker_II return self._updateMerkleTree() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 588, in _updateMerkleTree self._updateMerkleTree_I() File "/home/icreator/pools/eloipool-3/merklemaker.py", line 574, in _updateMerkleTree_I raise RuntimeError('Failed to create usable template') RuntimeError: Failed to create usable template
and how use jsonrpc_getblocktemplate.py ?? here may be right code?
|
Erachain Blockchain is fully ready for use Digital Ecosystem based on blockchain technology for business and government with low transaction costs, identification and built-in functions. +Decentralized exchange of tokens in Erachain
|
|
|
goozman96
|
|
September 05, 2013, 07:59:52 PM |
|
Hey, I'm considering switching from BTC Guild to eligius. Can you answer some questions for me? 1. Why doesn't your site support https 2. Why does Web Of Trust show a yellow rating for your site. See: Thanks
|
BTC: 19DKtsdGfQyFzNiEze9KuFQrWGiLDvg6F1 | LTC: LbV6UGyjYbVP49NvQFmuAnkADcaFYvNagK | NMC: NDCdMJmTmGH54Cezmo3CwSxAC7grAoZJbj
|
|
|
DopeLabs
Newbie
Offline
Activity: 18
Merit: 0
|
|
September 12, 2013, 02:08:46 PM |
|
this seems to be repeating in the logfile.... any ideas as to what i need to do to fix? 2013-09-12 07:07:32,607 merkleMaker CRITICAL Traceback (most recent call last): File "/home/dopelabs/eloipool/merklemaker.py", line 692, in run self.merkleMaker_I() File "/home/dopelabs/eloipool/merklemaker.py", line 682, in merkleMaker_I self.merkleMaker_II() File "/home/dopelabs/eloipool/merklemaker.py", line 660, in merkleMaker_II return self._updateMerkleTree() File "/home/dopelabs/eloipool/merklemaker.py", line 548, in _updateMerkleTree self._updateMerkleTree_I() File "/home/dopelabs/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I r = self._updateMerkleTree_fromTS(TS) File "/home/dopelabs/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS MP = self._CallGBT(TS) File "/home/dopelabs/eloipool/merklemaker.py", line 327, in _CallGBT MP = access.getblocktemplate(self.GBTReq) File "/home/dopelabs/eloipool/bitcoinrpc/authproxy.py", line 112, in __call__ 'Content-type': 'application/json'}) File "/usr/lib/python3.2/http/client.py", line 967, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.2/http/client.py", line 995, in _send_request self.putrequest(method, url, **skips) File "/usr/lib/python3.2/http/client.py", line 850, in putrequest raise CannotSendRequest(self.__state) http.client.CannotSendRequest: Request-sent
|
|
|
|
EvgenijM86
Newbie
Offline
Activity: 15
Merit: 0
|
|
October 01, 2013, 02:45:36 PM |
|
How do i install the python-bitcoinrpc and python-base58 ? Thx
It's usually sufficient to just get the git checkout linked under your eloipool directory. What does "linked" mean exactly? Should I just git clone them while inside eloipool directory?
|
|
|
|
greatbotboy
Newbie
Offline
Activity: 37
Merit: 0
|
|
October 12, 2013, 05:26:56 AM |
|
"Interactive Python 3 console so you can inspect and modify the pool while it's running."
interesting... where can I find this?
|
|
|
|
greatbotboy
Newbie
Offline
Activity: 37
Merit: 0
|
|
October 12, 2013, 06:46:09 PM |
|
this seems to be repeating in the logfile.... any ideas as to what i need to do to fix? 2013-09-12 07:07:32,607 merkleMaker CRITICAL Traceback (most recent call last): File "/home/dopelabs/eloipool/merklemaker.py", line 692, in run self.merkleMaker_I() File "/home/dopelabs/eloipool/merklemaker.py", line 682, in merkleMaker_I self.merkleMaker_II() File "/home/dopelabs/eloipool/merklemaker.py", line 660, in merkleMaker_II return self._updateMerkleTree() File "/home/dopelabs/eloipool/merklemaker.py", line 548, in _updateMerkleTree self._updateMerkleTree_I() File "/home/dopelabs/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I r = self._updateMerkleTree_fromTS(TS) File "/home/dopelabs/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS MP = self._CallGBT(TS) File "/home/dopelabs/eloipool/merklemaker.py", line 327, in _CallGBT MP = access.getblocktemplate(self.GBTReq) File "/home/dopelabs/eloipool/bitcoinrpc/authproxy.py", line 112, in __call__ 'Content-type': 'application/json'}) File "/usr/lib/python3.2/http/client.py", line 967, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.2/http/client.py", line 995, in _send_request self.putrequest(method, url, **skips) File "/usr/lib/python3.2/http/client.py", line 850, in putrequest raise CannotSendRequest(self.__state) http.client.CannotSendRequest: Request-sent
I seem to get that quite a bit as well.
|
|
|
|
Luke-Jr (OP)
Legendary
Offline
Activity: 2576
Merit: 1186
|
|
October 12, 2013, 06:48:56 PM |
|
That's a recent bug in bitcoinrpc. Please report it to that project.
|
|
|
|
Groc
Sr. Member
Offline
Activity: 560
Merit: 250
Bounty manager (https://t.me/Gudwinn)
|
|
October 16, 2013, 06:08:00 PM |
|
Anyone using Eloipool with a Raspberry Pi?
|
|
|
|
Trongersoll
|
|
October 16, 2013, 06:48:38 PM |
|
What would be the minimum hardware requirements for running this as a private pool? assume ubuntu 12.4 server as a host. Could a 10 year old pentium dual core 2.0Ghz run this? would extra RAM help?
|
|
|
|
Inaba
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
October 16, 2013, 06:57:27 PM |
|
Depends on how big your pool is. I would say a dual core with 8 GB of RAM would work for a small pool. It's very ram hungry.
|
If you're searching these lines for a point, you've probably missed it. There was never anything there in the first place.
|
|
|
greatbotboy
Newbie
Offline
Activity: 37
Merit: 0
|
|
October 22, 2013, 06:07:21 PM |
|
"Interactive Python 3 console so you can inspect and modify the pool while it's running."
interesting... where can I find this?
Seriously where do i find this?
|
|
|
|
agibby5
|
|
October 23, 2013, 06:18:16 AM |
|
What does "Nobody to longpoll" mean?
|
|
|
|
Inaba
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
October 23, 2013, 11:08:41 PM |
|
"Interactive Python 3 console so you can inspect and modify the pool while it's running."
interesting... where can I find this?
Seriously where do i find this? Hit return... that >>> prompt is your console. What does "Nobody to longpoll" mean?
Means nobody is connected to your pool.
|
If you're searching these lines for a point, you've probably missed it. There was never anything there in the first place.
|
|
|
Luke-Jr (OP)
Legendary
Offline
Activity: 2576
Merit: 1186
|
|
October 23, 2013, 11:34:22 PM |
|
What does "Nobody to longpoll" mean?
Means nobody is connected to your pool. ...with GBT/getwork longpolling.
|
|
|
|
agibby5
|
|
October 24, 2013, 03:11:52 PM |
|
What does "Nobody to longpoll" mean?
Means nobody is connected to your pool. I was worried about that. I am using cgminer to connect via stratum. I am showing shares being logged to my share log file. I am connecting from two different machines. My log file is kind of repetitive... here's an excerpt: 2013-10-23 23:39:03,067 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:39:04,295 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:43:05,339 merkleMaker INFO New block: 000000000000000f733d4d33d9d0b31acec6e4131795d41bc5bf5d8d70e99de2 (height: 265667; bits: 19100ab6) 2013-10-23 23:43:05,341 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:43:06,613 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:46:07,044 merkleMaker INFO New block: 0000000000000002187246b45974f1feacbb3cdc57335b3b8f311181b5606aee (height: 265668; bits: 19100ab6) 2013-10-23 23:46:07,047 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:46:08,318 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:47:52,909 merkleMaker INFO New block: 000000000000000433d7645b726bb6f734643e9a7883c40459d903bd9fe76779 (height: 265669; bits: 19100ab6) 2013-10-23 23:47:52,910 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:47:54,091 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:59:24,201 merkleMaker INFO New block: 0000000000000004bed61203007b92c4d07e8066ef3feaa4ac67a38cd29cf04b (height: 265670; bits: 19100ab6) 2013-10-23 23:59:24,208 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:59:25,481 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:59:39,346 merkleMaker INFO New block: 000000000000000f101af970586963aadf934dfd043fd8f19cc23ce7478618d4 (height: 265671; bits: 19100ab6) 2013-10-23 23:59:39,352 JSONRPCServer INFO Nobody to longpoll 2013-10-23 23:59:40,566 JSONRPCServer INFO Nobody to longpoll
|
|
|
|
jgarzik
Legendary
Offline
Activity: 1596
Merit: 1100
|
|
October 24, 2013, 03:19:26 PM |
|
As Luke indicated, "nobody to longpoll" is normal for pools without getwork/getblocktemplate (GBT) users.
|
Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own. Visit bloq.com / metronome.io Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
|
|
|
|