Skip to content

Instantly share code, notes, and snippets.

@miham
Created January 29, 2012 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miham/1698916 to your computer and use it in GitHub Desktop.
Save miham/1698916 to your computer and use it in GitHub Desktop.

I get the following error when running tests:

==================================================================== test process starts =====================================================================
executable:   /usr/bin/python2  (2.7.2-final-0)
architecture: 64-bit
cache:        yes
ground types: gmpy
random seed:  62139164

sympy/plotting/tests/test_plot.py[1] E                                                                                                                  [FAIL]

______________________________________________________________________________________________________________________________________________________________
_____________________________________________________ sympy/plotting/tests/test_plot.py:test_matplotlib ______________________________________________________
  File "/miha_shr/coding/repos/sympy/sympy/plotting/tests/test_plot.py", line 162, in test_matplotlib
    plot_and_save('test')
  File "/miha_shr/coding/repos/sympy/sympy/plotting/tests/test_plot.py", line 120, in plot_and_save
    p.save('%s_colors_surface_arity1.png' % name)
  File "/miha_shr/coding/repos/sympy/sympy/plotting/plot.py", line 202, in save
    self._backend.save(path)
  File "/miha_shr/coding/repos/sympy/sympy/plotting/plot.py", line 922, in save
    self.process_series()
  File "/miha_shr/coding/repos/sympy/sympy/plotting/plot.py", line 851, in process_series
    color_array.shape = color_array.shape[0] * color_array.shape[1]
AttributeError: incompatible shape for a non-contiguous array

================================================== tests finished: 0 passed, 1 exceptions, in 9.63 seconds ===================================================
DO *NOT* COMMIT!

And here is some relevant information about matplotlib used:

basedirlist is: ['/usr/local', '/usr']
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 1.2.x
                python: 2.7.2 (default, Nov 21 2011, 17:25:27)  [GCC 4.6.2]
              platform: linux2

REQUIRED DEPENDENCIES
                 numpy: 1.6.1
             freetype2: 14.0.8

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.4.8
               Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5
                  Gtk+: gtk+: 2.24.9, glib: 2.30.2, pygtk: 2.24.0,
                        pygobject: 2.28.6
       Mac OS X native: no
                    Qt: no
                   Qt4: Qt: 4.8.0, PyQt4: 4.9
                PySide: no
                 Cairo: 1.10.0

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: 1.5
                  pytz: 2011n

OPTIONAL USETEX DEPENDENCIES
                dvipng: 1.14
           ghostscript: 9.04
                 latex: 3.1415926
               pdftops: 0.18.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment