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

mac os error #2

Open
xxott opened this issue Nov 18, 2017 · 4 comments
Open

mac os error #2

xxott opened this issue Nov 18, 2017 · 4 comments

Comments

@xxott
Copy link

xxott commented Nov 18, 2017

(btc2sepa) MacBook-Pro-di-admin:test admin$ python gen_eth.py 
Traceback (most recent call last):
  File "gen_eth.py", line 2, in <module>
    import crypto
  File "/Users/admin/devel/btc2sepa/test/crypto.py", line 11, in <module>
  File "/Users/admin/.virtualenvs/btc2sepa/lib/python2.7/site-packages/two1/bitcoin/__init__.py", line 19, in <module>
    from .block import BlockHeader
  File "/Users/admin/.virtualenvs/btc2sepa/lib/python2.7/site-packages/two1/bitcoin/block.py", line 7, in <module>
    from two1.bitcoin.txn import Transaction
  File "/Users/admin/.virtualenvs/btc2sepa/lib/python2.7/site-packages/two1/bitcoin/txn.py", line 7, in <module>
    from two1.bitcoin import crypto
  File "/Users/admin/.virtualenvs/btc2sepa/lib/python2.7/site-packages/two1/bitcoin/crypto.py", line 18, in <module>
    bitcoin_curve = secp256k1()
  File "/Users/admin/.virtualenvs/btc2sepa/lib/python2.7/site-packages/two1/crypto/ecdsa_openssl.py", line 449, in __init__
    super().__init__(hashlib.sha256)
TypeError: super() takes at least 1 argument (0 given)
Exception AttributeError: "'secp256k1' object has no attribute '_lc'" in <bound method secp256k1.__del__ of <two1.crypto.ecdsa_openssl.secp256k1 object at 0x10d7362d0>> ignored

have ideea way return this error on mac ?

@michailbrynard
Copy link
Owner

Hmmm, I think you need to be running Python 3.

@xxott
Copy link
Author

xxott commented Nov 19, 2017

allready tested in python 3, and same error,
what operating system are you using?

@reiven
Copy link

reiven commented Apr 8, 2018

On python3 virtuanev i get:

>>> from crypto import HDPrivateKey, HDPublicKey, HDKey
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/private/tmp/web3/ethereum-bip44-python/crypto.py", line 22, in <module>
    from Crypto.Hash import keccak
  File "/Users/reiven/.venv-py3/lib/python3.6/site-packages/Crypto/Hash/keccak.py", line 33, in <module>
    from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
  File "/Users/reiven/.venv-py3/lib/python3.6/site-packages/Crypto/Util/_raw_api.py", line 32, in <module>
    from Crypto.Util.py3compat import byte_string
ImportError: cannot import name 'byte_string'

@deng00
Copy link

deng00 commented Jun 12, 2018

when you got "cannot import name 'byte_string'", you can try:

pip3 uninstall pycrypto
pip3 uninstall pycryptodome
pip3 install pycryptodome

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

4 participants