Run time error after new install
Hi, I've had to reinstall yt due to an unconnected python problem but now I have a runtime error: /home/taskere/yt/yt-2/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py in _get_agg_font(self, prop) 219 font = self._fontd.get(fname) 220 if font is None: --> 221 font = FT2Font(str(fname)) 222 self._fontd[fname] = font 223 self._fontd[key] = font RuntimeError: Could not open facefile /home/taskere/yt/yt-2/lib/python2.6/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannotpen_Resource I ... forget whether this happened before :\ Elizabeth
Hi Elizabeth, I don't know the solution to this, but I do see something wrong with the error message. The install is using python2.7, but it's searching the matplotlib directory from the python2.6 install. John On 24 Mar 2011, at 15:49, Elizabeth Tasker wrote:
Hi,
I've had to reinstall yt due to an unconnected python problem but now I have a runtime error:
/home/taskere/yt/yt-2/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py in _get_agg_font(self, prop) 219 font = self._fontd.get(fname) 220 if font is None: --> 221 font = FT2Font(str(fname)) 222 self._fontd[fname] = font 223 self._fontd[key] = font
RuntimeError: Could not open facefile /home/taskere/yt/yt-2/lib/python2.6/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannotpen_Resource
I ... forget whether this happened before :\
Elizabeth
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Elizabeth,
I had the same error before, You need to remove the cache.
rm ~/.matplotlib/*.cache
Cheers,
Aycin
On Thu, Mar 24, 2011 at 8:49 PM, Elizabeth Tasker
Hi,
I've had to reinstall yt due to an unconnected python problem but now I have a runtime error:
/home/taskere/yt/yt-2/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py in _get_agg_font(self, prop) 219 font = self._fontd.get(fname) 220 if font is None: --> 221 font = FT2Font(str(fname)) 222 self._fontd[fname] = font 223 self._fontd[key] = font
RuntimeError: Could not open facefile /home/taskere/yt/yt-2/lib/python2.6/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannotpen_Resource
I ... forget whether this happened before :\
Elizabeth
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Perfect - thank you! aykutalp wrote:
Hi Elizabeth,
I had the same error before, You need to remove the cache.
rm ~/.matplotlib/*.cache
Cheers, Aycin
On Thu, Mar 24, 2011 at 8:49 PM, Elizabeth Tasker
mailto:taskere@mcmaster.ca> wrote: Hi,
I've had to reinstall yt due to an unconnected python problem but now I have a runtime error:
/home/taskere/yt/yt-2/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py in _get_agg_font(self, prop) 219 font = self._fontd.get(fname) 220 if font is None: --> 221 font = FT2Font(str(fname)) 222 self._fontd[fname] = font 223 self._fontd[key] = font
RuntimeError: Could not open facefile /home/taskere/yt/yt-2/lib/python2.6/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannotpen_Resource
I ... forget whether this happened before :\
Elizabeth
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org mailto:yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
------------------------------------------------------------------------
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Elizabeth,
Glad it worked -- this was something I also ran into, which definitely
will affect the upgrade process for anyone upgrading with a
wipe/reinstall. I will add a note to the install script about this.
Thanks John, Aycin!
-Matt
On Thu, Mar 24, 2011 at 4:04 PM, Elizabeth Tasker
Perfect - thank you!
aykutalp wrote:
Hi Elizabeth,
I had the same error before, You need to remove the cache.
rm ~/.matplotlib/*.cache
Cheers, Aycin
On Thu, Mar 24, 2011 at 8:49 PM, Elizabeth Tasker
mailto:taskere@mcmaster.ca> wrote: Hi,
I've had to reinstall yt due to an unconnected python problem but now I have a runtime error:
/home/taskere/yt/yt-2/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py in _get_agg_font(self, prop) 219 font = self._fontd.get(fname) 220 if font is None: --> 221 font = FT2Font(str(fname)) 222 self._fontd[fname] = font 223 self._fontd[key] = font
RuntimeError: Could not open facefile
/home/taskere/yt/yt-2/lib/python2.6/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannotpen_Resource
I ... forget whether this happened before :\
Elizabeth
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org mailto:yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
------------------------------------------------------------------------
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (4)
-
aykutalp
-
Elizabeth Tasker
-
John Wise
-
Matthew Turk