-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module 'numpy' has no attribute 'float' #139
Comments
This happens because numpy removed support for |
Similar to @ratoci's issue: I am getting the following error:
` OS: MacOS Sonoma 14.2.1 Should we use PR #141 for temporary fix or move to the permanent solution? |
We upgraded cython, which no longer uses this attribute when building the extension. This works with the latest available 1.x version of numpy |
I get a frequent error in many modules,
I’m using Mac OS version with python 3.10 and all the required extension installed and library compiled. Here’s the error message:
File "/usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/init.py", line 1921, in call
return self.func(*args)
File "/Users/ratox/Dropbox/Script/sms-tools-master/software/models_interface/hpsModel_GUI_frame.py", line 198, in compute_model
hpsModel_function.main(inputFile, window, M, N, t, minSineDur, nH, minf0, maxf0, f0et, harmDevSlope, stocf)
File "/Users/ratox/Dropbox/Script/sms-tools-master/software/models_interface/hpsModel_function.py", line 37, in main
hfreq, hmag, hphase, stocEnv = HPS.hpsModelAnal(x, fs, w, N, H, t, nH, minf0, maxf0, f0et, harmDevSlope, minSineDur, Ns, stocf)
File "/Users/ratox/Dropbox/Script/sms-tools-master/software/models_interface/../models/hpsModel.py", line 27, in hpsModelAnal
hfreq, hmag, hphase = HM.harmonicModelAnal(x, fs, w, N, H, t, nH, minf0, maxf0, f0et, harmDevSlope, minSineDur)
File "/Users/ratox/Dropbox/Script/sms-tools-master/software/models_interface/../models/harmonicModel.py", line 185, in harmonicModelAnal
f0t = UF.f0Twm(ipfreq, ipmag, f0et, minf0, maxf0, f0stable) # find f0
File "/Users/ratox/Dropbox/Script/sms-tools-master/software/models_interface/../models/utilFunctions.py", line 306, in f0Twm
f0, f0error = UF_C.twm(pfreq, pmag, f0cf) # call the TWM function with peak candidates, cython version
File "cutilFunctions.pyx", line 23, in utilFunctions_C.twm (cutilFunctions.c:1466)
File "/usr/local/lib/python3.10/site-packages/numpy/init.py", line 284, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'
The text was updated successfully, but these errors were encountered: