Python 错误:以太蛇;版本冲突

Python 错误:以太蛇;版本冲突,python,python-2.7,testing,pytest,ethereum,Python,Python 2.7,Testing,Pytest,Ethereum,在安装Pythem和ethereum serpent之后,我使用:$pytest-m test_contracts.py运行了一个测试,我遇到了以下错误,我似乎无法弄清楚真正的问题是什么: ===========================================================================================================================测试会话开始==========================

在安装Pythem和ethereum serpent之后,我使用:
$pytest-m test_contracts.py运行了一个测试,我遇到了以下错误,我似乎无法弄清楚真正的问题是什么:

===========================================================================================================================测试会话开始================================================================================ 平台darwin——Python 2.7.12、pytest-3.0.0、py-1.4.31、Plugy-0.3.1 rootdir:/Users/someone/SmartContract/pyethereum,文件: 插件:catchlog-1.2.2,timeout-1.0.0 收集了47942件物品

INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/main.py", line 96, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/main.py", line 130, in _main
INTERNALERROR>     config.hook.pytest_collection(session=session)
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/main.py", line 139, in pytest_collection
INTERNALERROR>     return session.perform_collect()
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/main.py", line 592, in perform_collect
INTERNALERROR>     config=self.config, items=items)
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 724, in __call__
INTERNALERROR>     return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
INTERNALERROR>     _MultiCall(methods, kwargs, hook.spec_opts).execute()
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py", line 596, in execute
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/mark.py", line 84, in pytest_collection_modifyitems
INTERNALERROR>     if not matchmark(colitem, matchexpr):
INTERNALERROR>   File "/usr/local/lib/python2.7/site-packages/_pytest/mark.py", line 124, in matchmark
INTERNALERROR>     return eval(markexpr, {}, MarkMapping(colitem.keywords))
INTERNALERROR>   File "<string>", line 1, in <module>
INTERNALERROR> AttributeError: 'bool' object has no attribute 'py'
INTERNALERROR>Traceback(最近一次调用):
内部错误>文件“/usr/local/lib/python2.7/site packages/_pytest/main.py”,第96行,在wrap_会话中
INTERNALERROR>session.exitstatus=doit(配置,会话)或0
INTERNALERROR>文件“/usr/local/lib/python2.7/site packages/_-pytest/main.py”,第130行,在_-main中
INTERNALERROR>config.hook.pytest\u集合(会话=会话)
INTERNALERROR>File“/usr/local/lib/python2.7/site packages/\u pytest/vendored\u packages/pluggy.py”,第724行,在调用中__
内部错误>返回self.\u hookexec(self,self.\u非包装器+self.\u包装器,kwargs)
INTERNALERROR>文件“/usr/local/lib/python2.7/site packages/\u pytest/vendored\u packages/pluggy.py”,第338行,在
内部错误>返回自我。\u内部\u hookexec(钩子、方法、kwargs)
内部错误>文件“/usr/local/lib/python2.7/site packages/_-pytest/vendored_-packages/pluggy.py”,第333行,在
INTERNALERROR>\u MultiCall(方法、kwargs、hook.spec\u opts).execute()
INTERNALERROR>文件“/usr/local/lib/python2.7/site packages/_pytest/vendored_packages/pluggy.py”,执行中第596行
INTERNALERROR>res=hook_impl.function(*args)
内部错误>文件“/usr/local/lib/python2.7/site packages/_pytest/main.py”,第139行,在pytest_集合中
INTERNALERROR>返回会话。执行_collect()
INTERNALERROR>文件“/usr/local/lib/python2.7/site packages/_pytest/main.py”,第592行,在perform_collect中
INTERNALERROR>config=self.config,items=items)
INTERNALERROR>File“/usr/local/lib/python2.7/site packages/\u pytest/vendored\u packages/pluggy.py”,第724行,在调用中__
内部错误>返回self.\u hookexec(self,self.\u非包装器+self.\u包装器,kwargs)
INTERNALERROR>文件“/usr/local/lib/python2.7/site packages/\u pytest/vendored\u packages/pluggy.py”,第338行,在
内部错误>返回自我。\u内部\u hookexec(钩子、方法、kwargs)
内部错误>文件“/usr/local/lib/python2.7/site packages/_-pytest/vendored_-packages/pluggy.py”,第333行,在
INTERNALERROR>\u MultiCall(方法、kwargs、hook.spec\u opts).execute()
INTERNALERROR>文件“/usr/local/lib/python2.7/site packages/_pytest/vendored_packages/pluggy.py”,执行中第596行
INTERNALERROR>res=hook_impl.function(*args)
内部错误>文件“/usr/local/lib/python2.7/site packages/_pytest/mark.py”,第84行,在pytest\u collection\u modifyitems中
内部错误>如果不是匹配标记(colitem,matchexpr):
内部错误>文件“/usr/local/lib/python2.7/site packages/_pytest/mark.py”,第124行,在matchmark中
INTERNALERROR>return eval(markexpr,{},MarkMapping(colitem.keywords))
内部错误>文件“”,第1行,在
INTERNALERROR>AttributeError:“bool”对象没有属性“py”

此错误似乎与ethereum-serpent-1.6.7有关。此错误通过升级到最新的ethereum-serpent(2.02.)解决,方法是:

pip install --upgrade ethereum-setpent

此错误似乎与ethereum-serpent-1.6.7有关。此错误通过以下方式升级到最新的ethereum-serpent(2.02.)解决:

pip install --upgrade ethereum-setpent