I'm trying to use the Smart-Map plugin in QGIS to do Kriging. I have about 15,300 data points and I need to sample the data (5,000 points, maximum for Smart-Map right now). But this error appears when trying to sample.

Any idea why? (all data certainly float).

An error has occurred while executing Python code: 

NameError: name 'float32' is not defined 
Traceback (most recent call last):
  File "C:\Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Smart_Map\Smart_Map.py", line 1640, in pushButton_ImportQGIS_clicked
    self.df = self.resampling_of_points(self.df)
  File "C:\Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Smart_Map\Smart_Map.py", line 1130, in resampling_of_points
    features_dense = np.array( features_dense, dtype=float32 )
NameError: name 'float32' is not defined

Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
QGIS version: 3.28.3-Firenze Firenze, c12bcb2f76c

1 Answer 1


welcome to the GIS StackExchange.

Do you have any programming knowledge or are you just a Smart-Map user? I faced the same issue months ago and If you have programming knowledge, open the Smart-Map.py file and import numpy.float32 type at the top of the imports

from numpy import float32

It was worked for me. However, if you cannot do this by yourself, I strongly recommend you to open an issue on the Smart-Map GitHub issue page. Below you'll find the link.

Smart Map issues GitHub page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.