【问题标题】:scipy.test() results in errorsscipy.test() 导致错误
【发布时间】:2016-08-24 21:45:51
【问题描述】:

scipy 有一些问题。使用 pip (0.17.0) 安装最新版本。运行 scipy.test() ,我收到以下错误。他们可以忽略吗?我正在使用 python 2.7.6。

感谢您的帮助。

================================================ ========================

错误:test_add_function_ordered (test_catalog.TestCatalog)

Traceback(最近一次调用最后一次): 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/tests/test_catalog.py”,第 477 行,在 test_add_function_ordered q.add_function('f',string.upper) 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py”,第 833 行,在 add_function self.add_function_persistent(代码,函数) 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py”,第 849 行,在 add_function_persistent cat = get_catalog(cat_dir,mode) 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py”,第 486 行,在 get_catalog sh = shelve.open(目录文件,模式) 文件“/usr/lib/python2.7/shelve.py”,第 239 行,打开 return DbfilenameShelf(文件名、标志、协议、写回) init 中的文件“/usr/lib/python2.7/shelve.py”,第 222 行 导入任何数据库 文件“/usr/lib/python2.7/anydbm.py”,第 50 行,在 _errors.append(_mod.error) AttributeError:“模块”对象没有属性“错误”

================================================ ========================

错误:test_add_function_persistent1 (test_catalog.TestCatalog)

Traceback(最近一次调用最后一次): 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/tests/test_catalog.py”,第 466 行,在 test_add_function_persistent1 q.add_function_persistent('代码',i) 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py”,第 849 行,在 add_function_persistent cat = get_catalog(cat_dir,mode) 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py”,第 486 行,在 get_catalog sh = shelve.open(目录文件,模式) 文件“/usr/lib/python2.7/shelve.py”,第 239 行,打开 return DbfilenameShelf(文件名、标志、协议、写回) init 中的文件“/usr/lib/python2.7/shelve.py”,第 222 行 导入任何数据库 文件“/usr/lib/python2.7/anydbm.py”,第 50 行,在 _errors.append(_mod.error) AttributeError:“模块”对象没有属性“错误”

================================================ ========================

错误:test_get_existing_files2 (test_catalog.TestCatalog)

Traceback(最近一次调用最后一次): 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/tests/test_catalog.py”,第 394 行,在 test_get_existing_files2 q.add_function('code', os.getpid) 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py”,第 833 行,在 add_function self.add_function_persistent(代码,函数) 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py”,第 849 行,在 add_function_persistent cat = get_catalog(cat_dir,mode) 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py”,第 486 行,在 get_catalog sh = shelve.open(目录文件,模式) 文件“/usr/lib/python2.7/shelve.py”,第 239 行,打开 return DbfilenameShelf(文件名、标志、协议、写回) init 中的文件“/usr/lib/python2.7/shelve.py”,第 222 行 导入任何数据库 文件“/usr/lib/python2.7/anydbm.py”,第 50 行,在 _errors.append(_mod.error) AttributeError:“模块”对象没有属性“错误”

================================================ ========================

错误:test_create_catalog (test_catalog.TestGetCatalog)

Traceback(最近一次调用最后一次): test_create_catalog 中的文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/tests/test_catalog.py”,第 286 行 cat = catalog.get_catalog(pardir,'c') 文件“/usr/local/lib/python2.7/dist-packages/scipy/weave/catalog.py”,第 486 行,在 get_catalog sh = shelve.open(目录文件,模式) 文件“/usr/lib/python2.7/shelve.py”,第 239 行,打开 return DbfilenameShelf(文件名、标志、协议、写回) init 中的文件“/usr/lib/python2.7/shelve.py”,第 222 行 导入任何数据库 文件“/usr/lib/python2.7/anydbm.py”,第 50 行,在 _errors.append(_mod.error) AttributeError:“模块”对象没有属性“错误”


在 138.416 秒内运行 20343 次测试

失败(KNOWNFAIL=98,SKIP=1679,错误=4)

【问题讨论】:

    标签: python-2.7 scipy


    【解决方案1】:

    所有这些都在weave 中,在 scipy 本身的其他任何地方都没有使用。因此,除非您直接使用 weave,否则您可能没问题。而且很可能没有理由在新代码中使用 weave。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-07-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多