我在练习 46 中遇到了 LPTHW 的一些问题,其中我们为未来的项目创建了一个框架目录并安装了 pip 等等。我的鼻子测试有问题。每当我运行它时,我都会遇到问题。我已经按照他的要求设置好了一切。这是问题(我正在运行 Ubuntu 12.04)
Traceback (most recent call last):
File "/usr/local/bin/nosetests", line 9, in <module>
load_entry_point('nose==1.3.0', 'console_scripts', 'nosetests')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python2.7/dist-packages/nose/__init__.py", line 1, in <module>
from nose.core import collector, main, run, run_exit, runmodule
File "/usr/local/lib/python2.7/dist-packages/nose/core.py", line 11, in <module>
from nose.config import Config, all_config_files
File "/usr/local/lib/python2.7/dist-packages/nose/config.py", line 9, in <module>
from nose.plugins.manager import NoPlugins
File "/usr/local/lib/python2.7/dist-packages/nose/plugins/__init__.py", line 184, in <module>
from nose.plugins.base import Plugin
EOFError: EOF read where object expected