The following are the detailed information:

  1. apache : 2.5.4(win64)
  2. mod_wsgi : 4.9.2
  3. python : 3.10
  4. paddlepaddle-gpu : 2.6.0.post116
  5. paddleOCR : 2.7.0.3
  6. YoloV5:5.7.0
  7. torch:2.0.1+cu117

apache errors:

[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\mytest\\mytest.py", line 10, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     from IDCARD import main\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\mytest\\IDCARD.py", line 2, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     from paddleocr import PaddleOCR\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\paddleocr\\__init__.py", line 14, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     from .paddleocr import *\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\paddleocr\\paddleocr.py", line 21, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     import paddle\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\paddle\\__init__.py", line 28, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     from .base import core  # noqa: F401\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\paddle\\base\\__init__.py", line 39, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     from . import framework\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\paddle\\base\\framework.py", line 37, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     from .. import pir\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\paddle\\pir\\__init__.py", line 37, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     from . import core  # noqa: F401\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\paddle\\pir\\core.py", line 23, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     from ..base import unique_name\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\paddle\\base\\unique_name.py", line 17, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     from .wrapped_decorator import signature_safe_contextmanager\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]   File "D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\paddle\\base\\wrapped_decorator.py", line 17, in <module>\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460]     import decorator\r
[Wed Feb 21 17:19:52.818357 2024] [wsgi:error] [pid 32384:tid 1308] [client ::1:10460] ModuleNotFoundError: No module named 'decorator'\r

Previously, there was a similar import error issue with MarkupSafe, which was resolved by re-downloading Ninja. However, upgrading paddlepaddle did not resolve the issue. I have added WSGIApplicationGroup %{GLOBAL} to the httpd.conf but do not work

ps: I have re-downloaded the packages involved in the previous errors, and those issues are resolved.when I try to import torch, it's giving me an error.

[Thu Feb 22 15:47:11.908299 2024] [wsgi:error] [pid 30800:tid 1260] D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\pkg_resources\\__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.\r
[Thu Feb 22 15:47:11.908299 2024] [wsgi:error] [pid 30800:tid 1260] Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages\r
[Thu Feb 22 15:47:11.908299 2024] [wsgi:error] [pid 30800:tid 1260]   declare_namespace(pkg)\r
[Thu Feb 22 15:47:11.915273 2024] [wsgi:error] [pid 30800:tid 1260] D:\\ProgramData\\Anaconda3\\envs\\rec_ID_gpu\\lib\\site-packages\\pkg_resources\\__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`.\r
[Thu Feb 22 15:47:11.915273 2024] [wsgi:error] [pid 30800:tid 1260] Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages\r
[Thu Feb 22 15:47:11.915273 2024] [wsgi:error] [pid 30800:tid 1260]   declare_namespace(pkg)\r

I have downgraded setuptools to version 67.6.1, but the error still persists, and I'm puzzled why a mere warning would cause a wsgi error.

0

There are 0 best solutions below