This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Error: "AttributeError: module 'numpy' has no attribute 'bool'"
Running a Python script containing Alteryx.read() method to read in the incoming data set returns the following error if there is a boolean data type:
AttributeError: module 'numpy' has no attribute 'bool'
Version > 1.23
Example of the full error as seen from the engine log file:
There have been some changes to NumPy version 1.24.0 onwards and np.bool has been deprecated. As such, it is not compatible with the Alteryx package in the Python tool.
NumPy version 1.19.1 is pre-installed with Python tool. If you have upgraded the NumPy version to 1.24.0 and above but if you do not need to use this version, please downgrade the version to a lower version than 1.24.0. The minimum version should be version 1.19.1 to ensure compatibility.