Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with newest web3 #16

Open
konradweiss opened this issue Apr 23, 2018 · 7 comments
Open

Incompatible with newest web3 #16

konradweiss opened this issue Apr 23, 2018 · 7 comments

Comments

@konradweiss
Copy link

When i run mayan.py i get an import error:

File "maian.py", line 24, in
from web3 import Web3, KeepAliveRPCProvider, IPCProvider
ImportError: cannot import name 'KeepAliveRPCProvider'

my assumption is that the ''KeepAliveRPCProvider' was removed sometime. I compiled web3 from the current version 4.1 source.

Do you use a different one, can you provide the version?

Regards,
Konrad

@konradweiss
Copy link
Author

One version that works is 3.4.4

@arun-munagala
Copy link

@LoCorVin using 3.4.4 gives me the following error

File "/usr/local/lib/python3.5/dist-packages/web3/utils/crypto.py", line 26, in
assert sha3('') == 'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470'
AssertionError.

any other workaround?

@konradweiss
Copy link
Author

No, until now i still have problems getting it to run. When analyzing a contract, a call to sha3 contracts.py expects a static signature, but web3 on 3.4.4 provides a signature expecting a argument self, so in theory we need a Web3 instance first.

@arun-munagala
Copy link

@LoCorVin Thanks for the update. even i have some problems. Tried using other web3 versions but had other dependency issues.

@konradweiss
Copy link
Author

If you ever get it running pleas tell me, maybe we can initiate a pull request with a Dockerfile that encapsulates all dependencies

@arun-munagala
Copy link

@LoCorVin Will surely let you know!

@nsumner
Copy link

nsumner commented May 19, 2018

After converting several divisions to integer divisions in execute_instruction.py, it works with python3.

I built the z3 python3 bindings and used these versions for dependencies:

  • web3 3.4.4
  • eth-abi 0.5.0
  • rlp 0.6.0

I have not done extensive testing, but the examples seem to work.

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

No branches or pull requests

3 participants