[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Proof of concept higher-level python bindings for SoC project

From: David Glasser <glasser_at_mit.edu>
Date: 2007-05-02 02:15:04 CEST

On 5/1/07, David James <james@cs.toronto.edu> wrote:

> Yup! You can find out the path to the python executable using the
> "PYTHON" config var in distutils.sysconfig. I've patched autogen.py to
> use this flag in r24870, following the example from
> build/get-py-info.py in Subversion trunk.

Unfortunately, this doesn't actually work, because (a) MacPorts
doesn't actually do anything to tell python not to make "python"; it
just deletes it afterward and (b) "PYTHON" can't actually be
controlled by configure anyway. I'm working on a patch for MacPorts
that makes it manually tweak Python's Makefile to set PYTHON to
python2.5, though.

For now I added a hack to autogen.py to make it run python2.5 and
soldiered on, but then I get:

Traceback (most recent call last):
  File "/Users/glasser/Projects/Subversion/ctypes-python-bindings/ctypesgen/wrap.py",
line 334, in <module>
    main(*sys.argv)
  File "/Users/glasser/Projects/Subversion/ctypes-python-bindings/ctypesgen/wrap.py",
line 321, in main
    exclude_symbols=options.exclude_symbols)
  File "/Users/glasser/Projects/Subversion/ctypes-python-bindings/ctypesgen/wrap.py",
line 60, in begin_output
    self.print_preamble()
  File "/Users/glasser/Projects/Subversion/ctypes-python-bindings/ctypesgen/wrap.py",
line 141, in print_preamble
    lib = load_library(library)
  File "/Users/glasser/Projects/Subversion/ctypes-python-bindings/ctypesgen/wrap.py",
line 29, in load_library
    return CDLL(path, mode=mode)
  File "/opt/local/lib/python2.5/ctypes/__init__.py", line 340, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(libapr-1.so, 6): image not found

I note two things:

 (a) Maybe you need to set DYLD_LIBRARY_PATH or
DYLD_FALLBACK_LIBRARY_PATH instead of LD_LIBRARY_PATH on Macs

 (b) More importantly, ld_library_path doesn't actually ever seem to
be set to anything by get_apr_config!

--dave

-- 
David Glasser | glasser_at_mit.edu | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 2 02:15:15 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.