LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-25-2008, 04:17 PM   #1
Pratt
Member
 
Registered: Apr 2005
Location: Between Colombia and Germany
Distribution: Slackware Current
Posts: 78

Rep: Reputation: 15
Unhappy 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 04:22 PM.
 
Old 01-25-2008, 04:24 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,379

Rep: Reputation: Disabled
Look at the slacky.eu SlackBuild script to find out how you should build this:

python-ldap.SlackBuild

Eric
 
Old 01-25-2008, 04:42 PM   #3
Pratt
Member
 
Registered: Apr 2005
Location: Between Colombia and Germany
Distribution: Slackware Current
Posts: 78

Original Poster
Rep: Reputation: 15
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 04:44 PM.
 
Old 01-27-2008, 09:47 AM   #4
Pratt
Member
 
Registered: Apr 2005
Location: Between Colombia and Germany
Distribution: Slackware Current
Posts: 78

Original Poster
Rep: Reputation: 15
Any Ideas?
 
Old 01-27-2008, 11:13 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,379

Rep: Reputation: Disabled
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
 
Old 07-24-2008, 05:45 PM   #6
cakebread
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
You most likely need to upgrade to a newer version of setuptools.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building GUI's With Python scubanator87 Programming 1 09-21-2007 11:03 AM
Building Python with Tkinter support LinuxBlackBox Programming 14 02-15-2007 11:10 AM
YaST building cache ldap accounts soccertux Suse/Novell 0 03-17-2005 11:03 AM
webmin/ldap issues labratmatt Linux - Software 0 01-17-2005 11:20 PM
building a LDAP server ahshin Linux - Networking 3 09-11-2003 04:06 AM


All times are GMT -5. The time now is 03:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration