[pybsddb] installation error due to swig
Ivan Beschastnikh
ivan at cs.washington.edu
Sun Jan 11 23:59:14 CET 2009
Hi all,
I'm attempting to install pybsddb on OSX 10.5.6. I've installed
BerkeleyDB.4.7 from source, and have attempted to install bsddb3-4.7.3
and bsddb3-4.7.2 from source but both fail with the following output
and traceback. The error seems to be swig-related.
Found Berkeley DB 4.7 installation.
include files in /usr/local/BerkeleyDB.4.7/include
library files in /usr/local/BerkeleyDB.4.7/lib
library name is libdb-4.7
running install
running bdist_egg
running egg_info
writing bsddb3.egg-info/PKG-INFO
writing top-level names to bsddb3.egg-info/top_level.txt
writing dependency_links to bsddb3.egg-info/dependency_links.txt
reading manifest file 'bsddb3.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'updatedb.bat'
warning: no files found matching '*.py' under directory 'bsddb3'
warning: no files found matching '*.html' under directory 'docs'
warning: no files found matching '*.css' under directory 'docs'
warning: no files found matching '*.gif' under directory 'docs'
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.txt' under directory 'patches'
warning: no files found matching '*.patch' under directory 'patches'
warning: no files found matching '_bsddb.c' under directory 'extsrc'
warning: no files found matching 'bsddb.h' under directory 'extsrc'
warning: no files found matching '*.py' under directory 'test'
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'docs/tools/docutils'
no previously-included directories found matching 'docs/tools/sphinx'
no previously-included directories found matching 'docs/tools/pygments'
no previously-included directories found matching 'old'
no previously-included directories found matching 'test/db_home'
no previously-included directories found matching 'test/bsddb3'
writing manifest file 'bsddb3.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.5-i386/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-10.5-i386-2.5
creating build/lib.macosx-10.5-i386-2.5/bsddb3
copying Lib/bsddb/__init__.py -> build/lib.macosx-10.5-i386-2.5/bsddb3
copying Lib/bsddb/db.py -> build/lib.macosx-10.5-i386-2.5/bsddb3
copying Lib/bsddb/dbobj.py -> build/lib.macosx-10.5-i386-2.5/bsddb3
copying Lib/bsddb/dbrecio.py -> build/lib.macosx-10.5-i386-2.5/bsddb3
copying Lib/bsddb/dbshelve.py -> build/lib.macosx-10.5-i386-2.5/bsddb3
copying Lib/bsddb/dbtables.py -> build/lib.macosx-10.5-i386-2.5/bsddb3
copying Lib/bsddb/dbutils.py -> build/lib.macosx-10.5-i386-2.5/bsddb3
copying Lib/bsddb/test_support.py -> build/lib.macosx-10.5-i386-2.5/bsddb3
creating build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/__init__.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_all.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_associate.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_basics.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_compare.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_compat.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_cursor_pget_bug.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_dbobj.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_dbshelve.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_dbtables.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_distributed_transactions.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_early_close.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_get_none.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_join.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_lock.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_misc.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_pickle.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_queue.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_recno.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_replication.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_sequence.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
copying Lib/bsddb/test/test_thread.py ->
build/lib.macosx-10.5-i386-2.5/bsddb3/tests
running build_ext
building 'bsddb3._pybsddb' extension
Traceback (most recent call last):
File "setup.py", line 5, in <module>
import setup2
File "/Users/ivan/bsddb3-4.7.2/setup2.py", line 365, in <module>
'Topic :: System :: Clustering',
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py",
line 151, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 974, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install.py",
line 76, in run
self.do_egg_install()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install.py",
line 92, in do_egg_install
self.run_command('bdist_egg')
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_egg.py",
line 174, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_egg.py",
line 161, in call_command
self.run_command(cmdname)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install_lib.py",
line 20, in run
self.build()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/install_lib.py",
line 112, in build
self.run_command('build_ext')
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_ext.py",
line 46, in run
_build_ext.run(self)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build_ext.py",
line 290, in run
self.build_extensions()
File "/Library/Python/2.5/site-packages/Pyrex/Distutils/build_ext.py",
line 82, in build_extensions
self.build_extension(ext)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_ext.py",
line 175, in build_extension
_build_ext.build_extension(self,ext)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/command/build_ext.py",
line 453, in build_extension
sources = self.swig_sources(sources, ext)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/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)
Any help in debugging this would be highly appreciated.
thanks!
ivan.
More information about the pybsddb
mailing list