It works! Thanks for such quick turnaround!

If I may add a suggestion for the matplotlib setup from sources  
(which I had tried just after the egg install failed):

The directory specified to the --prefix argument of setup.py would  
seem like a natural addition to basedir in setupext.py (of course  
it's always possible, but more awkward to edit it). The scenario  
(which matches mine) is a user of a computing cluster who has no  
administrator access, and is installing all libraries in $HOME/lib  
and $HOME/include.

The prefix can be extracted from the line arguments with

installation_prefix = None

for arg in sys.argv:
        if arg.startswith('--prefix='):
                installation_prefix = arg.split('=', 1)[1]

if installation_prefix:
        basedir.append(installation_prefix)

I'm sure there is another method to do this that fits more naturally  
with distutils. There's a reference to --prefix later in setupext.py,  
but I don't think it's operational.

Thanks again,

Michele



On Jan 11, 2008, at 12:58 PM, Charlie Moad wrote:

> I have replaced the binary with a working version.
>
> Thanks again for the catch,
>      Charlie
>
> On Jan 11, 2008 2:15 PM, Charlie Moad <[EMAIL PROTECTED]> wrote:
>> Apparently a dynamic link snuck into the build.  Typically everything
>> is statically included.  You can see this by running the following
>> command:
>>
>> uaternion:matplotlib cmoad$ otool -L ft2font.so
>> ft2font.so:
>>         /usr/local/lib/libfreetype.6.dylib (compatibility version  
>> 10.0.0,
>> current version 10.16.0)
>>         /usr/lib/libz.1.dylib (compatibility version 1.0.0,  
>> current version 1.2.3)
>>         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0,  
>> current version 7.4.0)
>>         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,  
>> current
>> version 88.3.6)
>>         /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,  
>> current version 1.0.0)
>>
>> I will created and post a new build asap.
>>
>> Thanks,
>>      Charlie
>>
>> On Jan 11, 2008 1:50 PM, Michele Vallisneri
>>
>> <[EMAIL PROTECTED]> wrote:
>>> Hello all,
>>>
>>> after installing matplotlib 0.91.2 from the sourceforge egg on OS X
>>> 10.4.11 (Python 2.5.1), I get the following error:
>>>
>>>>>> import pylab
>>> Traceback (most recent call last):
>>>    File "<stdin>", line 1, in <module>
>>>    File "/Users/vallis/lib/python2.5/site-packages/ 
>>> matplotlib-0.91.2-
>>> py2.5-macosx-10.3-fat.egg/matplotlib/pylab.py", line 208, in  
>>> <module>
>>>      from matplotlib import mpl  # pulls in most modules
>>>    File "/Users/vallis/lib/python2.5/site-packages/ 
>>> matplotlib-0.91.2-
>>> py2.5-macosx-10.3-fat.egg/matplotlib/mpl.py", line 3, in <module>
>>>      from matplotlib import axis
>>>    File "/Users/vallis/lib/python2.5/site-packages/ 
>>> matplotlib-0.91.2-
>>> py2.5-macosx-10.3-fat.egg/matplotlib/axis.py", line 20, in <module>
>>>      from font_manager import FontProperties
>>>    File "/Users/vallis/lib/python2.5/site-packages/ 
>>> matplotlib-0.91.2-
>>> py2.5-macosx-10.3-fat.egg/matplotlib/font_manager.py", line 40, in
>>> <module>
>>>      from matplotlib import ft2font
>>> ImportError: dlopen(/Users/vallis/lib/python2.5/site-packages/
>>> matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg/matplotlib/ft2font.so,
>>> 2): Symbol not found: _FT_Attach_File
>>>    Referenced from: /Users/vallis/lib/python2.5/site-packages/
>>> matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg/matplotlib/ft2font.so
>>>    Expected in: dynamic lookup
>>>
>>> It seems there's something wrong with ft2font.so, since CDing to the
>>> egg directory and importing only that extension yields
>>>
>>>>>> import ft2font.so
>>> Traceback (most recent call last):
>>>    File "<stdin>", line 1, in <module>
>>> ImportError: dlopen(./ft2font.so, 2): Symbol not found:  
>>> _FT_Attach_File
>>>    Referenced from: /Users/vallis/lib/python2.5/site-packages/
>>> matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg/matplotlib/ft2font.so
>>>    Expected in: dynamic lookup
>>>
>>> Any ideas?
>>>
>>> Cheers,
>>>
>>> Michele
>>>
>>>
>>> -------------------------------------------------------------------- 
>>> -----
>>> Check out the new SourceForge.net Marketplace.
>>> It's the best place to buy or sell services for
>>> just about anything Open Source.
>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ 
>>> marketplace
>>> _______________________________________________
>>> Matplotlib-users mailing list
>>> Matplotlib-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to