[python-ldap] Issues installing py-ldap2

McCann, Brian bmccann at andmore.com
Fri Nov 11 17:59:26 CET 2011


Ok...my ignorance with easy_install is coming out here.  I ran the easy_install line myself and took out the "-q", and I now see it downloading a package from pypi.  Not totally sure WHY, but that's what it's doing.  I think that's my problem, since the Makefile on FreeBSD sets-up setup.cfg with the correct include paths...

--Brian

-----Original Message-----
From: python-ldap-bounces+bmccann=andmore.com at python.org [mailto:python-ldap-bounces+bmccann=andmore.com at python.org] On Behalf Of McCann, Brian
Sent: Friday, November 11, 2011 11:46 AM
To: Christopher Dukes
Cc: python-ldap at python.org
Subject: Re: [python-ldap] Issues installing py-ldap2

The command I ran was "pkg_add py27-ldap2-2.4.3.tbz".  I ran it again with more verbose output...here's what it does.

---Start---
# pkg_add -v py27-ldap2-2.4.3.tbz
Requested space: 600708 bytes, free space: 295809024 bytes in /var/tmp/instmp.8IEBP1
pkg_add: package ss_vpnclient.6.2-RELEASE-p7-08021918 has no origin recorded
Package 'py27-ldap2-2.4.3' depends on 'openldap-client-2.4.26' with 'net/openldap24-client' origin.
 - already installed.
Package 'py27-ldap2-2.4.3' depends on 'python27-2.7.2_2' with 'lang/python27' origin.
 - already installed.
Package 'py27-ldap2-2.4.3' depends on 'py27-setuptools-0.6c11_1' with 'devel/py-setuptools' origin.
 - already installed.
Package 'py27-ldap2-2.4.3' depends on 'py27-asn1-0.0.13,1' with 'devel/py-asn1' origin.
 - already installed.
Package 'py27-ldap2-2.4.3' depends on 'py27-asn1-modules-0.0.1a' with 'devel/py-asn1-modules' origin.
 - already installed.
extract: Package name is py27-ldap2-2.4.3
extract: CWD to /usr/local
extract: /usr/local/share/licenses/py27-ldap2-2.4.3/catalog.mk
extract: /usr/local/share/licenses/py27-ldap2-2.4.3/LICENSE
extract: /usr/local/share/licenses/py27-ldap2-2.4.3/PSFL
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/EGG-INFO/PKG-INFO
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/EGG-INFO/SOURCES.txt
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/EGG-INFO/dependency_links.txt
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/EGG-INFO/native_libs.txt
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/EGG-INFO/not-zip-safe
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/EGG-INFO/requires.txt
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/EGG-INFO/top_level.txt
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/_ldap.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/_ldap.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/_ldap.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/_ldap.so
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/dsml.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/dsml.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/dsml.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/__init__.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/__init__.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/__init__.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/async.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/async.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/async.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/cidict.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/cidict.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/cidict.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/__init__.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/__init__.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/__init__.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/libldap.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/libldap.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/libldap.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/ppolicy.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/ppolicy.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/ppolicy.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/psearch.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/psearch.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/psearch.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/readentry.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/readentry.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/readentry.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/sessiontrack.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/sessiontrack.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/sessiontrack.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/simple.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/simple.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/controls/simple.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/dn.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/dn.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/dn.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/extop/__init__.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/extop/__init__.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/extop/__init__.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/extop/dds.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/extop/dds.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/extop/dds.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/filter.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/filter.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/filter.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/functions.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/functions.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/functions.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/ldapobject.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/ldapobject.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/ldapobject.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/logger.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/logger.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/logger.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/modlist.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/modlist.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/modlist.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/resiter.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/resiter.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/resiter.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/sasl.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/sasl.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/sasl.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/__init__.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/__init__.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/__init__.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/models.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/models.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/models.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/subentry.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/subentry.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/subentry.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/tokenizer.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/tokenizer.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldap/schema/tokenizer.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldapurl.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldapurl.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldapurl.pyo
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldif.py
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldif.pyc
extract: /usr/local/lib/python2.7/site-packages/python_ldap-2.4.3-py2.7-freebsd-6.2-RELEASE-i386.egg/ldif.pyo
extract: CWD to /usr/local
extract: execute '/usr/bin/env PYTHONPATH=/usr/local/lib/python2.7/site-packages  /usr/local/bin/easy_install-2.7 -q -N -S /usr/local/lib/python2.7/site-packages  -d /usr/local/lib/python2.7/site-packages  -s /usr/local/bin  python-ldap==2.4.3'
---End---

After that execute line is where the previous paste comes in...so you could say easy_install is the program "causing" the error.

I'm installing this package from a local file, not a remote repo or anything.  I SCP'd the file from the machine I built the package on to the target machine.

Something else that confuses me is why is easy_install even trying to compile anything at all.  Based on the files the package extracted, it doesn't have any C code, nor can I even locate these "Modules/errors.h" etc files after I run pkg_add.  I would THINK if easy_install was fetching them on its own from the Internet, it would say so in its output.

Thanks
--Brian

-----Original Message-----
From: Christopher Dukes [mailto:chris.dukes.aix at gmail.com]
Sent: Friday, November 11, 2011 11:29 AM
To: McCann, Brian
Cc: python-ldap at python.org
Subject: Re: [python-ldap] Issues installing py-ldap2

On Fri, 2011-11-11 at 10:57 -0500, McCann, Brian wrote:
> Hi all.  I've spent a few hours trying to figure this out and it's driving me nutty.
>
> I have one FreeBSD "ports" machine I build packages on, then install those packages on all my various servers (of the same OS version.  In this case, FreeBSD 6.2)  On that machine, I've built and packaged py-ldap2 without issue.  When I try to install that package on another machine, it fails.  Here's the output of the pkg_add (story continues after output):

You clipped off what you ran to give all the error output of "Hey I
can't find some really critical files."  The command you ran to produce
the error messages is more important than the error messages.

[SNEEP of long crap indicating files not found]

Anyways this isn't a python-ldap question so much as "How do I
effectively distribute Ports on FreeBSD"

Read the "pkg_add" manpage, drop down to the Environment section.  Note
the environment variables "PKG_PATH", "PACKAGEROOT", and "PACKAGESITE".

For the clients installing packages you built... set those environment
variables appropriately, and use 'pkg_add -r', or use portmaster with
the appropriate options to use the remote or "local" repositories.  If
you need further assistance, seek abuse on the appropriate FreeBSD
mailing list.


> What's driving me bonkers and what I THINK is the cause of the problem is the "include_dirs: /opt/openldap-RE24/include /usr/include/sasl" and "library_dirs: /opt/openldap-RE24/lib".  Those are just wrong.  When I build the package, it uses "include_dirs: /usr/local/include /usr/include/sasl" and "library_dirs: /usr/local/lib".  Those directories will get the installer to actually find the missing lber.h, etc.  I un-tarballed the tbz file and grep'd through all the files looking for "RE24", and couldn't find where it's getting that include path from.
>
> Can someone please point me in the right direction here?
>
> Thanks,
> --Brian
> _______________________________________________
> python-ldap mailing list
> python-ldap at python.org
> http://mail.python.org/mailman/listinfo/python-ldap


_______________________________________________
python-ldap mailing list
python-ldap at python.org
http://mail.python.org/mailman/listinfo/python-ldap


More information about the python-ldap mailing list