python-ldap on CIFS
I am trying to use Python with python-ldap on a CIFS share. While Python works fine the import of ldap fails. Installed Active Python 2.6.2.2. Copied the Python dir to the share. Copied python26.dll pythoncom26.dll pywintypes26.dll to the new Python dir. Uninstalled the local Python! C:\> \\somehost\someshare\python2.6\python.exe ActivePython 2.6.2.2 (ActiveState Software Inc.) based on Python 2.6.2 (r262:71600, Apr 21 2009, 15:05:37) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path.insert(0,) >>> from setuptools.command.easy_install import main >>> main(['setuptools-0.6c9-py2.6.egg']) >>> main(['python_ldap-2.3.8-py2.6-win32.egg']) Everything installed fine but "import ldap" fails! C:\> \\somehost\someshare\python2.6\python.exe >>> import ldap Traceback (most recent call last): File "", line 1, in File "\\somehost\someshare\python2.6\lib\site-packages\python_ldap-2.3.8-py2.6-win32.egg\ldap\__init__ .py", line 22, in from _ldap import * ImportError: DLL load failed: The specified module could not be found. >>> import sys >>> sys.path[2] 'somehost\someshare\\python2.6\\lib\\site-packages\\python_ldap-2.3.8-py2.6-win32.egg' >>> import os >>> os.listdir(sys.path[2]) ['dsml.py', 'dsml.pyc', 'dsml.pyo', 'EGG-INFO', 'ldap', 'ldapurl.py', 'ldapurl.pyc', 'ldapurl.pyo', 'ldif.py', 'ldif.pyc ', 'ldif.pyo', '_ldap.py', '_ldap.pyc', '_ldap.pyd', '_ldap.pyo'] Actually it does not matter if the python2.6 dir is on a CIFS-share or on some other dir like D:\python2.6\. How to fix that Problem? Regards, Per -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Python-LDAP-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
Re: python-ldap on CIFS
Michael Ströder schrieb: > \\somehost\someshare\python2.6\python.exe -v -c "import ldap" File attached! (converted to utf-8 and translated to english) > I'm not too familiar with using Python under Windows. I suspect that there > might also be some registry settings for setting the lib path. It's a bit suspicious because other c-modules like win32api, sqlite3 or ssl import flawlessly. Greets Per python.exe : # installing zipimport hook At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import zipimport # builtin At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # installed zipimport hook At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # \\somehost\someshare\python2.6\lib\site.pyc matches \\somehost\someshare \python2.6\lib\site.py At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import site # precompiled from \\somehost\someshare\python2.6\lib\site.pyc At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # \\somehost\someshare\python2.6\lib\os.pyc matches \\somehost\someshare\p ython2.6\lib\os.py At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import os # precompiled from \\somehost\someshare\python2.6\lib\os.pyc At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import errno # builtin At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import nt # builtin At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # \\somehost\someshare\python2.6\lib\ntpath.pyc matches \\somehost\someshare\python2.6\lib\ntpath.py At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import ntpath # precompiled from \\somehost\someshare\python2.6\lib\ntpath.pyc At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # \\somehost\someshare\python2.6\lib\stat.pyc matches \\somehost\someshare \python2.6\lib\stat.py At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import stat # precompiled from \\somehost\someshare\python2.6\lib\stat.pyc At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # \\somehost\someshare\python2.6\lib\genericpath.pyc matches \\somehost\someshare\python2.6\lib\genericpath.py At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import genericpath # precompiled from \\somehost\someshare\python2.6\lib\genericpath.pyc At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # \\somehost\someshare\python2.6\lib\warnings.pyc matches \\somehost\someshare\python2.6\lib\warnings.py At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import warnings # precompiled from \\somehost\someshare\python2.6\lib\warnings.pyc At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # \\somehost\someshare\python2.6\lib\linecache.pyc matches \\somehost\someshare\python2.6\lib\linecache.py At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import linecache # precompiled from \\somehost\someshare\python2.6\lib\linecache.pyc At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # \\somehost\someshare\python2.6\lib\types.pyc matches \\somehost\someshare\python2.6\lib\types.py At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : import types # precompiled from \\somehost\someshare\python2.6\lib\types.pyc At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : # \\somehost\someshare\python2.6\lib\UserDict.pyc matches \\somehost\someshare\python2.6\lib\UserDict.py At line:1 character:58 + \\somehost\someshare\python2.6\python.exe -v -c "import ldap" 2> import_ldap_log2.txt python.exe : impor
Re: python-ldap on CIFS
Michael Ströder wrote: > Which Win32 build of python-ldap are you using? It seems it requests a > separate DLL. I wrote "main(['python_ldap-2.3.8-py2.6-win32.egg'])" in my first mail. Got that file from http://svn.kmrc.de/download/distribution/contrib/python_ldap-2.3.8-py2.6-win32.egg . (The .egg builds linked from http://python-ldap.org/download.shtml .) The pypi exe-installers does not seem to have a silent install option... Per -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Python-LDAP-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
