vpython : AttributeError: ‘box‘ object has no attribute ‘idx‘
Problem description
1. Problem Description:
After importing the VPython library, the errors reported after using the sphere class or box class in the VPython library are as follows:
the main error statement is the underlined part: attributeerror: 'box' object has no attribute 'IDX' (changing box to sphere is the same)
.
After debugging, it is found that the specific errors are as follows:
2. Solution
- Make sure vpython is installed
- Check the third-party libraries of the project environment for the packages autobahn and txaio, e.g. mine are autobahn version is 22.4.2, txaio version is 22.2.1.
- Lower the version of audobahn. If I lower the version to 22.3.2
Success!!!!!!!
Read More:
- [Solved] AttributeError: ‘str‘ object has no attribute ‘decode‘
- [Solved] AttributeError: ‘PngImageFile‘ object has no attribute ‘imshow‘
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘astype‘
- [Solved] Pycharm error: attributeerror: ‘Htmlparser’ object has no attribute ‘unescape’
- [Solved] AttributeError: ‘DataParallel‘ object has no attribute ‘save‘
- [Solved] Networkx Error: Attributeerror: ‘graph’ object has no attribute ‘node’
- AttributeError: DatetimeProperties object has no attribute
- [Solved] AttributeError: ‘DataFrame‘ object has no attribute ‘map‘
- [Solved] AttributeError: ‘str‘ object has no attribute ‘decode‘
- [Solved] AttributeError: DataFrame object has no attribute’xxx’
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘append‘
- Python 3.7 Error: AttributeError: ‘str‘ object has no attribute ‘decode‘ [How to Solve]
- [Solved] AttributeError: ‘DataFrame‘ object has no attribute ‘tolist‘
- [Solved] AttributeError WriteOnlyWorksheet object has no attribute cell
- [Solved] pandas ExcelWrite AttributeError: ‘NoneType‘ object has no attribute ‘group‘
- [Solved] Add-apt-repository Command Error: AttributeError: ‘Thread‘ object has no attribute ‘isAlive‘
- How to Solve Python AttributeError: ‘module’ object has no attribute ‘xxx’
- [Solved] Pytorch Error: AttributeError: ‘Tensor‘ object has no attribute ‘backword‘
- [Solved] AttributeError: ‘HTMLWriter‘ object has no attribute ‘_temp_names‘
- [Solved] AttributeError: ‘Manager‘ object has no attribute ‘get_by_natural_key‘