Closed PaulRBerg closed 6 years ago
Switched to 3.6, now I get 11 failed, 28 passed
.
I got the same error. (Python 3.6)
Traceback (most recent call last):
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/pytest-3.7.1-py3.6.egg/_pytest/config/__init__.py", line 372, in _getconftestmodules
return self._path2confmods[path]
KeyError: local('/Users/ryuya.nakamura/work/blockchain/plasma-mvp-vyper/tests')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/pytest-3.7.1-py3.6.egg/_pytest/config/__init__.py", line 403, in _importconftest
return self._conftestpath2mod[conftestpath]
KeyError: local('/Users/ryuya.nakamura/work/blockchain/plasma-mvp-vyper/tests/conftest.py')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/pytest-3.7.1-py3.6.egg/_pytest/config/__init__.py", line 409, in _importconftest
mod = conftestpath.pyimport()
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/py-1.5.4-py3.6.egg/py/_path/local.py", line 668, in pyimport
__import__(modname)
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/pytest-3.7.1-py3.6.egg/_pytest/assertion/rewrite.py", line 226, in load_module
py.builtin.exec_(co, mod.__dict__)
File "/Users/ryuya.nakamura/work/blockchain/plasma-mvp-vyper/tests/conftest.py", line 3, in <module>
from ethereum.tools import tester, _solidity
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/ethereum-2.3.0-py3.6.egg/ethereum/tools/__init__.py", line 1, in <module>
from ethereum.tools import keys, new_statetest_utils, testutils, tester, _solidity
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/ethereum-2.3.0-py3.6.egg/ethereum/tools/new_statetest_utils.py", line 1, in <module>
from ethereum.state import State
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/ethereum-2.3.0-py3.6.egg/ethereum/state.py", line 8, in <module>
from ethereum import trie
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/ethereum-2.3.0-py3.6.egg/ethereum/trie.py", line 6, in <module>
from ethereum.abi import is_string
File "/Users/ryuya.nakamura/.pyenv/versions/vyper/lib/python3.6/site-packages/ethereum-2.3.0-py3.6.egg/ethereum/abi.py", line 9, in <module>
import yaml
ModuleNotFoundError: No module named 'yaml'
ERROR: could not load /Users/ryuya.nakamura/work/blockchain/plasma-mvp-vyper/tests/conftest.py
I found similar issue in pytest
.pyc
files should be deleted ( find . -name \*.pyc -delete
). In this omisego's repo, make clean
executes find . -name '*.pyc' -exec rm -f {} +
and more.
I tried them but it didn't work.
Unfortunately the fix for now is to use py3.6 :-/ Need to figure out a better solution. Will make a new issue to support py3.7 and update README to let users know to use 3.6.
Issue Type
Current Behavior
Tests do not run on python 3.7. I also tried to run the source code on
3.4.0
and3.4.8
, but I couldn't even pass bymake
.Expected Behavior
Test should run with python 3.7, as in the README it specifies "python 3.2+".
Steps to Reproduce
Full output of error:
Notice this line:
System Specs
pip freeze
):