Uploaded image for project: 'Decapod'
  1. Decapod
  2. DECA-160

matplotlib directory not writable causes stitching error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5
    • Component/s: Capture
    • Labels:
      None

      Description

      It seems that stitching aborts if the permissions on the ~/.matplotlib directory are not set properly. Work around would be to manually set permissions on the directory, but it would be nice if the permissions were set by the install script automatically.

      The following error is displayed when attempting to run stitching with decapod-server.py:

      Traceback (most recent call last):
      File "/usr/local/bin/decapod-stitching", line 5, in <module>
      from pylab import *
      File "/usr/lib/pymodules/python2.6/pylab.py", line 1, in <module>
      from matplotlib.pylab import *
      File "/usr/lib/pymodules/python2.6/matplotlib/_init_.py", line 711, in <module>
      rcParams = rc_params()
      File "/usr/lib/pymodules/python2.6/matplotlib/_init_.py", line 629, in rc_params
      fname = matplotlib_fname()
      File "/usr/lib/pymodules/python2.6/matplotlib/_init_.py", line 567, in matplotlib_fname
      fname = os.path.join(get_configdir(), 'matplotlibrc')
      File "/usr/lib/pymodules/python2.6/matplotlib/_init_.py", line 240, in wrapper
      ret = func(*args, **kwargs)
      File "/usr/lib/pymodules/python2.6/matplotlib/_init_.py", line 436, in _get_configdir
      raise RuntimeError("'%s' is not a writable dir; you must set %s/.matplotlib to be a writable dir. You can also set environment variable MPLCONFIGDIR to any writable directory where you want matplotlib data stored "% (h, h))
      RuntimeError: '/home/fluid' is not a writable dir; you must set /home/fluid/.matplotlib to be a writable dir. You can also set environment variable MPLCONFIGDIR to any writable directory where you want matplotlib data stored

      [28/Jul/2011:14:29:09] HTTP Traceback (most recent call last):
      File "/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 606, in respond
      cherrypy.response.body = self.handler()
      File "/usr/lib/pymodules/python2.6/cherrypy/cpdispatch.py", line 25, in __call_
      return self.callable(*self.args, **self.kwargs)
      File "decapod.py", line 78, in index
      pageSpread = self.capturePageSpread()
      File "decapod.py", line 48, in capturePageSpread
      stitchedPath = imageprocessing.stitch(firstMidPath, secondMidPath)
      File "/home/fluid/decapod/tip/decapod-server/imageprocessing.py", line 51, in stitch
      utils.invokeCommandSync(stitchCmd, ImageProcessingError, "An error occurred while trying to stitch images.")
      File "/home/fluid/decapod/tip/decapod-server/decapod_utilities.py", line 19, in invokeCommandSync
      raise error, message
      ImageProcessingError: An error occurred while trying to stitch images.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jhung Jonathan Hung
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: