Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with three inkscape tests on MacOS X #787

Closed
astrofrog opened this issue Mar 22, 2012 · 6 comments
Closed

Issue with three inkscape tests on MacOS X #787

astrofrog opened this issue Mar 22, 2012 · 6 comments

Comments

@astrofrog
Copy link
Contributor

When running the tests on MacOS X with various Python/Numpy versions, I am getting the following inkscape-related errors:

======================================================================
ERROR: matplotlib.tests.test_axes.test_arc_ellipse.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 35, in failer
    result = f(*args, **kwargs)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 117, in do_test
    err = compare_images(expected_fname, actual_fname, self._tol, in_decorator=True)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/compare.py", line 215, in compare_images
    actual = convert(actual)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/compare.py", line 139, in convert
    converter[extension](filename, newname)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/compare.py", line 99, in convert
    raise IOError, msg
IOError: Conversion command failed:
inkscape -z /Users/Shared/Jenkins/Home/jobs/matplotlib-mdboom-tests-osx-10.7-multiconfig/workspace/NV/1.6.1/PV/2.7/result_images/test_axes/arc_ellipse.svg --export-png /Users/Shared/Jenkins/Home/jobs/matplotlib-mdboom-tests-osx-10.7-multiconfig/workspace/NV/1.6.1/PV/2.7/result_images/test_axes/arc_ellipse_svg.png
Standard output:
Background RRGGBBAA: ffffff00
Area 0:0:720:540 exported to 720 x 540 pixels (90 dpi)
Bitmap saved as: /Users/Shared/Jenkins/Home/jobs/matplotlib-mdboom-tests-osx-10.7-multiconfig/workspace/NV/1.6.1/PV/2.7/result_images/test_axes/arc_ellipse_svg.png

Standard error:

(process:19741): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
** Message: Error: Inkscape encountered an internal error and will close now.




======================================================================
ERROR: matplotlib.tests.test_axes.test_fill_between_interpolate.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 35, in failer
    result = f(*args, **kwargs)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/decorators.py", line 117, in do_test
    err = compare_images(expected_fname, actual_fname, self._tol, in_decorator=True)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/compare.py", line 215, in compare_images
    actual = convert(actual)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/compare.py", line 139, in convert
    converter[extension](filename, newname)
  File "/Users/Shared/Jenkins/Home/virtualenvs.nose.pil/python2.7-numpy1.6.1/lib/python2.7/site-packages/matplotlib/testing/compare.py", line 99, in convert
    raise IOError, msg
IOError: Conversion command failed:
inkscape -z /Users/Shared/Jenkins/Home/jobs/matplotlib-mdboom-tests-osx-10.7-multiconfig/workspace/NV/1.6.1/PV/2.7/result_images/test_axes/fill_between_interpolate.svg --export-png /Users/Shared/Jenkins/Home/jobs/matplotlib-mdboom-tests-osx-10.7-multiconfig/workspace/NV/1.6.1/PV/2.7/result_images/test_axes/fill_between_interpolate_svg.png
Standard output:
Background RRGGBBAA: ffffff00
Area 0:0:720:540 exported to 720 x 540 pixels (90 dpi)
Bitmap saved as: /Users/Shared/Jenkins/Home/jobs/matplotlib-mdboom-tests-osx-10.7-multiconfig/workspace/NV/1.6.1/PV/2.7/result_images/test_axes/fill_between_interpolate_svg.png

Standard error:

(process:20043): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
** Message: Error: Inkscape encountered an internal error and will close now.

The other SVG tests pass. Does this look like an issue with my inkscape installation? I installed it using MacPorts:

$ inkscape --version
Inkscape 0.48.2 r9819 (Mar 20 2012)
@mdboom
Copy link
Member

mdboom commented Mar 22, 2012

Not sure what's going on here, and the error output from inkscape isn't very illuminating. (FWIW, I am running inkscape 0.48.1 on Linux with no problems). I think we need to consider these inkscape bugs unless otherwise proven wrong. Do you perhaps want to take the input files and report upstream?

@astrofrog
Copy link
Contributor Author

Ok, I'll try and follow up on this. This should not hold up the release candidate.

@astrofrog
Copy link
Contributor Author

I have filed a bug report with the inkscape developers: https://bugs.launchpad.net/inkscape/+bug/962941

@pelson
Copy link
Member

pelson commented Jul 1, 2012

FYI I am not seeing this issue on OSX 10.7 with inkscape installed via homebrew (Inkscape 0.48.3.1 r9886 (Jun 25 2012)).

@dmcdougall
Copy link
Member

I can't recreate this on OS X 10.8 with inkscape installed via MacPorts:

$ inkscape --version
Inkscape 0.48.4 r9939 (Jul  3 2013)

All of the test_axes module passes, so I'm going to close this now.

@mdboom
Copy link
Member

mdboom commented Jul 16, 2013

Yes -- seems to be an inkscape installation/environmental bug that we can't really workaround here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants