Vpython安装后奇怪的未来警告错误

时间:2015-01-06 13:58:49

标签: python numpy vpython

首先我安装了Python 2.7.6(Windows,32位版本),然后安装了numpy 1.9.1,然后安装了VPython 6.10。在那之后,我收到了这个错误:

Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import visual

Warning (from warnings module):
  File "C:\Python27\Lib\site-packages\visual_common\materials.py", line 70
    self.__setattr__(key, value)
FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.

>>> ================================ RESTART ================================
>>>

出了什么问题?

1 个答案:

答案 0 :(得分:-1)

快速Google for" FutureWarning:与None的比较将导致将来进行元素对象比较。"

出现了:

http://comments.gmane.org/gmane.comp.python.numeric.general/58863

https://github.com/numpy/numpy/issues/4894

尝试看看它是否回答了你的问题。