You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I need to install AquaCrop in a new Anaconda environment. But the compilation raise several exceptions which all relatived to the CropStructNT_type_sig in entities.crop.py.
How can I prove it?
The exception is: KeyError: "Failed in nopython mode pipeline (step: native lowering)\n<class 'type'>"
I check the raceback:
Compared to the successful compilation (such as HIadj_pre_anthesis.py and check_groundwater_table.py), all of these .py that failed have a common point that numba needs to compile the CropStructNT_type_sig in entities.crop.py.
When I checked the CropStructNT_type_sig, I found that the crop_spec had an update comparing to the older version 2.2.3.
Thanks @NickAlexander18 for flagging this and apologies for slow response. Will look into implementing this over the next couple of weeks as we make some broader updates to the code in response to other recent issues raised
Hello! I need to install AquaCrop in a new Anaconda environment. But the compilation raise several exceptions which all relatived to the CropStructNT_type_sig in entities.crop.py.
How can I prove it?
The exception is: KeyError: "Failed in nopython mode pipeline (step: native lowering)\n<class 'type'>"
I check the raceback:
Compared to the successful compilation (such as HIadj_pre_anthesis.py and check_groundwater_table.py), all of these .py that failed have a common point that numba needs to compile the CropStructNT_type_sig in entities.crop.py.
When I checked the CropStructNT_type_sig, I found that the crop_spec had an update comparing to the older version 2.2.3.
The variable SwitchGDDType is string, while numba can't recognize the string type. See:
https://stackoverflow.com/questions/56463147/how-to-specify-the-string-data-type-when-using-numba
Therefore, I recommand to change the type of the variable SwitchGDDType to int and give instructions of this variable.
The text was updated successfully, but these errors were encountered: