lxulxu / pdf-to-markdown

通过paddle ocr实现pdf转markdown
GNU General Public License v3.0
55 stars 12 forks source link

运行时报错 #1

Closed ILearn-better closed 1 year ago

ILearn-better commented 1 year ago
module 'numpy' has no attribute 'int'.
`np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not mod
ify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you
 wish to review your current use, check the release note link for additional information.
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

我的pip list

astor                 0.8.1
attrdict              2.0.1
attrs                 23.1.0
Babel                 2.12.1
bce-python-sdk        0.8.83
beautifulsoup4        4.12.2
blinker               1.6.2
boto3                 1.26.165
botocore              1.29.165
bottle                0.12.25
cachetools            5.3.1
certifi               2023.5.7
charset-normalizer    3.1.0
click                 8.1.3
colorama              0.4.6
common                0.1.2
contourpy             1.1.0
cssselect             1.2.0
cssutils              2.7.1
cycler                0.11.0
Cython                0.29.35
data                  0.4
decorator             5.1.1
dual                  0.1.0
dynamo3               0.4.10
et-xmlfile            1.1.0
fire                  0.5.0
Flask                 2.3.2
flask-babel           3.1.0
flywheel              0.5.4
fonttools             4.40.0
funcsigs              1.0.2
future                0.18.3
idna                  3.4
imageio               2.31.1
imgaug                0.4.0
itsdangerous          2.1.2
Jinja2                3.1.2
jmespath              1.0.1
jsonschema            4.17.3
kiwisolver            1.4.4
lanms-neo             1.0.2
lazy_loader           0.3
lmdb                  1.4.1
lxml                  4.9.2
MarkupSafe            2.1.3
matplotlib            3.7.1
mdutils               1.4.0
networkx              3.1
numpy                 1.25.0
opencv-contrib-python 4.6.0.66
opencv-python         4.6.0.66
openpyxl              3.1.2
opt-einsum            3.3.0
packaging             23.1
paddle                1.0.2
paddle-bfloat         0.1.7
paddleocr             2.6.1.0
paddlepaddle          2.4.2
pandas                1.5.1
pdf2docx              0.5.6
peewee                3.16.2
Pillow                10.0.0
pip                   23.1.2
Polygon3              3.0.9.1
premailer             3.10.0
protobuf              3.20.0
prox                  0.0.17
psutil                5.9.5
pyclipper             1.3.0.post4
pycryptodome          3.18.0
PyMuPDF               1.19.0
pyparsing             3.1.0
PyPDF2                3.0.1
pyproject-toml        0.0.11
pyrsistent            0.19.3
PySocks               1.7.1
python-dateutil       2.8.2
python-docx           0.8.11
python-geoip-python3  1.3
pytz                  2023.3
PyWavelets            1.4.1
PyYAML                6.0
rapidfuzz             3.1.1
rarfile               4.0
requests              2.31.0
s3transfer            0.6.1
scikit-image          0.21.0
scipy                 1.11.1
setuptools            67.8.0
shapely               2.0.1
six                   1.16.0
soupsieve             2.4.1
termcolor             2.3.0
tifffile              2023.4.12
tight                 0.1.0
toml                  0.10.2
tqdm                  4.65.0
tzdata                2023.3
urllib3               1.26.16
visualdl              2.5.3
Werkzeug              2.3.6
wheel                 0.40.0
ILearn-better commented 1 year ago

您好,可以发一下pip list吗?

lxulxu commented 1 year ago

我搜索了一下,参考 https://stackoverflow.com/questions/74893742/how-to-solve-attributeerror-module-numpy-has-no-attribute-bool ,问题可能是numpy版本不对,我的是版本是1.23.5,建议通过pipenv或conda减少冲突,希望可以解决问题。