Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

some eth command not working #279

Open
cmaliwal opened this issue Dec 26, 2017 · 2 comments
Open

some eth command not working #279

cmaliwal opened this issue Dec 26, 2017 · 2 comments

Comments

@cmaliwal
Copy link

cmaliwal commented Dec 26, 2017


In [5]: blockhash == eth.chain.index.get_block_by_number(433960)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-5-cc44e1ef515d> in <module>()
----> 1 blockhash == eth.chain.index.get_block_by_number(433960)

AttributeError: 'Chain' object has no attribute 'index'


In [6]: eth.chain.get(blockhash)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-6-8b4ee92deafc> in <module>()
----> 1 eth.chain.get(blockhash)

AttributeError: 'Chain' object has no attribute 'get'


In [9]: eth.latest.header.check_pow()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-9-d2acbc6a9067> in <module>()
----> 1 eth.latest.header.check_pow()

AttributeError: 'BlockHeader' object has no attribute 'check_pow'


In [11]: eth.latest.get_transactions()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-11-f91c2e1449dd> in <module>()
----> 1 eth.latest.get_transactions()

/home/rails/Desktop/block-chain/envs/local/lib/python2.7/site-packages/ethereum/block.pyc in __getattribute__(self, name)
    179             return rlp.Serializable.__getattribute__(self, name)
    180         except AttributeError:
--> 181             return getattr(self.header, name)
    182 
    183     @property

AttributeError: 'BlockHeader' object has no attribute 'get_transactions'



Note : I am using python 2.7 and using ubuntu 16.04.
@cmaliwal
Copy link
Author

Steps I followed :

Create virtual environment and active virtual environment .
Git clone https://github.com/ethereum/pyethapp.git
Cd pyethapp
Pip install -r requirements.txt
Python setup.py install

@mhan11
Copy link

mhan11 commented Mar 23, 2018

I got the same problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants