vpython : AttributeError: ‘box‘ object has no attribute ‘idx‘
问题描述一、问题描述:导入vpython库之后,使用了vpython库中的sphere类或box类之后报错如下:主要报错语句是划线部分:AttributeError: 'box' object has no attribute 'idx'(box换成sphere是一样的)。经过debug,发现具体报错如下:二、解决方法确定vpython已经安装查看该项目环境的第三方库中autobahn, txaio这两个包,如我的是:autobahn版本是22.4.2, txaio版本是22.2.1。