gpt4 book ai didi

python - 属性错误: module 'tox.config' has no attribute 'parseini'

转载 作者:行者123 更新时间:2023-12-01 01:35:12 24 4
gpt4 key购买 nike

我最近得到了

3.36s$ pip install coveralls tox-travis
0.31s$ tox
Matching undeclared envs is deprecated. Be sure all the envs that Tox should run are declared in the tox config.
Traceback (most recent call last):
File "/home/travis/virtualenv/python3.5.6/bin/tox", line 11, in <module>
sys.exit(cmdline())
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/tox/session.py", line 41, in cmdline
main(args)
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/tox/session.py", line 46, in main
config = prepare(args)
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/tox/session.py", line 28, in prepare
config = parseconfig(args)
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/tox/config.py", line 233, in parseconfig
pm.hook.tox_configure(config=config) # post process config object
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/pluggy/hooks.py", line 258, in __call__
return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/pluggy/manager.py", line 67, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/pluggy/manager.py", line 61, in <lambda>
firstresult=hook.spec_opts.get('firstresult'),
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/pluggy/callers.py", line 201, in _multicall
return outcome.get_result()
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/pluggy/callers.py", line 76, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/pluggy/callers.py", line 180, in _multicall
res = hook_impl.function(*args)
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/tox_travis/hooks.py", line 46, in tox_configure
autogen_envconfigs(config, undeclared)
File "/home/travis/virtualenv/python3.5.6/lib/python3.5/site-packages/tox_travis/envlist.py", line 48, in autogen_envconfigs
make_envconfig = tox.config.parseini.make_envconfig
AttributeError: module 'tox.config' has no attribute 'parseini'
The command "tox" exited with 1.

对于 mpu project (travis link)

奇怪的是它适用于 Python 2.7 和 Python 3.6 - 那么问题是什么?

最佳答案

Tox 3.4.0(昨天发布)破坏了 tox-travis:https://github.com/tox-dev/tox-travis/issues/114

该错误已修复,新版本 0.11刚刚上传。升级:

pip install -U 'tox-travis>=0.11'

关于python - 属性错误: module 'tox.config' has no attribute 'parseini' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52447548/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com