ayg256 wrote:
> 
> First of all, thanks to the matplotlib developers for all the great job. 
> I
> have just successfully installed matplotlib from source (r8827) in my
> macbook for python 2.7. However, I found a couple of bumps in the road
> that
> I'd like to share:
> 
> ...
> 
> Cheers,
> 
> AY
> 

Dear AY,

Thanks so much for posting your followup.  I just went through building
matplotlib 1.0.0 from source on my new iMac and your directions were
invaluable.  I did need to make some minor modifications to match the
peculiarities of my setup - for example I am installing it with python 2.6.  

PYC FILE ISSUES
After install and the manual copy to /Library/Python/2.6/site-packages
(which is where numpy and scipy get built on this machine), the pyc files
are pointing to /usr/local/lib still, which is something that shows up in
ipython when browsing functions, and in backtraces... apparently this is a
bug in python that got fixed in 2.7.  To work around, I just remade the pyc
files.  I recompiled them all with compileall.compile_dir.  The copying and
pyc compilation had to be done with sudo commands since I didn't have
permissions.

FOURIER DEMO - PROBLEM AND FIX IN "lines.py"
Next I tried my wx-based gui http://wiki.wxpython.org/MatplotlibFourierDemo.
It raised assertions in lines.py, particularly the part where it tries to
access
        path, affine =
self._transformed_path.get_transformed_path_and_affine()
(line 286) 
since self._transformed_path is None.
When I fixed that by inserting
        if self._transformed_path is None:
            self._transform_path()
then it ran into problems with
       ind += self.ind_offset
since ind_offset didn't exist.
I fixed that by adding 
        if hasattr(self, 'ind_offset'): 

Is modifying lines.py the only way to fix this, or should I do something
else in the fourier demo?

Best regards, Happy New Year to all, etc, 
 - Tom K.

-- 
View this message in context: 
http://old.nabble.com/caveats-found-installing-matplotlib-from-svn-source-on-python-2.7-in-mac-os-x-Leopard-tp30478244p30575604.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to