• <i id='ZuAGi'><tr id='ZuAGi'><dt id='ZuAGi'><q id='ZuAGi'><span id='ZuAGi'><b id='ZuAGi'><form id='ZuAGi'><ins id='ZuAGi'></ins><ul id='ZuAGi'></ul><sub id='ZuAGi'></sub></form><legend id='ZuAGi'></legend><bdo id='ZuAGi'><pre id='ZuAGi'><center id='ZuAGi'></center></pre></bdo></b><th id='ZuAGi'></th></span></q></dt></tr></i><div id='ZuAGi'><tfoot id='ZuAGi'></tfoot><dl id='ZuAGi'><fieldset id='ZuAGi'></fieldset></dl></div>
      <bdo id='ZuAGi'></bdo><ul id='ZuAGi'></ul>

    <legend id='ZuAGi'><style id='ZuAGi'><dir id='ZuAGi'><q id='ZuAGi'></q></dir></style></legend>
    1. <small id='ZuAGi'></small><noframes id='ZuAGi'>

      <tfoot id='ZuAGi'></tfoot>

        Python-ldap set_option 不适用于优胜美地

        Python-ldap set_option not working on Yosemite(Python-ldap set_option 不适用于优胜美地)

        <small id='2bRn2'></small><noframes id='2bRn2'>

              <bdo id='2bRn2'></bdo><ul id='2bRn2'></ul>
              <i id='2bRn2'><tr id='2bRn2'><dt id='2bRn2'><q id='2bRn2'><span id='2bRn2'><b id='2bRn2'><form id='2bRn2'><ins id='2bRn2'></ins><ul id='2bRn2'></ul><sub id='2bRn2'></sub></form><legend id='2bRn2'></legend><bdo id='2bRn2'><pre id='2bRn2'><center id='2bRn2'></center></pre></bdo></b><th id='2bRn2'></th></span></q></dt></tr></i><div id='2bRn2'><tfoot id='2bRn2'></tfoot><dl id='2bRn2'><fieldset id='2bRn2'></fieldset></dl></div>

                <tbody id='2bRn2'></tbody>
              <legend id='2bRn2'><style id='2bRn2'><dir id='2bRn2'><q id='2bRn2'></q></dir></style></legend><tfoot id='2bRn2'></tfoot>

                1. 本文介绍了Python-ldap set_option 不适用于优胜美地的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们已经成功安装了 python-ldap(2.4.19) 模块并成功执行了大部分操作.但是当我们尝试加载证书以使用 ssl (ldaps) 时,ldap.set_option 总是返回异常.

                  We've installed the python-ldap(2.4.19) module without errors and perform most of the operations successfully. However ldap.set_option always returns a exception when we try to load certificates to use ssl (ldaps).

                  它会出现在运行 Yosemite 的笔记本上,但不会出现在 Mavericks 或 Linux 上.(所有 Macbook 都安装了 xcode)

                  It occurs on notebooks running Yosemite but not on Mavericks or Linux. (All Macbooks have xcode installed)

                  我们认为它应该是一些丢失/过时/更新的库,但我们不知道如何找到它.

                  We think it should be some missing/outdated/updated lib but we don't know how to find it.

                  有什么线索吗?

                  $python
                  Python 2.7.6 (default, Sep  9 2014, 15:04:36)
                  ...
                  >>>import ldap
                  >>>ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, '/my_path/my_cert.crt')
                  Traceback (most recent call last):
                   File "<stdin>", line 1, in <module>
                   File "/*xxx*/python2.7/site-packages/ldap/functions.py", line 133, in set_option
                     return _ldap_function_call(None,_ldap.set_option,option,invalue)
                   File "/*xxx*/python2.7/site-packages/ldap/functions.py", line 64, in _ldap_function_call
                     result = func(*args,**kwargs)
                  ValueError: option error
                  

                  推荐答案

                  通过安装openldap throw brew,然后手动下载tarball,和mod setup.cfg 来选择/usr/local,然后安装.

                  got around this by installing openldap threw brew, and then manually downloading the tarball, and mod setup.cfg to pick up /usr/local, and then install.

                  http://sourceforge.net/p/python-ldap/bugs/65/ 是将/usr/local 添加到 python-ldap 上的默认值的票证.

                  http://sourceforge.net/p/python-ldap/bugs/65/ is the ticket to add /usr/local to the defaults on python-ldap.

                  这篇关于Python-ldap set_option 不适用于优胜美地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pythonic and efficient way of finding adjacent cells in grid(在网格中查找相邻单元格的 Pythonic 和有效方法)
                  map a hexagonal grid in matplotlib(在 matplotlib 中映射六边形网格)
                  Execute arbitrary python code remotely - can it be done?(远程执行任意 python 代码 - 可以吗?)
                  Python - Plotting colored grid based on values(Python - 根据值绘制彩色网格)
                  Is there a GUI design app for the Tkinter / grid geometry?(是否有 Tkinter/网格几何图形的 GUI 设计应用程序?)
                  tkinter Canvas Scrollbar with Grid?(带有网格的 tkinter 画布滚动条?)

                  <legend id='MePYK'><style id='MePYK'><dir id='MePYK'><q id='MePYK'></q></dir></style></legend>
                  <i id='MePYK'><tr id='MePYK'><dt id='MePYK'><q id='MePYK'><span id='MePYK'><b id='MePYK'><form id='MePYK'><ins id='MePYK'></ins><ul id='MePYK'></ul><sub id='MePYK'></sub></form><legend id='MePYK'></legend><bdo id='MePYK'><pre id='MePYK'><center id='MePYK'></center></pre></bdo></b><th id='MePYK'></th></span></q></dt></tr></i><div id='MePYK'><tfoot id='MePYK'></tfoot><dl id='MePYK'><fieldset id='MePYK'></fieldset></dl></div>

                        <tbody id='MePYK'></tbody>

                      • <tfoot id='MePYK'></tfoot>

                          <small id='MePYK'></small><noframes id='MePYK'>

                          • <bdo id='MePYK'></bdo><ul id='MePYK'></ul>