[redland-dev] [Redland Language Bindings 0000442]: Fatal Python error: Interpreter not initialized (version mismatch?) Abort trap while doing "import RDF"

Mantis Bug Tracker mantis-bug-sender at librdf.org
Wed May 4 21:07:43 CEST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=442 
====================================================================== 
Reported By:                daniel
Assigned To:                
====================================================================== 
Project:                    Redland Language Bindings
Issue ID:                   442
Category:                   installation
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Binding Language (java, perl, php, python, ruby, tcl): python 
====================================================================== 
Date Submitted:             2011-05-04 19:07
Last Modified:              2011-05-04 19:07
====================================================================== 
Summary:                    Fatal Python error: Interpreter not initialized
(version mismatch?) Abort trap while doing "import RDF"
Description: 
I use python 2.7 installed with homebrew but I can't get the redland-bindings to
install properly:

The complete output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-apple-darwin10.7.0
checking host system type... x86_64-apple-darwin10.7.0
checking whether build environment is sane... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) is GNU
ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to reload
object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld)
supports shared libraries... yes
checking dynamic linker characteristics... darwin10.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gnutar... gnutar
checking for lua... no
checking for python... python
checking for perl... perl
checking for php... php
checking for ruby... ruby
checking for swig... swig
checking for pkg-config... pkg-config
checking SWIG support... 1.3.31 - OK
checking Enable LUA API... no
checking for php-config... php-config
checking PHP Linking... compile '-fno-common' link '-bundle -flat_namespace
-undefined suppress' suffix bundle
checking Enable Perl API... no
checking Enable Python API... yes 2.7
checking Python includes... -I/Volumes/SSD/daniel/virtualenv/include/python2.7
checking Python libs...
/Volumes/SSD/daniel/virtualenv/lib/python2.7/site-packages
checking Python LDFLAGS... guessed flags: -Wl,-F. -Wl,-F. -bundle
checking Python shared library file extension... .so
checking Ruby installation dir...
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8 from
Config::CONFIG rubylibdir
checking Ruby arch installation dir...
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0
from Config::CONFIG archdir
checking Enable PHP API... no
checking Enable Ruby API... no
checking for redland... 1.0.13
checking if redland was built with raptor2... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bindings.rdf
config.status: creating docs/Makefile
config.status: creating perl/Makefile
config.status: creating perl/t/Makefile
config.status: creating perl/lib/Makefile
config.status: creating perl/lib/RDF/Makefile
config.status: creating perl/lib/RDF/Redland/Makefile
config.status: creating lua/Makefile
config.status: creating php/Makefile
config.status: creating python/Makefile
config.status: creating python/test/Makefile
config.status: creating ruby/Makefile
config.status: creating ruby/test/Makefile
config.status: creating ruby/lib/Makefile
config.status: creating ruby/lib/rdf/Makefile
config.status: creating ruby/lib/rdf/redland/Makefile
config.status: creating ruby/lib/rdf/redland/schemas/Makefile
config.status: creating data/Makefile
config.status: creating redland-bindings.spec
config.status: creating perl/lib/RDF/Redland.pm
config.status: creating bindings_config.h
config.status: bindings_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Redland build summary:
  Redland:              1.0.13
  Language APIs built:    python

make  all-recursive
Making all in python
Making all in test
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-am'.
Making all in data
make[2]: Nothing to be done for `all'.
Making check in python
Making check in test
make[2]: Nothing to be done for `check'.
make  check-local
PYTHONPATH=. \
	  python ./redlandtest.py
Fatal Python error: Interpreter not initialized (version mismatch?)
make[3]: *** [unittest-python] Abort trap
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1

Steps to Reproduce: 
./configure --with-python && make && make check

Additional Information: 
This issue looks a lot like the linking problems in #389
(http://bugs.librdf.org/mantis/view.php?id=389) to me. I tried various
combination of LD parameters but I can't get it to work.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-04 19:07 daniel         New Issue                                    
======================================================================



More information about the redland-dev mailing list