Office365-rest-python-client: 在 2.1.10 中找不到 FederatedSAML.xml

创建于 2020-06-23  ·  7评论  ·  资料来源: vgrem/Office365-REST-Python-Client

我尝试版本 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"]
    }

我认为这里需要进入目录“提供者/模板”

所有7条评论

感谢您的捕捉,正是如此,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.pyUserCredential.py /office365/runtime/auth/而不是clientCredential.py

@liuliqiu请查看 v2.1.10.2

@liuliqiu请查看 v2.1.10.2

没关系,谢谢!

此页面是否有帮助?
0 / 5 - 0 等级