[SciPy-dev] Problems with freetype (CVS).

Eric Jones eric at enthought.com
Wed Apr 30 01:53:50 EDT 2003


This happened to me also.  It looks like the ft_spec.pyc and build_ft.pyc files left over in the scipy/Lib_chaco/freetype directory after the code re-organization are the culprits.  The new .py files for these guys have been moved down into the src directory.  Just delete these old files, and then rebuild.  All should work fine...

thanks for catching this,
eric

Prabhu Ramachandran <prabhu at aero.iitm.ernet.in> wrote ..
> hi,
> 
> I just updated my CVS checkout and rebuilt scipy.  I have checked out
> the newer scipy module.  The build first stopped with kiva not
> compiling since agg2 would not update automatically.  So I simply did:
> 
>  cd Lib_chaco/
>  cvs -q co agg2
> 
> and then kiva and everything else built fine.  After this I installed
> scipy and for testing, tried running the chaco demos.  I ran into this
> problem with freetype.
> 
> 
> $ python -c "import freetype"
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
>   File "/usr/local/lib/python2.2/site-packages/freetype/__init__.py", line
> 5, in ?
>     from freetype import FreeType
>   File "/usr/local/lib/python2.2/site-packages/freetype/freetype.py", line
> 10, in ?
>     from font_lookup import default_font_info
>   File "/usr/local/lib/python2.2/site-packages/freetype/font_lookup.py",
> line 151, in ?
>     default_font_info = FontLookup( font_dir )
>   File "/usr/local/lib/python2.2/site-packages/freetype/font_lookup.py",
> line 30, in __init__
>     self.library   = Library()
>   File "/usr/local/lib/python2.2/site-packages/freetype/library_shadow.py",
> line 30, in __init__
>     LibraryPtr.__init__(self,_ft.library__create())
> AttributeError: 'module' object has no attribute 'library__create'
> Exception exceptions.AttributeError: "Library instance has no attribute
> 'this_own'" in <bound method Library.__del__ of <freetype.library_shadow.Library
> instance at 0x814b3bc>> ignored
> 
> I removed the installed directory, reinstalled, deleted the build
> directory, rebuilt all of scipy all to no avail.  _ft.so simply does
> not have library__create().
> 
> BTW, scipy.test runs fine.
> 
> Is there a problem or am I doing something wrong?
> 
> cheers,
> prabhu
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev


More information about the SciPy-Dev mailing list