AttributeError: module 'numpy' has no attribute 'getbuffer' #18581
Labels
33 - Question
Question about NumPy usage or development
57 - Close?
Issues which may be closable unless discussion continued
Reproducing code example:
I encountered an error as shown in the title while running this project's demo.bag. There seems to be a problem with NumPy's
numpy.getbuffer()
function. From what I've looked up, NumPy seems to have deprecatedgetbuffer()
since version 1.13.0 of Python 3, so I'm getting this bug in the default Python 3 environment. But how to fix this bug? I haven't found a good alternative togetbuffer()
This is the code for the error in the color_pcl_generator.py file in the project.
Error message:
When I run the source code, the error is:
After I use memoryview(self.ros_data.ravel()) , the error is:
NumPy/Python version information:
1.17.4 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
The text was updated successfully, but these errors were encountered: