[reportlab-users] Installing RenderPm on OSX

Robin Becker robin at reportlab.com
Wed Feb 28 11:00:19 EST 2007


Dev Sen wrote:

> Hi,

>

> First posting to this list, so excuse my naivety.

>

> I need to install renderPM for a Plone product I am testing out and it

> doesn¹t seem to be installing correctly. Reportlab is by default installed

> with recent versions of Plone, and I have tested it out and it works great.

>

> I am putting renderPM in a folder called rl_addons, which is at the same

> level as reportlab. I have then run python setup.py install, which seems to

> proceed without issue, yet when I run the testrenderPM script I get an

> error. I am copying the tracebacks. My environment is a MacPro with OSX

> 10.4.8.

>

> Thanks in advance for help.

>

> Dev

>


OK I see a couple of problems going on here. First off I'm seeing mentions of
Python-2.4.4 for the plone stuff and the renderPM build seems to be using
Python-2.5 as the egg info file has py2.5 in it. You can fix that by referencing
the correct python during the build process. Is there a python program inside

dev-sens-computer:/Applications/Plone-2.5.2/Python-2.4.4/bin

if so then you need to use that one to build properly for plone.

Simultaneously something seems to have gone wrong with the actual build. The
reference to _FT_Load_Glyph in _renderPM seems to imply that it's being built
with a copy of freelib2 somewhere around.

I have to say I don't do a lot of OS X hacking even though I bought a rather
expensive core duo macbook last year. I don't know what's going on here.

The setup code is doing this

if os.path.isdir('/usr/local/include/freetype2'):
FT_LIB = ['freetype']
FT_LIB_DIR = ['/usr/local/lib']
FT_MACROS = [('RENDERPM_FT',None)]
FT_INC_DIR = ['/usr/local/include','/usr/local/include/freetype2']

but at runtime the library is probably not being found. I remember the chacking
for freetype is fairly horrible however it's done as there are two distinct
layouts for freetype2, but the compile seems to work and the failure seems to be
at runtime which implies the lib is not being found.


> INSTALLING RENDERPM

> dev-sens-computer:/Applications/Plone-2.5.2/Python-2.4.4/lib/python2.4/site-

> packages/rl_addons/renderPM Orion$ python setup.py install

> running install

> running build

> running build_clib

> building '_renderPM_libart' library

> building '_renderPM_gt1' library

> running build_ext

> running install_lib

> running install_egg_info

> Removing

> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-package

> s/_renderPM-1.03-py2.5.egg-info

> Writing

> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-package

> s/_renderPM-1.03-py2.5.egg-info

>

> TESTING INSTALLATION:

> dev-sens-computer:/Applications/Plone-2.5.2/Python-2.4.4/lib/python2.4/site-

> packages/rl_addons/renderPM Orion$ python test_renderPM.py

> Traceback (most recent call last):

> File "test_renderPM.py", line 3, in <module>

> import _renderPM

> ImportError:

> dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-

> packages/_renderPM.so, 2): Symbol not found: _FT_Load_Glyph

> Referenced from:

> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-package

> s/_renderPM.so

> Expected in: dynamic lookup

>

>

>

>

> ------------------------------------------------------------------------

>

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users



--
Robin Becker


More information about the reportlab-users mailing list