我尝试版本 2.1.10,引发异常
[Errno 2] No such file or directory: '.../runtime/auth/providers/templates/FederatedSAML.xml'
我在 setup.py 中找到
package_data={
'office365': ["runtime/auth/SAML.xml", "runtime/auth/RST2.xml", "runtime/auth/FederatedSAML.xml"]
}
我认为这里需要进入目录“提供者/模板”
感谢您的捕捉,正是如此,PR已合并。
@vgrem何时可以发布此更正? 你可以做一个小版本来纠正这个问题吗?
@Simplici ,给你: version 2.1.10.1
@Simplici更新包也在 pypi 中https://pypi.org/project/office365-rest-client/
@Simplici更新包也在 pypi 中https://pypi.org/project/office365-rest-client/
office365-rest-client==2.1.10.1 将引发异常
>>> from office365.runtime.auth.authentication_context import AuthenticationContext
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/liuliqiu/.pyenv/versions/test/lib/python3.8/site-packages/office365/runtime/auth/authentication_context.py", line 1, in <module>
from office365.runtime.auth.clientCredential import ClientCredential
ModuleNotFoundError: No module named 'office365.runtime.auth.clientCredential'
我在目录/office365/runtime/auth/
下找到文件ClientCredential.py
和UserCredential.py
/office365/runtime/auth/
而不是clientCredential.py
@liuliqiu请查看 v2.1.10.2
@liuliqiu请查看 v2.1.10.2
没关系,谢谢!