Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-25-2008, 03:17 PM
|
#1
|
|
Member
Registered: Apr 2005
Location: Between Colombia and Germany
Distribution: Slackware Current
Posts: 78
Rep:
|
Issues Building Python-ldap
Hi Guys!
Im using Slackware current. Im trying to build python-ldap ( http://python-ldap.sourceforge.net/) but Im having issues building it.
I have the openldap-client-2.3.38 package installed and it seems to be the only dependency i need to compile.
While bulding i get:
Code:
root@parsiphae:~/python-ldap-2.3.1/python setup.py build
extra_compile_args:
extra_objects:
include_dirs: /usr/local/openldap-2.3/include /usr/include/sasl
library_dirs: /usr/local/openldap-2.3/lib
libs: ldap_r lber sasl2 ssl crypto
running build
running build_py
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
creating build
creating build/lib.linux-i686-2.5
copying Lib/ldapurl.py -> build/lib.linux-i686-2.5
copying Lib/ldif.py -> build/lib.linux-i686-2.5
copying Lib/dsml.py -> build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/ldap
copying Lib/ldap/__init__.py -> build/lib.linux-i686-2.5/ldap
copying Lib/ldap/async.py -> build/lib.linux-i686-2.5/ldap
copying Lib/ldap/controls.py -> build/lib.linux-i686-2.5/ldap
copying Lib/ldap/cidict.py -> build/lib.linux-i686-2.5/ldap
copying Lib/ldap/dn.py -> build/lib.linux-i686-2.5/ldap
copying Lib/ldap/filter.py -> build/lib.linux-i686-2.5/ldap
copying Lib/ldap/functions.py -> build/lib.linux-i686-2.5/ldap
copying Lib/ldap/ldapobject.py -> build/lib.linux-i686-2.5/ldap
copying Lib/ldap/modlist.py -> build/lib.linux-i686-2.5/ldap
copying Lib/ldap/sasl.py -> build/lib.linux-i686-2.5/ldap
creating build/lib.linux-i686-2.5/ldap/schema
copying Lib/ldap/schema/__init__.py -> build/lib.linux-i686-2.5/ldap/schema
copying Lib/ldap/schema/models.py -> build/lib.linux-i686-2.5/ldap/schema
copying Lib/ldap/schema/subentry.py -> build/lib.linux-i686-2.5/ldap/schema
copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-i686-2.5/ldap/schema
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
running egg_info
creating Lib/python_ldap.egg-info
writing requirements to Lib/python_ldap.egg-info/requires.txt
writing Lib/python_ldap.egg-info/PKG-INFO
writing top-level names to Lib/python_ldap.egg-info/top_level.txt
writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
running build_ext
building '_ldap' extension
Traceback (most recent call last):
File "setup.py", line 140, in <module>
**kwargs
File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/distutils/command/build.py", line 112, in run
self.run_command(cmd_name)
File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/build_ext.py", line 46, in run
_build_ext.run(self)
File "/usr/lib/python2.5/distutils/command/build_ext.py", line 290, in run
self.build_extensions()
File "/usr/lib/python2.5/site-packages/Pyrex/Distutils/build_ext.py", line 82, in build_extensions
self.build_extension(ext)
File "/usr/lib/python2.5/site-packages/setuptools/command/build_ext.py", line 175, in build_extension
_build_ext.build_extension(self,ext)
File "/usr/lib/python2.5/distutils/command/build_ext.py", line 453, in build_extension
sources = self.swig_sources(sources, ext)
File "/usr/lib/python2.5/site-packages/setuptools/command/build_ext.py", line 77, in swig_sources
sources = _build_ext.swig_sources(self, sources) or sources
TypeError: swig_sources() takes exactly 3 arguments (2 given)
This warnings:
Code:
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
Are fine, i read the FAQ and they seem to be ok ( http://python-ldap.sourceforge.net/faq.shtml question number 6.)
Other than that i havent found any information on what could be my problem or what i can do to solve this issue.
Can someone please help me out here or maybe point me into the right direction?
Many Thanks!
*Edit: Im trying to build python-ldap 2.3.1
Last edited by Pratt; 01-25-2008 at 03:22 PM.
|
|
|
|
01-25-2008, 03:24 PM
|
#2
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,685
Rep: 
|
Look at the slacky.eu SlackBuild script to find out how you should build this:
python-ldap.SlackBuild
Eric
|
|
|
|
01-25-2008, 03:42 PM
|
#3
|
|
Member
Registered: Apr 2005
Location: Between Colombia and Germany
Distribution: Slackware Current
Posts: 78
Original Poster
Rep:
|
Hi!
I Tried out that Slackbuild. First of all i added a "set -e" on top of the script to be able to see the errors, and also redownloaded the source file.
Sadly i got almost the same result
Code:
+----------------------------------+
| Start SlackBuild python-ldap-2.3.1 |
+----------------------------------+
extra_compile_args:
extra_objects:
include_dirs: /usr/local/openldap-2.3/include /usr/include/sasl
library_dirs: /usr/local/openldap-2.3/lib
libs: ldap_r lber sasl2 ssl crypto
running build
running build_py
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
running egg_info
writing requirements to Lib/python_ldap.egg-info/requires.txt
writing Lib/python_ldap.egg-info/PKG-INFO
writing top-level names to Lib/python_ldap.egg-info/top_level.txt
writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
running build_ext
building '_ldap' extension
Traceback (most recent call last):
File "setup.py", line 140, in <module>
**kwargs
File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/distutils/command/build.py", line 112, in run
self.run_command(cmd_name)
File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/build_ext.py", line 46, in run
_build_ext.run(self)
File "/usr/lib/python2.5/distutils/command/build_ext.py", line 290, in run
self.build_extensions()
File "/usr/lib/python2.5/site-packages/Pyrex/Distutils/build_ext.py", line 82, in build_extensions
self.build_extension(ext)
File "/usr/lib/python2.5/site-packages/setuptools/command/build_ext.py", line 175, in build_extension
_build_ext.build_extension(self,ext)
File "/usr/lib/python2.5/distutils/command/build_ext.py", line 453, in build_extension
sources = self.swig_sources(sources, ext)
File "/usr/lib/python2.5/site-packages/setuptools/command/build_ext.py", line 77, in swig_sources
sources = _build_ext.swig_sources(self, sources) or sources
TypeError: swig_sources() takes exactly 3 arguments (2 given)
Im really clueless on what it could be 
Last edited by Pratt; 01-25-2008 at 03:44 PM.
|
|
|
|
01-27-2008, 08:47 AM
|
#4
|
|
Member
Registered: Apr 2005
Location: Between Colombia and Germany
Distribution: Slackware Current
Posts: 78
Original Poster
Rep:
|
Any Ideas?

|
|
|
|
01-27-2008, 10:13 AM
|
#5
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,685
Rep: 
|
I ran that SlackBuild on a fresh install of the latest slackware-current, and I see nothing wrong. I get a package in the end.
BTW the python-ldap FAQ states that these warnings during compilation:
Quote:
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
|
can be ignored. Those were all the warnings I got when compiling the package. I installed no other software prior to building.
Something must be wrong on your computer.
Eric
|
|
|
|
07-24-2008, 04:45 PM
|
#6
|
|
LQ Newbie
Registered: Jul 2008
Posts: 1
Rep:
|
You most likely need to upgrade to a newer version of setuptools.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:07 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|