Hello,
I've been trying to fix this problem for hours, and it's getting me
mad but to no conclusion, so I'm asking here.

In Debian we build our packges in a chroot, with all the minimum
dependecies needed to build the package (to guarantee reproducibility
and avoid weird effect of local installed packages), and so also the
unittests are runt here. While enabling the matplotlib unittest in
that chroot, I'm getting this error:

======================================================================
ERROR: matplotlib.tests.test_axes.test_arc_ellipse.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File 
"/tmp/buildd/matplotlib-1.1.1~rc1/build/lib.linux-x86_64-2.6/matplotlib/testing/decorators.py",
line 36, in failer
    result = f(*args, **kwargs)
  File 
"/tmp/buildd/matplotlib-1.1.1~rc1/build/lib.linux-x86_64-2.6/matplotlib/testing/decorators.py",
line 128, in do_test
    figure.savefig(actual_fname)
  File 
"/tmp/buildd/matplotlib-1.1.1~rc1/build/lib.linux-x86_64-2.6/matplotlib/figure.py",
line 1185, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File 
"/tmp/buildd/matplotlib-1.1.1~rc1/build/lib.linux-x86_64-2.6/matplotlib/backend_bases.py",
line 2021, in print_figure
    **kwargs)
  File 
"/tmp/buildd/matplotlib-1.1.1~rc1/build/lib.linux-x86_64-2.6/matplotlib/backend_bases.py",
line 1789, in print_pdf
    return pdf.print_pdf(*args, **kwargs)
  File 
"/tmp/buildd/matplotlib-1.1.1~rc1/build/lib.linux-x86_64-2.6/matplotlib/backends/backend_pdf.py",
line 2180, in print_pdf
    file = PdfFile(filename)
  File 
"/tmp/buildd/matplotlib-1.1.1~rc1/build/lib.linux-x86_64-2.6/matplotlib/backends/backend_pdf.py",
line 378, in __init__
    rcParams['datapath'], 'fonts', 'pdfcorefonts')
  File "/usr/lib/python2.6/posixpath.py", line 67, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

(repeated for several times, it seems like a patter, given the output
of the test execution is:

..K.............EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK.EK..EK.EK.EK.EK.EK.EK.EKK...EK...EK.EK..EKEK..EK.EK.EK.EK.EK..EK.EK.EK[....]

and so on) so it seems the code can't find the datapath location. In
order to fix that, I'm calling the test suite like this:

PYTHONPATH=build/lib.linux-x86_64-2.6 \
        MATPLOTLIBDATA=/tmp/buildd/matplotlib-1.1.1~rc1/lib/matplotlib/mpl-data/
\
        MPLCONFIGDIR=. \
                python2.6 -c "import matplotlib as m ; m.test(verbosity=1)"

and in . there's a matplotlibrc file with simply:

  datapath : /tmp/buildd/matplotlib-1.1.1~rc1/lib/matplotlib/mpl-data/

in it; but still I got all of these failures. Anyone knows where I can
look to fix that?

Thanks in advance,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to