DongTai-SDK-Python icon indicating copy to clipboard operation
DongTai-SDK-Python copied to clipboard

Error: ModuleNotFoundError: No module named 'requests'

Open exexute opened this issue 3 years ago • 0 comments

When i install it and use it with demo:

from dongtai_sdk import DongTai

dongTaiSdk = DongTai("config.json")

project_list = dongTaiSdk.GetProjectList(name='OpenRASP')

print(project_list)

error msg

Traceback (most recent call last):
  File "/Users/shengnanwu/CharmProjects/DemoProject/LoadData.py", line 7, in <module>
    from dongtai_sdk import DongTai
  File "/Users/shengnanwu/CharmProjects/DemoProject/venv/lib/python3.7/site-packages/dongtai_sdk/DongTai.py", line 13, in <module>
    from .DongTaiApi import DongTaiApi
  File "/Users/shengnanwu/CharmProjects/DemoProject/venv/lib/python3.7/site-packages/dongtai_sdk/DongTaiApi.py", line 9, in <module>
    import json,requests
ModuleNotFoundError: No module named 'requests'

exexute avatar Jan 17 '22 07:01 exexute