007gzs / dingtalk-sdk

钉钉 dingding Python SDK。 DingTalk SDK for Python http://dingtalk-sdk.readthedocs.io/zh_CN/latest/
GNU General Public License v3.0
183 stars 56 forks source link

cannot import name 'AppKeyClient' from 'dingtalk' #10

Closed ghost closed 5 years ago

ghost commented 5 years ago

换了pycharm和vs,本地环境还是线上环境,都是一个问题,一开始还能执行成功,过一会就不行了,开始报错,不知道什么原因? Exception has occurred: ImportError cannot import name 'AppKeyClient' from 'dingtalk' (c:\Users\zuyukun\Desktop\Dingtalk\code\dingtalk.py) File "C:\Users\zuyukun\Desktop\Dingtalk\code\dingtalk.py", line 1, in from dingtalk import AppKeyClient, SecretClient File "C:\Users\zuyukun\Desktop\Dingtalk\code\dingtalk.py", line 1, in from dingtalk import AppKeyClient, SecretClient

007gzs commented 5 years ago

文件名不要用dingtalk.py,和SDK库路径冲突