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
/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/mxnet/numpy/utils.py:36: FutureWarning: In the future `np.bool` will be defined as the corresponding NumPy scalar.
bool = onp.bool
Traceback (most recent call last):
File "/home/vincent/disk/bin/cnocr/test.py", line 1, in <module>
from cnocr import CnOcr
File "/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/cnocr/__init__.py", line 1, in <module>
from .cn_ocr import CnOcr
File "/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/cnocr/cn_ocr.py", line 21, in <module>
import mxnet as mx
File "/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/mxnet/__init__.py", line 31, in <module>
from . import contrib
File "/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/mxnet/contrib/__init__.py", line 30, in <module>
from . import text
File "/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/mxnet/contrib/text/__init__.py", line 23, in <module>
from . import embedding
File "/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/mxnet/contrib/text/embedding.py", line 39, in <module>
from ... import numpy as _mx_np
File "/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/mxnet/numpy/__init__.py", line 28, in <module>
from .utils import * # pylint: disable=wildcard-import
^^^^^^^^^^^^^^^^^^^^
File "/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/mxnet/numpy/utils.py", line 36, in <module>
bool = onp.bool
^^^^^^^^
File "/home/vincent/disk/bin/cnocr/venv/lib/python3.13/site-packages/numpy/__init__.py", line 324, in __getattr__
raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'bool_'?
The text was updated successfully, but these errors were encountered:
venv安装好后,运行出错,之前用3.12运行没问题的,现在重来,需要arch安装python 3.12,再整个pip安装以前仓库里就有的包,不再能用系统3.13的包。希望改变内部numpy的问题,使python 3.13能配合numpy。
The text was updated successfully, but these errors were encountered: