0

我有一个 Python 脚本,它使用该nose库在运行测试之前设置一些自定义选项。我的项目位于使用 Python 2.5的virtualenv中。我的全局 Python 版本最近升级到了2.7,但是因为我使用的是 virtualenv,所以我应该被屏蔽。但是,最后几行看起来像是在引用非本地版本的.nosegae

build/bdist.linux-x86_64/egg/nosegae.py位于哪里?它看起来是本地的,但该相对路径不存在。

Traceback (most recent call last):
  File "scripts/run_nosetests.py", line 70, in <module>
    nose.run(argv=nose_opts)
  File "/home/matthew/dev/projects/jazzy_jack/lib/python2.5/site-packages/nose-0.11.3-py2.5.egg/nose/core.py", line 282, in run
    return TestProgram(*arg, **kw).success
  File "/home/matthew/dev/projects/jazzy_jack/lib/python2.5/site-packages/nose-0.11.3-py2.5.egg/nose/core.py", line 117, in __init__
    **extra_args)
  File "/usr/lib/python2.5/unittest.py", line 767, in __init__
    self.parseArgs(argv)
  File "/home/matthew/dev/projects/jazzy_jack/lib/python2.5/site-packages/nose-0.11.3-py2.5.egg/nose/core.py", line 134, in parseArgs
    self.config.configure(argv, doc=self.usage())
  File "/home/matthew/dev/projects/jazzy_jack/lib/python2.5/site-packages/nose-0.11.3-py2.5.egg/nose/config.py", line 324, in configure
    self.plugins.begin()
  File "/home/matthew/dev/projects/jazzy_jack/lib/python2.5/site-packages/nose-0.11.3-py2.5.egg/nose/plugins/manager.py", line 93, in __call__
    return self.call(*arg, **kw)
  File "/home/matthew/dev/projects/jazzy_jack/lib/python2.5/site-packages/nose-0.11.3-py2.5.egg/nose/plugins/manager.py", line 161, in simple
    result = meth(*arg, **kw)
  File "build/bdist.linux-x86_64/egg/nosegae.py", line 129, in begin
  File "build/bdist.linux-x86_64/egg/nosegae.py", line 153, in _install_hook
TypeError: __init__() takes at least 3 arguments (2 given)
4

0 回答 0