Alteryx Designer Desktop Knowledge Base

Definitive answers from Designer Desktop experts.

Error:"AttributeError: module 'numpy' has no attribute 'bool'" is displayed on Alteryx.read() method

clarab
Alteryx
Alteryx
Created

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'
 

Environment Details

 
  • Alteryx Designer
    • Version(s): All
  • NumPy
    • Version >= 1.24

Example of the full error as seen from the engine log file:

image.pngimage.png
 


Cause

 

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.

Excerpt from the Numpy Release notes for version 1.24.0:

image.pngimage.png

 

Resolution

 


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.

 


 

Additional Resources

Comments
mjbarre2
5 - Atom

Hello,

 

Which numpy version should you downgrade to? When trying to downgrade to numpy 1.19.1, other python packages don't work since they require a more updated numpy version.

 

Thanks.