-
Notifications
You must be signed in to change notification settings - Fork 235
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 'asscalar' #176
Comments
听说是numpy新版中移除了这个函数: numpy.asscalar(a) 1.16 版后已移除: 弃用,使用 numpy.ndarray.item() 相反。 |
问题将在下一次更新中修复,你可以使用下面的写法替换 util.py
|
问题已经在0.6.5的更新中修复 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
File "/usr/local/lib/python3.8/dist-packages/ppq-0.6.4-py3.8.egg/ppq/parser/util.py", line 27, in convert_value
value = np.asscalar(value[0])
File "/usr/local/lib/python3.8/dist-packages/numpy/init.py", line 311, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'asscalar'
numpy version 1.23.0
The text was updated successfully, but these errors were encountered: