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

Test suite fails, “module object has no attribute 'ECC'” #86

Open
bignose-debian opened this issue Oct 7, 2017 · 0 comments
Open

Comments

@bignose-debian
Copy link

When I install the current release of ‘pydevp2p’ and run ‘tox’, the test suite fails:

$ python3 -m venv ../venv.python3/

$ source ../venv.python3/bin/activate

(venv.python3) $ python3 -m pip install wheel
Collecting wheel
  Using cached wheel-0.30.0-py2.py3-none-any.whl
Installing collected packages: wheel
Successfully installed wheel-0.30.0

(venv.python3) $ python3 -m pip install --requirement ./requirements.txt
Collecting https://github.com/ethereum/pyrlp/tarball/develop (from -r ./requirements.txt (line 14))
  Downloading https://github.com/ethereum/pyrlp/tarball/develop
Collecting pyelliptic (from -r ./requirements.txt (line 1))
Requirement already satisfied: wheel in /home/bignose/Projects/blockchain/Ethereum/pydevp2p/venv.python3/lib/python3.5/site-packages (from -r ./requirements.txt (line 2))
Collecting gevent==1.1b3 (from -r ./requirements.txt (line 3))
Collecting tinyrpc (from -r ./requirements.txt (line 4))
Collecting pysha3 (from -r ./requirements.txt (line 5))
  Using cached pysha3-1.0.2-cp35-cp35m-manylinux1_x86_64.whl
Collecting bitcoin (from -r ./requirements.txt (line 6))
Collecting ipaddress (from -r ./requirements.txt (line 7))
Collecting pytest (from -r ./requirements.txt (line 8))
  Using cached pytest-3.2.3-py2.py3-none-any.whl
Collecting pytest-capturelog (from -r ./requirements.txt (line 9))
Collecting pytest-timeout (from -r ./requirements.txt (line 10))
  Using cached pytest_timeout-1.2.0-py2.py3-none-any.whl
Collecting coverage (from -r ./requirements.txt (line 11))
  Using cached coverage-4.4.1-cp35-cp35m-manylinux1_x86_64.whl
Collecting tox (from -r ./requirements.txt (line 12))
  Using cached tox-2.9.1-py2.py3-none-any.whl
Collecting pycrypto (from -r ./requirements.txt (line 13))
Collecting greenlet>=0.4.7 (from gevent==1.1b3->-r ./requirements.txt (line 3))
  Using cached greenlet-0.4.12-cp35-cp35m-manylinux1_x86_64.whl
Collecting six (from tinyrpc->-r ./requirements.txt (line 4))
  Using cached six-1.11.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in /home/bignose/Projects/blockchain/Ethereum/pydevp2p/venv.python3/lib/python3.5/site-packages (from pytest->-r ./requirements.txt (line 8))
Collecting py>=1.4.33 (from pytest->-r ./requirements.txt (line 8))
  Using cached py-1.4.34-py2.py3-none-any.whl
Collecting pluggy<1.0,>=0.3.0 (from tox->-r ./requirements.txt (line 12))
Collecting virtualenv>=1.11.2; python_version != "3.2" (from tox->-r ./requirements.txt (line 12))
  Using cached virtualenv-15.1.0-py2.py3-none-any.whl
Installing collected packages: pyelliptic, greenlet, gevent, six, tinyrpc, pysha3, bitcoin, ipaddress, py, pytest, pytest-capturelog, pytest-timeout, coverage, pluggy, virtualenv, tox, pycrypto, rlp
  Running setup.py install for rlp ... done
Successfully installed bitcoin-1.1.42 coverage-4.4.1 gevent-1.1b3 greenlet-0.4.12 ipaddress-1.0.18 pluggy-0.5.2 py-1.4.34 pycrypto-2.6.1 pyelliptic-1.5.8 pysha3-1.0.2 pytest-3.2.3 pytest-capturelog-0.7 pytest-timeout-1.2.0 rlp-0.6.0 six-1.11.0 tinyrpc-0.6 tox-2.9.1 virtualenv-15.1.0

(venv.python3) $ tox
GLOB sdist-make: /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/setup.py
py27 inst-nodeps: /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.tox/dist/devp2p-0.5.1.zip
py27 installed: bitcoin==1.1.42,coverage==4.4.1,devp2p==0.5.1,gevent==1.1b3,greenlet==0.4.12,ipaddress==1.0.18,pluggy==0.5.2,py==1.4.34,pycrypto==2.6.1,pyelliptic==1.5.8,pysha3==1.0.2,pytest==3.2.3,pytest-capturelog==0.7,pytest-timeout==1.2.0,rlp==0.6.0,six==1.11.0,tinyrpc==0.6,tox==2.9.1,virtualenv==15.1.0
py27 runtests: PYTHONHASHSEED='3295022822'
py27 runtests: commands[0] | python setup.py test
running test
Searching for sphinx
Best match: Sphinx 1.6.4
Processing Sphinx-1.6.4-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/Sphinx-1.6.4-py2.7.egg
Searching for typing
Best match: typing 3.6.2
Processing typing-3.6.2-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/typing-3.6.2-py2.7.egg
Searching for sphinxcontrib-websupport
Best match: sphinxcontrib-websupport 1.0.1
Processing sphinxcontrib_websupport-1.0.1-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/sphinxcontrib_websupport-1.0.1-py2.7.egg
Searching for requests>=2.0.0
Best match: requests 2.18.4
Processing requests-2.18.4-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/requests-2.18.4-py2.7.egg
Searching for imagesize
Best match: imagesize 0.7.1
Processing imagesize-0.7.1-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/imagesize-0.7.1-py2.7.egg
Searching for alabaster<0.8,>=0.7
Best match: alabaster 0.7.10
Processing alabaster-0.7.10-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/alabaster-0.7.10-py2.7.egg
Searching for babel!=2.0,>=1.3
Best match: Babel 2.5.1
Processing Babel-2.5.1-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/Babel-2.5.1-py2.7.egg
Searching for snowballstemmer>=1.1
Best match: snowballstemmer 1.2.1
Processing snowballstemmer-1.2.1-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/snowballstemmer-1.2.1-py2.7.egg
Searching for docutils>=0.11
Best match: docutils 0.14
Processing docutils-0.14-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/docutils-0.14-py2.7.egg
Searching for Pygments>=2.0
Best match: Pygments 2.2.0
Processing Pygments-2.2.0-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/Pygments-2.2.0-py2.7.egg
Searching for Jinja2>=2.3
Best match: Jinja2 2.9.6
Processing Jinja2-2.9.6-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/Jinja2-2.9.6-py2.7.egg
Searching for certifi>=2017.4.17
Best match: certifi 2017.7.27.1
Processing certifi-2017.7.27.1-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/certifi-2017.7.27.1-py2.7.egg
Searching for urllib3<1.23,>=1.21.1
Best match: urllib3 1.22
Processing urllib3-1.22-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/urllib3-1.22-py2.7.egg
Searching for idna<2.7,>=2.5
Best match: idna 2.6
Processing idna-2.6-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/idna-2.6-py2.7.egg
Searching for chardet<3.1.0,>=3.0.2
Best match: chardet 3.0.4
Processing chardet-3.0.4-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/chardet-3.0.4-py2.7.egg
Searching for pytz>=0a
Best match: pytz 2017.2
Processing pytz-2017.2-py2.7.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/pytz-2017.2-py2.7.egg
Searching for MarkupSafe>=0.23
Best match: MarkupSafe 1.0
Processing MarkupSafe-1.0-py2.7-linux-x86_64.egg

Using /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.eggs/MarkupSafe-1.0-py2.7-linux-x86_64.egg
running egg_info
writing dependency_links to devp2p.egg-info/dependency_links.txt
writing top-level names to devp2p.egg-info/top_level.txt
writing devp2p.egg-info/PKG-INFO
writing requirements to devp2p.egg-info/requires.txt
reading manifest file 'devp2p.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'AUTHORS.rst'
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no files found matching '*.rst' under directory 'docs'
warning: no files found matching 'conf.py' under directory 'docs'
warning: no files found matching 'Makefile' under directory 'docs'
warning: no files found matching 'make.bat' under directory 'docs'
writing manifest file 'devp2p.egg-info/SOURCES.txt'
running build_ext
============================================================================================================ test session starts =============================================================================================================
platform linux2 -- Python 2.7.13, pytest-3.2.3, py-1.4.34, pluggy-0.4.0
rootdir: /home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel, inifile:
plugins: timeout-1.2.0, capturelog-0.7
collected 6 items / 12 errors

=================================================================================================================== ERRORS ===================================================================================================================
________________________________________________________________________________________________ ERROR collecting devp2p/tests/test_crypto.py ________________________________________________________________________________________________
devp2p/tests/test_crypto.py:2: in <module>
    from devp2p import crypto
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
______________________________________________________________________________________________ ERROR collecting devp2p/tests/test_discovery.py _______________________________________________________________________________________________
devp2p/tests/test_discovery.py:1: in <module>
    from devp2p import discovery
devp2p/discovery.py:7: in <module>
    from devp2p import crypto
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
________________________________________________________________________________________________ ERROR collecting devp2p/tests/test_ecies.py _________________________________________________________________________________________________
devp2p/tests/test_ecies.py:1: in <module>
    import devp2p.crypto as crypto
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
_____________________________________________________________________________________________ ERROR collecting devp2p/tests/test_go_handshake.py _____________________________________________________________________________________________
devp2p/tests/test_go_handshake.py:5: in <module>
    from devp2p.rlpxcipher import RLPxSession
devp2p/rlpxcipher.py:4: in <module>
    from devp2p.crypto import sha3
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
_____________________________________________________________________________________________ ERROR collecting devp2p/tests/test_go_signature.py _____________________________________________________________________________________________
devp2p/tests/test_go_signature.py:1: in <module>
    from devp2p.crypto import ecdsa_sign, mk_privkey, privtopub, ecdsa_recover, ECCx
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
_______________________________________________________________________________________________ ERROR collecting devp2p/tests/test_kademlia.py _______________________________________________________________________________________________
devp2p/tests/test_kademlia.py:2: in <module>
    from devp2p import kademlia
devp2p/kademlia.py:19: in <module>
    from crypto import sha3
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
__________________________________________________________________________________________ ERROR collecting devp2p/tests/test_kademlia_protocol.py ___________________________________________________________________________________________
devp2p/tests/test_kademlia_protocol.py:5: in <module>
    from devp2p import kademlia
devp2p/kademlia.py:19: in <module>
    from crypto import sha3
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
______________________________________________________________________________________________ ERROR collecting devp2p/tests/test_muxsession.py ______________________________________________________________________________________________
devp2p/tests/test_muxsession.py:2: in <module>
    from devp2p.crypto import mk_privkey, privtopub
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
_____________________________________________________________________________________________ ERROR collecting devp2p/tests/test_p2pprotocol.py ______________________________________________________________________________________________
devp2p/tests/test_p2pprotocol.py:3: in <module>
    from devp2p.app import BaseApp
devp2p/app.py:5: in <module>
    import crypto
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
-------------------------------------------------------------------------------------------------------------- Captured stdout ---------------------------------------------------------------------------------------------------------------
could not import slogging
_________________________________________________________________________________________________ ERROR collecting devp2p/tests/test_peer.py _________________________________________________________________________________________________
devp2p/tests/test_peer.py:1: in <module>
    from devp2p import peermanager
devp2p/peermanager.py:11: in <module>
    from discovery import NodeDiscovery
devp2p/discovery.py:7: in <module>
    from devp2p import crypto
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
_____________________________________________________________________________________________ ERROR collecting devp2p/tests/test_rlpxsession.py ______________________________________________________________________________________________
devp2p/tests/test_rlpxsession.py:2: in <module>
    from devp2p.rlpxcipher import RLPxSession, FormatError
devp2p/rlpxcipher.py:4: in <module>
    from devp2p.crypto import sha3
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
_______________________________________________________________________________________________ ERROR collecting devp2p/tests/test_service.py ________________________________________________________________________________________________
devp2p/tests/test_service.py:4: in <module>
    from devp2p.app import BaseApp
devp2p/app.py:5: in <module>
    import crypto
devp2p/crypto.py:49: in <module>
    class ECCx(pyelliptic.ECC):
E   AttributeError: 'module' object has no attribute 'ECC'
============================================================================================================== warnings summary ==============================================================================================================
.tox/py27/local/lib/python2.7/site-packages/pytest_capturelog.py:171
  'pytest_runtest_makereport' hook uses deprecated __multicall__ argument

None
  pytest_funcarg__caplog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
  pytest_funcarg__capturelog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.

-- Docs: http://doc.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 12 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
==================================================================================================== 3 warnings, 12 error in 0.28 seconds ====================================================================================================
ERROR: InvocationError: '/home/bignose/Projects/blockchain/Ethereum/pydevp2p/devel/.tox/py27/bin/python setup.py test'
__________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________
ERROR:   py27: commands failed

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

1 participant