Skip to content

TypeError: catching classes that do not inherit from BaseException is not allowed #1819

Closed
@w5688414

Description

python 3.8 使用C++的方式部署,然后用httpclient报错:

time to cost :0.007140398025512695 seconds
Exception ignored in: <function HttpClient.__del__ at 0x7fb8fb38f0d0>
Traceback (most recent call last):
  File "/root/anaconda3/envs/d2l/lib/python3.8/site-packages/paddle_serving_client/httpclient.py", line 583, in __del__
  File "/root/anaconda3/envs/d2l/lib/python3.8/site-packages/requests/sessions.py", line 737, in close
  File "/root/anaconda3/envs/d2l/lib/python3.8/site-packages/requests/adapters.py", line 326, in close
  File "/root/anaconda3/envs/d2l/lib/python3.8/site-packages/urllib3/poolmanager.py", line 223, in clear
  File "/root/anaconda3/envs/d2l/lib/python3.8/site-packages/urllib3/_collections.py", line 100, in clear
  File "/root/anaconda3/envs/d2l/lib/python3.8/site-packages/urllib3/poolmanager.py", line 174, in <lambda>
  File "/root/anaconda3/envs/d2l/lib/python3.8/site-packages/urllib3/connectionpool.py", line 498, in close
TypeError: catching classes that do not inherit from BaseException is not allowed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions