如何修复“ RuntimeError:implement_array_function方法已具有文档字符串”?

时间:2019-07-13 16:48:11

标签: python-3.x pandas numpy ubuntu uwsgi

我正在使用uWSGI + Flask构建我的网站。但是我在运行时遇到了一个错误。

这是uWSGI的日志:

*** Starting uWSGI 2.0.18 (64bit) on [Sun Jul 14 00:41:18 2019] ***
compiled with version: 7.4.0 on 20 June 2019 13:48:14
os: Linux-4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019
nodename: YXIONG
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /home/liulizhi/hpolabeler
detected binary path: /home/liulizhi/.local/bin/uwsgi
chdir() to /home/liulizhi/hpolabeler
your processes number limit is 257279
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 127.0.0.1:12345 fd 3
Python version: 3.6.8 (default, Jan 14 2019, 11:02:34)  [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]
Python main interpreter initialized at 0x55ce128dfc80
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 166688 bytes (162 KB) for 2 cores
*** Operational MODE: threaded ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x55ce128dfc80 pid: 20392 (default app)
mounting application.py:app on /hpolabeler
Traceback (most recent call last):
  File "./application.py", line 5, in <module>
    import pandas as pd
  File "/home/liulizhi/.local/lib/python3.6/site-packages/pandas/__init__.py", line 13, in <module>
    __import__(dependency)
  File "/home/liulizhi/.local/lib/python3.6/site-packages/numpy/__init__.py", line 142, in <module>
    from . import core
  File "/home/liulizhi/.local/lib/python3.6/site-packages/numpy/core/__init__.py", line 40, in <module>
    from . import multiarray
  File "/home/liulizhi/.local/lib/python3.6/site-packages/numpy/core/multiarray.py", line 12, in <module>
    from . import overrides
  File "/home/liulizhi/.local/lib/python3.6/site-packages/numpy/core/overrides.py", line 46, in <module>
    """)
RuntimeError: implement_array_function method already has a docstring
unable to load app 1 (mountpoint='/hpolabeler') (callable not found or import error)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 20392)
spawned uWSGI worker 1 (pid: 20402, cores: 2)
*** Stats server enabled on 127.0.0.1:9191 fd: 9 ***

如何修复“ RuntimeError:implement_array_function方法已具有文档字符串”?我使用numpy-1.16.4和pandas-0.24.2。

我读了很多博客,但我自己无法解决。

0 个答案:

没有答案